racktables
6 years agosyncdomain: don't do dummy SQL UPDATE's
Alexey Andriyanov [Tue, 10 Dec 2013 17:29:59 +0000 (21:29 +0400)] 
syncdomain: don't do dummy SQL UPDATE's

don't update out-of-sync switch status each time when switch is disabled

6 years agorestore the FileLink table
Aaron Dummer [Tue, 10 Dec 2013 17:01:50 +0000 (09:01 -0800)] 
restore the FileLink table

6 years agocompareDecomposedPortNames: fix numCompare call
Aaron Dummer [Mon, 9 Dec 2013 21:43:19 +0000 (13:43 -0800)] 
compareDecomposedPortNames: fix numCompare call

6 years agofactor some sign/comparison code out
Denis Ovsienko [Mon, 9 Dec 2013 15:37:09 +0000 (19:37 +0400)] 
factor some sign/comparison code out

There is a number of use cases in the code for the sign (-1/0/1) value,
all implemented with nested ternary expressions. Factor two helper
functions out and make use of them

* numSign(): new function
* numCompare(): new function
* IPCmp(): use above
* compareDecomposedPortNames(): idem
* cmp_array_sizes(): idem

6 years agofix two more ternary conditionals in functions.php
Denis Ovsienko [Mon, 9 Dec 2013 14:03:23 +0000 (18:03 +0400)] 
fix two more ternary conditionals in functions.php

Aaron points the last change to these functions made them reinvent "?:"
with "if". Fix.

* formatRealmName()
* strerror8021Q()

6 years agofixup "if" condition in pokeNode()
Denis Ovsienko [Sun, 8 Dec 2013 20:50:25 +0000 (00:50 +0400)] 
fixup "if" condition in pokeNode()

6 years agoaddress assorted style issues in functions.php
Denis Ovsienko [Sun, 8 Dec 2013 20:01:27 +0000 (00:01 +0400)] 
address assorted style issues in functions.php

* rectHeight(): don't reinvent logical OR with multiple if()'s

* markSpan(): remove excess parentheses
* cookOptgroups(): idem
* alterConfigWithUserPreferences(): idem

* ip4_mask(): don't use "else" after "return"
* ip6_mask(): idem

* getRSUforRack(): wrap a long line
* getRSUforRow(): idem

* pokeNode(): put longer of two "if" branches into "else"
* iptree_construct(): idem

* prepareNavigation(): remove excess code

* shrinkSubtree(): add a missing newline
* isConfigVarChanged(): idem

* getEmployedVlans(): eliminate "else" near "continue"

* strerror8021Q: don't reinvent an array with a switch block
* formatRealmName(): idem

6 years agorefine use of "return" in functions.php
Denis Ovsienko [Sun, 8 Dec 2013 15:06:47 +0000 (19:06 +0400)] 
refine use of "return" in functions.php

* isInteger(): don't use "if" where a boolean expression does the job
* isPCRE(): idem
* ip_mask():idem
* getPrevIDforRack(): idem
* getNextIDforRack(): idem
* ip4_bin2db(): idem
* acceptable8021QConfig(): idem
* validTagName(): idem

* l2addressFromDatabase(): dismiss a useless intermediate variable
* getRackCodeStats(): idem
* makeIPTree(): idem
* getLocationTrail(): idem

6 years agofix two ternary expressions taken wrong
Denis Ovsienko [Fri, 6 Dec 2013 14:20:59 +0000 (18:20 +0400)] 
fix two ternary expressions taken wrong

Alexey points fetchIPv4AddressNetworkRow() and
fetchIPv6AddressNetworkRow() return NULL on miss, not FALSE. Update
getIPv4AddressNetworkId() and getIPv6AddressNetworkId() respectively.

6 years agodon't use "anchor" CSS class, which doesn't exist
Denis Ovsienko [Fri, 6 Dec 2013 13:36:32 +0000 (17:36 +0400)] 
don't use "anchor" CSS class, which doesn't exist

6 years agorefine some wording
Denis Ovsienko [Fri, 6 Dec 2013 12:21:30 +0000 (16:21 +0400)] 
refine some wording

Fix spelling, punctiation and put a number of which/that cases right:
http://web.ku.edu/~edit/which.html

6 years agoswitch from getDomainVLANs to getDomainVLANList
Alexey Andriyanov [Fri, 6 Dec 2013 11:16:28 +0000 (15:16 +0400)] 
switch from getDomainVLANs to getDomainVLANList

getDomainVLANList is much more fast than getDomainVLANs
use it where possible

6 years agorefine use of "return" in database.php
Denis Ovsienko [Fri, 6 Dec 2013 10:21:15 +0000 (14:21 +0400)] 
refine use of "return" in database.php

* getRowInfo(): "else" is superfluous after "return"
* spotEntity(): idem
* getIPv4AddressNetworkId(): don't use "if" to reinvent ternary operator
* fetchIPv4AddressNetworkRow(): idem
* getIPv6AddressNetworkId(): idem
* fetchIPv6AddressNetworkRow(): idem
* searchByMgmtHostname(): idem
* objectTypeMayHaveParent(): idem
* loadScript(): idem
* getFileCache(): idem
* findFileByName(): idem
* acquireLDAPCache(): idem
* getUserIDByUsername(): idem
* getVLANSwitchInfo(): idem
* lookupEntityByString(): idem

6 years agogetFilesOfEntity: fix of SQL I've broken in 48ddf3
Alexey Andriyanov [Thu, 5 Dec 2013 14:16:42 +0000 (18:16 +0400)] 
getFilesOfEntity: fix of SQL I've broken in 48ddf3

6 years agoimplement a datetime format hint (#1051)
Denis Ovsienko [Thu, 5 Dec 2013 11:57:14 +0000 (15:57 +0400)] 
implement a datetime format hint (#1051)

datetimeFormatHint(): new helper function
renderEditObjectForm(): output a format hint for 'date' attributes

6 years agobugfix: contains: [Unnamed invalid] for files
Alexey Andriyanov [Thu, 5 Dec 2013 10:11:28 +0000 (14:11 +0400)] 
bugfix: contains: [Unnamed invalid] for files

renderObject: filter files out of children list

6 years agoreplace string_insert_hrefs() again (#1103)
Denis Ovsienko [Thu, 5 Dec 2013 10:04:10 +0000 (14:04 +0400)] 
replace string_insert_hrefs() again (#1103)

My recent change to UrlLinker regexp (commit 9ab0d88) made it detect
single words as URLs. Instead of fixing that replace UrlLinker with the
code from MantisBT as the main reason for introducing UrlLinker (commit
4d7c0c7) was to cover the case of "username:password@" in the URL, which
MantisBT didn't support by that time. The current revision of MantisBT
does that fine and also Unicode and IPv6.

6 years agomkCellA: revert incorrect change to user_id key
Alexey Andriyanov [Wed, 4 Dec 2013 18:52:46 +0000 (22:52 +0400)] 
mkCellA: revert incorrect change to user_id key

6 years agobugfix: invalid assumptions about related type
Alexey Andriyanov [Wed, 4 Dec 2013 16:52:56 +0000 (20:52 +0400)] 
bugfix: invalid assumptions about related type

getEntityRelatives: optional $relative_type parameter added
printObjectDetailsForRenderRack: ensure the assumption about child type='object'
highlightObject: ensure the assumption about parent type='object'
renderEditObjectForm: idem
renderRackSpaceForObject: let renderRackSpaceForObject do the type filtering
updateObjectAllocation: idem

6 years agofinalize the previous commit
Denis Ovsienko [Wed, 4 Dec 2013 14:12:51 +0000 (18:12 +0400)] 
finalize the previous commit

Objects subject to expiry can have no OEM S/N 1 allowed by the attribute
map. This makes little sense in the real world but still. Add a guard
against PHP warning and update the change log.

6 years agoadd OEM S/N 1 to Expirations report
Matthew Castanien [Wed, 4 Dec 2013 14:08:04 +0000 (18:08 +0400)] 
add OEM S/N 1 to Expirations report

6 years agobugfix: IP tree expansion button was broken
Alexey Andriyanov [Wed, 4 Dec 2013 13:29:07 +0000 (17:29 +0400)] 
bugfix: IP tree expansion button was broken

renderIPSpace: consider eid parameter

6 years agoapply RackTables-specific changes to CodeMirror
Denis Ovsienko [Wed, 4 Dec 2013 10:30:06 +0000 (14:30 +0400)] 
apply RackTables-specific changes to CodeMirror

6 years agoupgrade CodeMirror from 3.12 to 3.20
Denis Ovsienko [Wed, 4 Dec 2013 10:29:06 +0000 (14:29 +0400)] 
upgrade CodeMirror from 3.12 to 3.20

6 years agorevert to pristine CodeMirror-3.12
Denis Ovsienko [Wed, 4 Dec 2013 10:26:40 +0000 (14:26 +0400)] 
revert to pristine CodeMirror-3.12

6 years agofix some punctuation
Denis Ovsienko [Wed, 4 Dec 2013 10:04:53 +0000 (14:04 +0400)] 
fix some punctuation

6 years agorenderNewVSForm: resolve PHP 'strict standards' warning
Aaron Dummer [Tue, 3 Dec 2013 16:18:15 +0000 (08:18 -0800)] 
renderNewVSForm: resolve PHP 'strict standards' warning

6 years agoclean-up the 'FileLink -> EntityLink change'
Alexey Andriyanov [Mon, 2 Dec 2013 21:07:34 +0000 (01:07 +0400)] 
clean-up the 'FileLink -> EntityLink change'

EntityLink table: reorder fields in index to allow existing searches use it.

getFilesOfEntity: make join condition of index fields
commitUnlinkEntitiesByParent: new DB func
commitDeleteObject: separate unlink query to multiple to make SQL indices work.
commitResetObject: idem
getFileLinks, releaseFiles: remove deprecated comment

amplifyCell: get back to use getFileLinks API call
renderFile: idem
destroyIPv4Prefix: get back to use releaseFiles API call
destroyIPv6Prefix: idem
commitDeleteVS: idem
commitDeleteRSPool: idem
commitDeleteVSG: idem

6 years agoreleaseFiles: restore for compatibility purposes, include deprecation notice
Aaron Dummer [Mon, 2 Dec 2013 17:59:55 +0000 (09:59 -0800)] 
releaseFiles: restore for compatibility purposes, include deprecation notice
getFileLinks: idem

6 years agorenderDataIntegrityReport: initial version
Aaron Dummer [Sun, 1 Dec 2013 01:02:03 +0000 (17:02 -0800)] 
renderDataIntegrityReport: initial version

6 years agoadd SNMP support for 3Com 4200G 48-port (#1093)
Rainer Stumbaum [Sat, 30 Nov 2013 19:38:50 +0000 (11:38 -0800)] 
add SNMP support for 3Com 4200G 48-port (#1093)

6 years agoadd SNMP support for 5500G-EI 48-port (#1095)
Rainer Stumbaum [Sat, 30 Nov 2013 19:32:07 +0000 (11:32 -0800)] 
add SNMP support for 5500G-EI 48-port (#1095)

6 years agominor code formatting tweaks
Aaron Dummer [Sat, 30 Nov 2013 18:47:43 +0000 (10:47 -0800)] 
minor code formatting tweaks

6 years agoMerge pull request #48 from rafaeldriutti/master
adoom42 [Sat, 30 Nov 2013 18:33:21 +0000 (10:33 -0800)] 
Merge pull request #48 from rafaeldriutti/master

Added snmp sync support for 3com 4510G-24, cisco SF302-08MP, Linksys SRW248G4

6 years agodrop the FileLink table, use EntityLink instead
Aaron Dummer [Mon, 25 Nov 2013 17:52:17 +0000 (09:52 -0800)] 
drop the FileLink table, use EntityLink instead

6 years agoalter IPV4OBJ_LISTSRC to apply to all object types unless specifically excluded
Aaron Dummer [Mon, 25 Nov 2013 20:14:36 +0000 (12:14 -0800)] 
alter IPV4OBJ_LISTSRC to apply to all object types unless specifically excluded

6 years ago0.20.6: cut the release RackTables-0.20.6
Alexey Andriyanov [Fri, 29 Nov 2013 18:19:16 +0000 (22:19 +0400)] 
0.20.6: cut the release

6 years agodont return showError* result from ophandlers
Alexey Andriyanov [Fri, 29 Nov 2013 16:25:33 +0000 (20:25 +0400)] 
dont return showError* result from ophandlers

this technique saved one line of code, but obscured the prototype of
ophandlers and showError* functions.

Changed all occurrences of 'return show*' to 'show*; return;' pairs

6 years agohandlePopupPortLink: fix broken link in succss msg
Alexey Andriyanov [Fri, 29 Nov 2013 16:08:51 +0000 (20:08 +0400)] 
handlePopupPortLink: fix broken link in succss msg

6 years agoport type could be changed even if port is linked
Alexey Andriyanov [Wed, 11 Sep 2013 09:18:38 +0000 (13:18 +0400)] 
port type could be changed even if port is linked

renderPortsForObject: render form controls even if port is linked
getExistingPortTypeOptions: check if port is linked and select only compatible types

6 years agofixContext: remove non-existant global '$page'
Alexey Andriyanov [Fri, 29 Nov 2013 14:44:03 +0000 (18:44 +0400)] 
fixContext: remove non-existant global '$page'

6 years agoAdded snmp sync support for 3com 4510G-24, cisco SF302-08MP, Linksys SRW248G4 48/head
Rafael Driutti [Tue, 26 Nov 2013 18:56:52 +0000 (15:56 -0300)] 
Added snmp sync support for 3com 4510G-24, cisco SF302-08MP, Linksys SRW248G4

6 years agobugfix: port submit form was broken
Alexey Andriyanov [Tue, 26 Nov 2013 15:56:20 +0000 (19:56 +0400)] 
bugfix: port submit form was broken

renderPortsForObject fix
reverting 206015ec

6 years agodictionary: add more Ethernet switches
Denis Ovsienko [Tue, 26 Nov 2013 10:35:44 +0000 (14:35 +0400)] 
dictionary: add more Ethernet switches

6 years agodictionary: add some Ethernet switches
Denis Ovsienko [Tue, 26 Nov 2013 10:06:25 +0000 (14:06 +0400)] 
dictionary: add some Ethernet switches

6 years agospeed-up the getAllVLANOptions func
Alexey Andriyanov [Mon, 25 Nov 2013 08:07:22 +0000 (12:07 +0400)] 
speed-up the getAllVLANOptions func

getDomainVLANList: new fetching func like getDomainVLANs, but w/o stats
getAllVLANOptions: use new getDomainVLANList, optimize except() code

6 years agocell filter pages rendering speed-up
Alexey Andriyanov [Mon, 25 Nov 2013 06:48:25 +0000 (10:48 +0400)] 
cell filter pages rendering speed-up

The MAX_UNFILTERED_ENTITIES config variable used to prevent rendering
large sets of unfiltered results. This was helpful in reducting http
traffic and rendering time in browser, but the database fetching of all
entities of particular realm was performed anyway.

This change disables the database fetching of entities if there is no
filter set, and the resulting set size is greater than
MAX_UNFILTERED_ENTITIES config variable value. This allows to quickly
access to the filtering portlet and add/delete tabs on heavy pages
(objects, racks, IP nets).

getEntitiesCount: retrieves the count of enities of specified realm
renderLocationFilterPortlet: check if $_SESSION['locationFilter'] is set
renderRackspace: try to call renderEmptyResults 2 times: to disable
fetching and to disable displaying
renderDepot: idem
renderIPSpace: idem,
also the bug if fixed: 'ipv4net' realm was passed to the
renderCellFilterPortlet even on the 'ipv6space' page

6 years agorenderDepot: display all containers and mount points (#1081)
Aaron Dummer [Sun, 24 Nov 2013 21:45:46 +0000 (13:45 -0800)] 
renderDepot: display all containers and mount points (#1081)

6 years agominor code formatting tweaks
Aaron Dummer [Fri, 22 Nov 2013 21:59:08 +0000 (13:59 -0800)] 
minor code formatting tweaks

6 years agoMerge pull request #43 from rafaeldriutti/master
adoom42 [Fri, 22 Nov 2013 21:49:31 +0000 (13:49 -0800)] 
Merge pull request #43 from rafaeldriutti/master

support for 3com 4500

6 years agoAdd support for snmp sync on 3Com 4500 switches. 43/head
Rafael Driutti [Thu, 7 Nov 2013 02:55:04 +0000 (21:55 -0500)] 
Add support for snmp sync on 3Com 4500 switches.

6 years agoremove unused config variable PORTS_PER_ROW
Denis Ovsienko [Thu, 21 Nov 2013 11:21:17 +0000 (15:21 +0400)] 
remove unused config variable PORTS_PER_ROW

6 years agoAPI: cache compiled rackcode expressions
Alexey Andriyanov [Tue, 19 Nov 2013 19:15:18 +0000 (23:15 +0400)] 
API: cache compiled rackcode expressions

This change increases performance on many sequential
calls to considerGivenConstraint with a constant filter expression.

compileExpression: new caching wrapper around spotPayload('SYNT_EXPR')
genericAssertion: use compileExpression instead of spotPayload
considerGivenConstraint: idem
scanRealmByText: idem
getNarrowObjectList: idem, moved into functions.php
considerConfiguredConstraint: use considerGivenConstraint
getCellFilter:
use compileExpression instead of spotPayload
invalid rackcode is not lost on submit, it is highlighted

6 years agocosmetic formatting updates
Aaron Dummer [Mon, 18 Nov 2013 16:22:08 +0000 (08:22 -0800)] 
cosmetic formatting updates

6 years agoMerge pull request #45 from MWilkinson/SNMP_1063
adoom42 [Mon, 18 Nov 2013 16:19:05 +0000 (08:19 -0800)] 
Merge pull request #45 from MWilkinson/SNMP_1063

Support for Cisco 2960-8TC-L (#1063)

6 years agofixup the next release version (0.21.0 -> 0.20.6)
Denis Ovsienko [Mon, 18 Nov 2013 12:50:25 +0000 (16:50 +0400)] 
fixup the next release version (0.21.0 -> 0.20.6)

6 years agoRevert "add support for one-to-many port links, and cable path tracing"
Denis Ovsienko [Mon, 18 Nov 2013 12:47:14 +0000 (16:47 +0400)] 
Revert "add support for one-to-many port links, and cable path tracing"

This reverts commit a73909424b27e3631d80ab949ad3030c7b06d305.

Conflicts:
README
wwwroot/inc/install.php
wwwroot/inc/popup.php
wwwroot/inc/upgrade.php

6 years agoRevert 2 commits specific to patch panels
Denis Ovsienko [Mon, 18 Nov 2013 12:34:56 +0000 (16:34 +0400)] 
Revert 2 commits specific to patch panels

This reverts the following commits (no conflicts):

f9ea479
764aa01

6 years agoRevert "- rebase against master branch"
Denis Ovsienko [Mon, 18 Nov 2013 12:33:27 +0000 (16:33 +0400)] 
Revert "- rebase against master branch"

This reverts commit 6a40d076dea1442abe4f32bd48b9534e2029e7b0.

Conflicts:
ChangeLog
wwwroot/inc/upgrade.php

6 years agoRevert 9 commits specific to patch panels
Denis Ovsienko [Mon, 18 Nov 2013 11:54:21 +0000 (15:54 +0400)] 
Revert 9 commits specific to patch panels

This reverts the following commits (no conflicts):

6071555
cf54c36
bfce8a3
2381357
d884661
f129eb6
a4b6536
68dc69c
597896f

6 years agoSupport for Cisco 2960-8TC-L (#1063) 45/head
MWilkinson [Mon, 18 Nov 2013 09:27:14 +0000 (09:27 +0000)] 
Support for Cisco 2960-8TC-L (#1063)

6 years agospotEntity: respect $ignore_cache parameter
Aaron Dummer [Sun, 17 Nov 2013 01:33:00 +0000 (17:33 -0800)] 
spotEntity: respect $ignore_cache parameter
$SQLSchema: optimize object sub-queries (same result, 15% faster)

6 years agogenerateEntityAutoTags: remove the 'unmounted' autotag from objects inside a containe...
Aaron Dummer [Sat, 16 Nov 2013 21:12:14 +0000 (13:12 -0800)] 
generateEntityAutoTags: remove the 'unmounted' autotag from objects inside a container (#1061)

6 years agorenderAddMultipleObjectsForm: merge physical and virtual forms; virtual objects may...
Aaron Dummer [Sat, 16 Nov 2013 20:23:11 +0000 (12:23 -0800)] 
renderAddMultipleObjectsForm: merge physical and virtual forms; virtual objects may now use 'asset tag' and 'visible label' attributes (#1069)
renderEditObjectForm: stop ignoring 'asset tag' and 'visible label' attributes
addMultipleObjects: idem

6 years agofetchPortList: to maintain compatibility with 802.1Q, LLDP and some other functions...
Aaron Dummer [Sat, 16 Nov 2013 19:53:45 +0000 (11:53 -0800)] 
fetchPortList: to maintain compatibility with 802.1Q, LLDP and some other functions, append details of the first link to the main array

6 years agofetchPortList: fix condition broken by prev commit
Alexey Andriyanov [Thu, 14 Nov 2013 04:47:33 +0000 (08:47 +0400)] 
fetchPortList: fix condition broken by prev commit

6 years agofetchPortList: do not place L2 links before L1
Alexey Andriyanov [Thu, 14 Nov 2013 04:01:21 +0000 (08:01 +0400)] 
fetchPortList: do not place L2 links before L1

this change is to keep all links equal.
reverts ordering of links introduced in 597896 commit

6 years agoprintObjectDetailsForRenderRack: blade objects with problems should be colored red...
MWilkinson [Wed, 13 Nov 2013 16:14:30 +0000 (08:14 -0800)] 
printObjectDetailsForRenderRack: blade objects with problems should be colored red (#1071)

6 years agocss bugfix: removed invalid list-type li style
Alexey Andriyanov [Mon, 11 Nov 2013 12:14:30 +0000 (16:14 +0400)] 
css bugfix: removed invalid list-type li style

6 years agofindSparePorts: include ports of zero-U objects (#917)
Aaron Dummer [Sun, 10 Nov 2013 18:25:42 +0000 (10:25 -0800)] 
findSparePorts: include ports of zero-U objects (#917)

6 years agogetStickerSearchResults: change query execution order (#1031)
Aaron Dummer [Sun, 10 Nov 2013 17:17:07 +0000 (09:17 -0800)] 
getStickerSearchResults: change query execution order (#1031)
commitUpdateAttrValue: add missing space to SQL (also #1031)

6 years agorenderLocationSelectTree: fix strict standards violation (#1065)
Aaron Dummer [Sun, 10 Nov 2013 17:00:24 +0000 (09:00 -0800)] 
renderLocationSelectTree: fix strict standards violation (#1065)

6 years agoMerge pull request #42 from MWilkinson/SNMP_1055_v2
Denis Ovsienko [Fri, 8 Nov 2013 09:33:24 +0000 (01:33 -0800)] 
Merge pull request #42 from MWilkinson/SNMP_1055_v2

SNMP sync for Brocade TurboIron 24X (GH #1055)

6 years agoremove 0.16.x and 0.17.x handling code
Denis Ovsienko [Fri, 8 Nov 2013 09:16:30 +0000 (13:16 +0400)] 
remove 0.16.x and 0.17.x handling code

6 years agorefine README and recent release notes
Denis Ovsienko [Fri, 8 Nov 2013 08:55:22 +0000 (12:55 +0400)] 
refine README and recent release notes

Reword assorted sentences and reformat release notes to meet the common
line length.

6 years agoChanges to table_processors array for TurboIron based on other switches running IronW... 42/head
MWilkinson [Thu, 7 Nov 2013 08:40:51 +0000 (08:40 +0000)] 
Changes to table_processors array for TurboIron based on other switches running IronWare os

6 years agoSNMP sync for Brocade TurboIron 24X
MWilkinson [Wed, 6 Nov 2013 14:20:03 +0000 (14:20 +0000)] 
SNMP sync for Brocade TurboIron 24X

6 years agoUpdate dictionary.php 41/head
Ray Robertson [Wed, 6 Nov 2013 14:15:37 +0000 (14:15 +0000)] 
Update dictionary.php

Add Windows Servers versions 2012 & 2012 R2

6 years agoadd missing LABEL to renderIPNewNetForm()
Denis Ovsienko [Wed, 6 Nov 2013 13:10:39 +0000 (17:10 +0400)] 
add missing LABEL to renderIPNewNetForm()

6 years agoDB deadlocks fixed in LDAP authentication
Alexey Andriyanov [Wed, 6 Nov 2013 12:30:48 +0000 (16:30 +0400)] 
DB deadlocks fixed in LDAP authentication

acquireLDAPCache: guarantees there is a locked row for $form_username
replaceLDAPCacheRecord: does UPDATE instead of delete/insert

6 years agodon't use SORT_NATURAL: supported since PHP 5.4
Alexey Andriyanov [Sun, 20 Oct 2013 12:06:24 +0000 (16:06 +0400)] 
don't use SORT_NATURAL: supported since PHP 5.4

renderRackMultiSelect modified using natsort

6 years agoajax edit: support any param name
Alexey Andriyanov [Mon, 14 Oct 2013 15:39:21 +0000 (19:39 +0400)] 
ajax edit: support any param name

There were two hardcoded param names before: 'text' and 'id'

6 years agorenderSearchResults: fix exception
Alexey Andriyanov [Wed, 30 Oct 2013 14:20:03 +0000 (18:20 +0400)] 
renderSearchResults: fix exception

renderSearchResults was assuming that a single found item must be a cell
appropriate for renderCell call. However, if found IP was a alien
address (there was no any spanning IP network), renerCell was throwing
an exception.

6 years agobugfix: added SLB foreign key referencing Object
Alexey Andriyanov [Wed, 30 Oct 2013 14:03:08 +0000 (18:03 +0400)] 
bugfix: added SLB foreign key referencing Object

6 years agoadd SNMP support for Cisco WS-C3560V2-24PS (#1049)
Aaron Dummer [Mon, 28 Oct 2013 15:03:40 +0000 (08:03 -0700)] 
add SNMP support for Cisco WS-C3560V2-24PS (#1049)

6 years agodictionary: list a MikroTik switch
Denis Ovsienko [Mon, 21 Oct 2013 15:38:15 +0000 (19:38 +0400)] 
dictionary: list a MikroTik switch

6 years agoHuawei CE5810 dictionary items
Alexey Andriyanov [Mon, 21 Oct 2013 15:16:56 +0000 (19:16 +0400)] 
Huawei CE5810 dictionary items

6 years agofix neighbor parsing on vrp 5.13
Aleksandr Balezin [Fri, 18 Oct 2013 08:14:42 +0000 (12:14 +0400)] 
fix neighbor parsing on vrp 5.13

6 years agofixed PHP-notice of undefinend variable
Christian Harendt [Mon, 21 Oct 2013 08:57:24 +0000 (10:57 +0200)] 
fixed PHP-notice of undefinend variable

6 years agoupgrade.php: ensure portb > porta in the Link table, remove the 'BETA' reference...
Aaron Dummer [Sun, 20 Oct 2013 18:19:08 +0000 (11:19 -0700)] 
upgrade.php: ensure portb > porta in the Link table, remove the 'BETA' reference from 0.20.0 release notes

6 years agoport type can now be changed even if port is linked (once)
Alexey Andriyanov [Fri, 18 Oct 2013 16:27:03 +0000 (09:27 -0700)] 
port type can now be changed even if port is linked (once)

renderPortsForObject: render form controls even if port is linked
getExistingPortTypeOptions: check if port is linked and select only compatible types

6 years agoremote: fix IOS CLI prompt detection (#1033)
Denis Ovsienko [Thu, 17 Oct 2013 15:13:20 +0000 (19:13 +0400)] 
remote: fix IOS CLI prompt detection (#1033)

BlazejG points that IOS sometimes prints "Username: " prompt in
lowercase. Adjust the regexp respectively.

6 years agodictionary: list recent Fedora releases
Denis Ovsienko [Thu, 17 Oct 2013 15:03:43 +0000 (19:03 +0400)] 
dictionary: list recent Fedora releases

6 years agoLLDP support on Nexus 6000
Alexey Andriyanov [Mon, 30 Sep 2013 10:18:58 +0000 (14:18 +0400)] 
LLDP support on Nexus 6000

Revert one of the old LLDP commits.
It tried to make 'show lldp neighbors detail' instead of 'show lldp
neighbors' on Nexus devices to determine remote interface description
and fallback to it when Port Id contained Juniper SNMP InterfaceId.

But it was a dirty hack and it worked only for some specific versions
of JunOS: modern devices transmit descriptions in Description TLVs, not
the ifName.

Also, some NX-OS versions of Nexus 6000 devices do not show 'Port ID'
field in detailed LLDP output (sic!), but show them in the standard
(brief) output.

So this commit rolls back parsing of detailed LLDP neighbor list on
Nexus devices.

6 years agoNexus 6000 series dictionary items
Alexey Andriyanov [Mon, 30 Sep 2013 09:31:43 +0000 (13:31 +0400)] 
Nexus 6000 series dictionary items

6 years agoios12ReadMacList: ignore port named 'Drop'
Alexey Andriyanov [Fri, 20 Sep 2013 11:31:37 +0000 (15:31 +0400)] 
ios12ReadMacList: ignore port named 'Drop'

6 years agovrp85Read8021QConfig: fix vlan list parsing
Alexey Andriyanov [Tue, 17 Sep 2013 15:45:32 +0000 (19:45 +0400)] 
vrp85Read8021QConfig: fix vlan list parsing

6 years agochangelog lines for Aleksandr Balezin's fixes
Alexey Andriyanov [Mon, 16 Sep 2013 14:14:50 +0000 (18:14 +0400)] 
changelog lines for Aleksandr Balezin's fixes

Conflicts:
ChangeLog

6 years agofix http status in printStatic404()
Aleksandr Balezin [Mon, 16 Sep 2013 13:47:21 +0000 (17:47 +0400)] 
fix http status in printStatic404()

6 years agoupdate RE_STATIC_URI regex
Aleksandr Balezin [Mon, 16 Sep 2013 13:46:22 +0000 (17:46 +0400)] 
update RE_STATIC_URI regex