racktables
8 years agor4452 Make VLAN switch templates one of "generic" realms:
Denis Ovsienko [Tue, 12 Apr 2011 10:53:19 +0000 (10:53 +0000)] 
r4452 Make VLAN switch templates one of "generic" realms:

$SQLSchema: add realm descriptor
amplifyCell(): merge code from getVLANSwitchTemplate()
generateEntityAutoTags(): add respective case
getVSTOptions(): rewrite and move to functions.php
install.php: update ENUM column
upgrade.php: idem
apply8021QOrder(): make use of spotEntity()/listCells()
trigger_vst_editrules(): idem
cloneVST(): idem
render8021QOrderForm(): idem
render8021QStatus(): idem
renderVSTListEditor(): idem
renderVST(): idem
renderVSTRulesEditor(): idem

8 years agor4451 forgot the pix
Alexey Andriyanov [Tue, 12 Apr 2011 08:37:42 +0000 (08:37 +0000)] 
r4451 forgot the pix

8 years agor4450
Alexey Andriyanov [Tue, 12 Apr 2011 08:36:58 +0000 (08:36 +0000)] 
r4450
2 new config vars: SSH_OBJS_LISTSRC and TELNET_OBJS_LISTSRC
considerConfiguredConstraintInContext: new function to judge if current context is matching the connfig var's constraint
formatAttributeValue: special formatting for FQDN attribute

8 years agor4449 remove unused error code
Denis Ovsienko [Mon, 11 Apr 2011 16:27:17 +0000 (16:27 +0000)] 
r4449 remove unused error code

8 years agor4448 isPCRE(): suppress PHP warning, a error is already handled here
Denis Ovsienko [Mon, 11 Apr 2011 16:21:50 +0000 (16:21 +0000)] 
r4448 isPCRE(): suppress PHP warning, a error is already handled here

8 years agor4447 bugfix: VST editor: unsaved regexps were sometimes undesirably modified
Alexey Andriyanov [Mon, 11 Apr 2011 15:57:33 +0000 (15:57 +0000)] 
r4447 bugfix: VST editor: unsaved regexps were sometimes undesirably modified

renderVSTRulesEditor: niftyString call replaced by htmlspecialchars.

8 years agor4446 renderVSTRulesEditor(): remove dead line
Denis Ovsienko [Mon, 11 Apr 2011 12:14:23 +0000 (12:14 +0000)] 
r4446 renderVSTRulesEditor(): remove dead line

8 years agor4445 bugfix: wrong calculation of total IPv4 address count in networks with spare...
Alexey Andriyanov [Sun, 10 Apr 2011 18:53:33 +0000 (18:53 +0000)] 
r4445 bugfix: wrong calculation of total IPv4 address count in networks with spare blocks

loadOwnIPv4Addresses: we need to count spare nested addresses, not node's

8 years agor4444 changelog entry for tag selector bugfix (rev. #4434)
Alexey Andriyanov [Sun, 10 Apr 2011 18:46:33 +0000 (18:46 +0000)] 
r4444 changelog entry for tag selector bugfix (rev. #4434)

8 years agor4443 amend 1000Base-CX justification
Denis Ovsienko [Sun, 10 Apr 2011 18:45:43 +0000 (18:45 +0000)] 
r4443 amend 1000Base-CX justification

8 years agor4442 RTPermissionDenied::dispatch() depends on the contents of interface-lib.php
Denis Ovsienko [Sat, 9 Apr 2011 19:50:12 +0000 (19:50 +0000)] 
r4442 RTPermissionDenied::dispatch() depends on the contents of interface-lib.php

8 years agor4441 1000Base-CX OIF is too uncommon these days to enable it by default (but a user
Denis Ovsienko [Sat, 9 Apr 2011 19:32:35 +0000 (19:32 +0000)] 
r4441 1000Base-CX OIF is too uncommon these days to enable it by default (but a user
still can do, once a need is).

8 years agor4439 add records required by 0.20.0
Denis Ovsienko [Sat, 9 Apr 2011 14:20:55 +0000 (14:20 +0000)] 
r4439 add records required by 0.20.0

8 years agor4438 Third round of IIF/OIF overhaul: get rid of SC, LC and MT-RJ options.
Denis Ovsienko [Sat, 9 Apr 2011 14:14:41 +0000 (14:14 +0000)] 
r4438 Third round of IIF/OIF overhaul: get rid of SC, LC and MT-RJ options.

8 years agor4437 Add 10GBase-ER (40km) DWDM channel grid
Denis Ovsienko [Fri, 8 Apr 2011 15:28:18 +0000 (15:28 +0000)] 
r4437 Add 10GBase-ER (40km) DWDM channel grid

8 years agor4436 bugfix: in-place editor's pencil is no more resizing table cells when it is...
Alexey Andriyanov [Fri, 8 Apr 2011 11:10:29 +0000 (11:10 +0000)] 
r4436 bugfix: in-place editor's pencil is no more resizing table cells when it is showing or hiding

The pencil image is now framed by a fixed-size div.

8 years agor4435 new feature: port change history
Alexey Andriyanov [Fri, 8 Apr 2011 08:37:20 +0000 (08:37 +0000)] 
r4435 new feature: port change history

getPortInfo and getObjectPortsAndLinks changed their result arrays schemas.
Now they are equal, and includes last log message, log count, port link data, remote and local object names.

unlinkPort: new ophandler needed instead of tableHandler
linkPortForObject: removed unnesessary getPortInfo and spotEntity calls
showMessageOrError: log message on port linked was changed

renderRackObject: removed unnessesary spotEntity, added log item formatting
renderPortsForObject: idem
renderObject8021QPorts: idem
renderDiscoveredNeighbors: removed unnessesary spotEntity

fetchPortList: new function to fetch unified port data from DB
getPortInfo: changed the result schema, it is extended. Now it is a dummy function using fetchPortList
getObjectPortsAndLinks: idem
getPortReservationComment: new function to fetch port reservation comment only
commitUpdatePort: puts the change message into PortLog
commitUpdatePortComment: idem
linkPorts: idem
commitUnlinkPort: new function for unlinking doing logging of this op
addPortLogEntry: new function to store port log message

formatLinkedPort: new function to format the HTML-link to remote port linked with the specified port.
formatLoggedSpan: new function to format HTML-text with the on-hover log message
formatPortReservation: added log item formatting
formatAge: time duration 'humanizer'

dispatchAJAXRequest: added second getPortInfo call to fetch newly created log message

8 years agor4434 attempt to fix muti-valued params issue appeared in 0.19.3
Alexey Andriyanov [Thu, 7 Apr 2011 15:01:35 +0000 (15:01 +0000)] 
r4434 attempt to fix muti-valued params issue appeared in 0.19.3

transformRequestData: do not try to process arrays as strings

8 years agor4433 update: 802.1q: config deploy to Cisco IOS switches is no more requiring 'switc...
Alexey Andriyanov [Thu, 7 Apr 2011 13:29:12 +0000 (13:29 +0000)] 
r4433 update: 802.1q: config deploy to Cisco IOS switches is no more requiring 'switchport trunk encapsulation dot1q' pre-set

ios12TranslatePushQueue: extra redundant command added if port switches into trunk

8 years agor4432 Second round of IIF/OIF overhaul:
Denis Ovsienko [Thu, 7 Apr 2011 13:17:23 +0000 (13:17 +0000)] 
r4432 Second round of IIF/OIF overhaul:

addPortInterfaceCompat(): rename to addIIFOIFCompat()
addOIFCompatPack(): rename to addIIFOIFCompatPack()
delOIFCompatPack(): rename to delIIFOIFCompatPack()
addOIFCompatPack(): new function
delOIFCompatPack(): new function
renderPortOIFCompatViewer(): rename to renderOIFCompatViewer()
renderPortOIFCompatEditor(): rename to renderOIFCompatEditor(), add WDM OIF packs portlet

8 years agor4431 bugfix: in-place editing of unallocated IPv4 address was not working
Alexey Andriyanov [Thu, 7 Apr 2011 12:50:26 +0000 (12:50 +0000)] 
r4431 bugfix: in-place editing of unallocated IPv4 address was not working

renderIPv4Network: forgot to add css class 'ancor' to the IP address

8 years agor4430 First round of IIF/OIF infrastructure overhaul:
Denis Ovsienko [Thu, 7 Apr 2011 11:14:30 +0000 (11:14 +0000)] 
r4430 First round of IIF/OIF infrastructure overhaul:

delPortInterfaceCompatPack(): rename to delOIFCompatPack()
addPortInterfaceCompatPack(): rename to addOIFCompatPack()
renderPortIFCompatEditor(): rename to renderIIFOIFCompatEditor()
renderPortIFCompat(): rename to renderIIFOIFCompat()
$wdm_packs: new global array, merging contents of $ifcompatpack and $pack
genericAssertion(): update respectively

8 years agor4428 update: new techniques of changing the directory layout are now supported by...
Alexey Andriyanov [Wed, 6 Apr 2011 15:39:01 +0000 (15:39 +0000)] 
r4428 update: new techniques of changing the directory layout are now supported by installer and upgrader

the search paths and DB connect code moved from init.php into pre-init.php
pre-init.php is included by both index.php and init.php to ensure it is loaded in all cases
The secret.php is loaded immediately after program starts.

install.php:
 not_already_installed: checks if secret.php is loaded instead of loading it
 init_config: changed path to secret.php file
 connect_to_db_or_die: renamed from connect_to_db, uses common connectDB function
 init_database_static: changed call to connect_to_db to reflect renaming
 init_database_dynamic: idem

upgrade.php:
 renderUpgraderHTML: the code of DB connecting moved here from index.php, predefined $user_auth_src='database' is reflected

8 years agor4427 new interface outer type '1000Base-CX'
Alexey Andriyanov [Wed, 6 Apr 2011 09:20:46 +0000 (09:20 +0000)] 
r4427 new interface outer type '1000Base-CX'

8 years agor4424 justify 0.19.3 pre-release bits RackTables-0.19.3
Denis Ovsienko [Tue, 5 Apr 2011 13:48:03 +0000 (13:48 +0000)] 
r4424 justify 0.19.3 pre-release bits

8 years agor4423 AttributeValue: add two KEYs from "0.19.2" upgrade batch
Denis Ovsienko [Tue, 5 Apr 2011 13:47:16 +0000 (13:47 +0000)] 
r4423 AttributeValue: add two KEYs from "0.19.2" upgrade batch

8 years agor4422 renderRackObject(): justify tested context to match "upd-reservation-port"...
Denis Ovsienko [Tue, 5 Apr 2011 13:44:00 +0000 (13:44 +0000)] 
r4422 renderRackObject(): justify tested context to match "upd-reservation-port" AJAX case

8 years agor4421 bugfix: IE and Opera issues with in-place editor
Alexey Andriyanov [Tue, 5 Apr 2011 12:12:05 +0000 (12:12 +0000)] 
r4421 bugfix: IE and Opera issues with in-place editor

8 years agor4420 getObjectTypeChangeOptions(): justify readChapter() call
Denis Ovsienko [Tue, 5 Apr 2011 10:59:58 +0000 (10:59 +0000)] 
r4420 getObjectTypeChangeOptions(): justify readChapter() call
renderEditObjectForm(): type ID SELECT is back with added logic
updateObject(): detect and validate a change of object's type ID

8 years agor4419 commitResetAttrValue(): dismiss, superseded by commitUpdateAttrValue()
Denis Ovsienko [Tue, 5 Apr 2011 10:40:33 +0000 (10:40 +0000)] 
r4419 commitResetAttrValue(): dismiss, superseded by commitUpdateAttrValue()
commitUpdateAttrValue(): update global cache, dismiss legacy checks, don't return value
clearSticker(): update respectively
updateObject(): idem

8 years agor4418 delete another stale comment
Denis Ovsienko [Tue, 5 Apr 2011 09:33:56 +0000 (09:33 +0000)] 
r4418 delete another stale comment

8 years agor4417 remove antiquated comments
Denis Ovsienko [Tue, 5 Apr 2011 09:30:23 +0000 (09:30 +0000)] 
r4417 remove antiquated comments

8 years agor4416 getObjectTypeChangeOptions(): new function to restore functionality in a consis...
Denis Ovsienko [Mon, 4 Apr 2011 23:06:40 +0000 (23:06 +0000)] 
r4416 getObjectTypeChangeOptions(): new function to restore functionality in a consistent way

8 years agor4415 updateObject(): update in the means of exceptions and transactions
Denis Ovsienko [Mon, 4 Apr 2011 18:33:58 +0000 (18:33 +0000)] 
r4415 updateObject(): update in the means of exceptions and transactions

8 years agor4414 usePreparedSelectBlade(): put PDO::prepare inside a try-block
Denis Ovsienko [Mon, 4 Apr 2011 16:18:28 +0000 (16:18 +0000)] 
r4414 usePreparedSelectBlade(): put PDO::prepare inside a try-block
commitAddFileCache(): idem, and also PDO::bindParam()
usePreparedExecuteBlade(): PDO::prepare raises an exception, dismiss if()

8 years agor4413 dispatchAJAXRequest(): justify security context of "upd-reservation-port" helper
Denis Ovsienko [Mon, 4 Apr 2011 14:54:07 +0000 (14:54 +0000)] 
r4413 dispatchAJAXRequest(): justify security context of "upd-reservation-port" helper

8 years agor4412 update: In-place AJAX editing of reservation comments on object ports and IP...
Alexey Andriyanov [Mon, 4 Apr 2011 13:23:40 +0000 (13:23 +0000)] 
r4412 update: In-place AJAX editing of reservation comments on object ports and IP addresses

useupPort: using new function commitUpdatePortComment instad of direct DB request
renderRackObject: HTML layout justification for AJAX interface
renderIPv4Network: HTML layout justification for AJAX interface
renderEmptyIPv6: idem
renderIPv6NetworkAddresses: idem
commitUpdatePortComment: new function updating only one port field, keeping the others untouched
getPortInfo: new keys in result: 'id' and 'reservation_comment'
formatPortReservation: new func to render some of port's <td> tags
dispatchAJAXRequest: two new ops: update port comment and update ip address comment

js/inplace-edit.js: new JS lib for AJAX text editor

8 years agor4411 add a ProCurve record
Denis Ovsienko [Thu, 31 Mar 2011 22:28:40 +0000 (22:28 +0000)] 
r4411 add a ProCurve record

8 years agor4410 merge the edits contributed by Michael
Denis Ovsienko [Thu, 31 Mar 2011 21:16:22 +0000 (21:16 +0000)] 
r4410 merge the edits contributed by Michael

8 years agor4409 bugfix: in default installation RT was not able to find its own gateways directory
Alexey Andriyanov [Thu, 31 Mar 2011 11:32:27 +0000 (11:32 +0000)] 
r4409 bugfix: in default installation RT was not able to find its own gateways directory

init.php: $racktables_gwdir was pointing to the RT/wwwroot/gateways instead of RT/gateways

8 years agor4408 802.1Q: remove mgmt vlans first, the others - afterwards.
Alexey Andriyanov [Thu, 31 Mar 2011 11:20:32 +0000 (11:20 +0000)] 
r4408 802.1Q: remove mgmt vlans first, the others - afterwards.

generate8021QDeployOps: changed func prototype. Reorder of port list, and removed VLANs list
exportSwitch8021QConfig: changed call to generate8021QDeployOps to reflect the change in prototype
getEmployedVlans: the code determining mgmt vlans separated from produceUplinkPorts
produceUplinkPorts: idem

8 years agor4407 changelog line for magic_quotes bugfix
Alexey Andriyanov [Thu, 31 Mar 2011 11:11:36 +0000 (11:11 +0000)] 
r4407 changelog line for magic_quotes bugfix

8 years agor4406 bugfix: magic_quotes were not suppressed. Appeared in 0.19.2
Alexey Andriyanov [Wed, 30 Mar 2011 13:03:18 +0000 (13:03 +0000)] 
r4406 bugfix: magic_quotes were not suppressed. Appeared in 0.19.2

transformRequestData: only GET and POST keys are processed, the other keys are deleted from REQUEST

8 years agor4405 renderVLANInfo(): find and list counterpart VLANs in the summary block
Denis Ovsienko [Wed, 30 Mar 2011 11:39:14 +0000 (11:39 +0000)] 
r4405 renderVLANInfo(): find and list counterpart VLANs in the summary block

8 years agor4404 sort IP allocation lists by osif (in IPv4, IPv6 tabs)
Alexey Andriyanov [Tue, 29 Mar 2011 09:39:34 +0000 (09:39 +0000)] 
r4404 sort IP allocation lists by osif (in IPv4, IPv6 tabs)

getObjectIPv4Allocations: added sorting the result array by osif using sortPortList
getObjectIPv6Allocations: idem
getObjectIPv4AllocationList: removed SQL statement ORDER BY
getObjectIPv6AllocationList: idem

8 years agor4403 reverting of commit #4392
Alexey Andriyanov [Mon, 28 Mar 2011 15:42:05 +0000 (15:42 +0000)] 
r4403 reverting of commit #4392

Suspecting it causes an infinite redirect loop than user's IP changes (submitted by neverov@)

8 years agor4402 renderAddMultipleObjectsForm(): remove extraneous barcode column header
Aaron Dummer [Mon, 28 Mar 2011 15:16:55 +0000 (15:16 +0000)] 
r4402 renderAddMultipleObjectsForm(): remove extraneous barcode column header

8 years agor4401 bugfix: VRP 5.5 802.1q gateway: support of eth-trunks with 'service type multic...
Alexey Andriyanov [Mon, 28 Mar 2011 11:46:42 +0000 (11:46 +0000)] 
r4401 bugfix: VRP 5.5 802.1q gateway: support of eth-trunks with 'service type multicast-tunnel' set

vrp55Read8021QConfig: added handler for  'service type multicast-tunnel' line

8 years agor4400 getAccessPortControlCode(): update to use {$vlan_NNNN} in permission tests
Denis Ovsienko [Mon, 28 Mar 2011 10:45:14 +0000 (10:45 +0000)] 
r4400 getAccessPortControlCode(): update to use {$vlan_NNNN} in permission tests

8 years agor4399 updateRack: use correct 'OK' msgcode
Aaron Dummer [Sun, 27 Mar 2011 04:42:09 +0000 (04:42 +0000)] 
r4399 updateRack: use correct 'OK' msgcode

8 years agor4398 updated header comment block
Denis Ovsienko [Sat, 26 Mar 2011 22:00:18 +0000 (22:00 +0000)] 
r4398 updated header comment block

8 years agor4397 gotClearanceForTagChain(): update comment block
Denis Ovsienko [Sat, 26 Mar 2011 12:13:05 +0000 (12:13 +0000)] 
r4397 gotClearanceForTagChain(): update comment block

8 years agor4396 bugfix: Rackcode check report was croaking on $op_get_link_status and other...
Alexey Andriyanov [Fri, 25 Mar 2011 16:21:16 +0000 (16:21 +0000)] 
r4396 bugfix: Rackcode check report was croaking on $op_get_link_status and other similar autotags.

findAutoTagWarnings: fixed op_* regexp

8 years agor4395 setPortVLAN(): include "$vlan_NNNN" autotags into every evaluated VLAN change...
Denis Ovsienko [Fri, 25 Mar 2011 14:55:46 +0000 (14:55 +0000)] 
r4395 setPortVLAN(): include "$vlan_NNNN" autotags into every evaluated VLAN change context
renderVLANMembership(): idem
authorize8021QChangeRequests(): idem
findAutoTagWarnings(): update RE for the new autotag

8 years agor4394 upgrade.php: delete invalid rows in RackSpace, which could be left by transacti...
Denis Ovsienko [Fri, 25 Mar 2011 12:40:24 +0000 (12:40 +0000)] 
r4394 upgrade.php: delete invalid rows in RackSpace, which could be left by transactionless processGridForm()

8 years agor4393 processGridForm(): employ transaction to make sure, that the changes either
Denis Ovsienko [Fri, 25 Mar 2011 10:43:38 +0000 (10:43 +0000)] 
r4393 processGridForm(): employ transaction to make sure, that the changes either
  happen all at once, or don't happen at all (to avoid leaving inconsistent
  data in the table like that in bugs #399/415)

8 years agor4392 Do not show ugly unhandled exception page when possible. Instead, show formatte...
Alexey Andriyanov [Fri, 25 Mar 2011 07:17:00 +0000 (07:17 +0000)] 
r4392 Do not show ugly unhandled exception page when possible. Instead, show formatted error message on the previous page.

index.php: in exception handler if HTTP_REFERER is set, redirect user there and show formatted exception message.

8 years agor4391 update: when searching for object by its hostname (FQDN attr) and single match...
Alexey Andriyanov [Fri, 25 Mar 2011 07:13:29 +0000 (07:13 +0000)] 
r4391 update: when searching for object by its hostname (FQDN attr) and single match is found, no searching by other fields is done

searchEntitiesByText: do not try to do all-fields search when searchByMgmtHostname returns value

8 years agor4390 nxos4.connector: wait 60 seconds instead of default 10 when pushing save config...
Alexey Andriyanov [Fri, 25 Mar 2011 07:08:15 +0000 (07:08 +0000)] 
r4390 nxos4.connector: wait 60 seconds instead of default 10 when pushing save configuration command.
Nexus 7000 series saves its config for about 40 seconds.

8 years agor4388 change the current version to 0.19.2 RackTables-0.19.2
Alexey Andriyanov [Thu, 24 Mar 2011 15:28:12 +0000 (15:28 +0000)] 
r4388 change the current version to 0.19.2

8 years agor4387 bugfix: invalid multibyte sequence PHP warning
Alexey Andriyanov [Thu, 24 Mar 2011 15:03:10 +0000 (15:03 +0000)] 
r4387 bugfix: invalid multibyte sequence PHP warning
transformRequestData: do not process cookies from $_REQUEST

8 years agor4386 bugfix: PHP notice was displayed in generate8021QDeployOps if VLAN is not the...
Alexey Andriyanov [Thu, 24 Mar 2011 12:44:33 +0000 (12:44 +0000)] 
r4386 bugfix: PHP notice was displayed in generate8021QDeployOps if VLAN is not the member of domain

8 years agor4385 Release notes changed prior to the release of 0.19.2
Alexey Andriyanov [Thu, 24 Mar 2011 11:27:36 +0000 (11:27 +0000)] 
r4385 Release notes changed prior to the release of 0.19.2

8 years agor4384 getDictStats: added two new chapters into list
Alexey Andriyanov [Thu, 24 Mar 2011 09:53:57 +0000 (09:53 +0000)] 
r4384 getDictStats: added two new chapters into list

8 years agor4383 bugfix: got rid of PHP warning in buildWideRedirectURL
Alexey Andriyanov [Thu, 24 Mar 2011 08:16:53 +0000 (08:16 +0000)] 
r4383 bugfix: got rid of PHP warning in buildWideRedirectURL

8 years agor4382 Dismiss message code 207, which was basically a copy of code 201.
Denis Ovsienko [Wed, 23 Mar 2011 16:52:03 +0000 (16:52 +0000)] 
r4382 Dismiss message code 207, which was basically a copy of code 201.

8 years agor4379 Another round of directory paths justification
Alexey Andriyanov [Tue, 22 Mar 2011 16:15:14 +0000 (16:15 +0000)] 
r4379 Another round of directory paths justification
Five overridable paths are grouped together in the same section:
   $racktables_staticdir, $racktables_gwdir, $racktables_confdir, $path_to_secret_php, $path_to_local_php
They all have default values as absolute paths pointing to the traditional locations

Checking for conffiles existance is made with respect of PHP include's searching method.
fileSearchExists: new function to replicate the PHP include's searching logic

8 years agor4378 * ability to override $racktables_gwdir and $racktables_staticdir from within...
Alexey Andriyanov [Tue, 22 Mar 2011 13:07:09 +0000 (13:07 +0000)] 
r4378 * ability to override $racktables_gwdir and $racktables_staticdir from within custom entry-point wrapper
* got rid of default relative paths in the global dir variables

8 years agor4377 support for Windows PHP installation when parsing '$racktables_confdir'
Alexey Andriyanov [Tue, 22 Mar 2011 12:24:37 +0000 (12:24 +0000)] 
r4377 support for Windows PHP installation when parsing '$racktables_confdir'
ability to override $path_to_secret_php and $path_to_local_php from within custom entry-point wrapper

getFileFullPath: changed using regexp and forward slashes to dirname

8 years agor4376 bugfix: LiveLLDP now supports 'local' port type with Huawei VRP v5 devices
Alexey Andriyanov [Mon, 21 Mar 2011 13:44:04 +0000 (13:44 +0000)] 
r4376 bugfix: LiveLLDP now supports 'local' port type with Huawei VRP v5 devices

vrp53ReadLLDPStatus:
vrp55ReadLLDPStatus: these functions were merged together into vrp5xReadLLDPStatus

8 years agor4375 sendFile gateway now returns an answer from handler
Alexey Andriyanov [Mon, 21 Mar 2011 11:36:29 +0000 (11:36 +0000)] 
r4375 sendFile gateway now returns an answer from handler

sendfile/main: combines OK! with the line returned by handler
gwSendFile: returns the line echoed by sendfile handler
gwSendFileToObject: idem

8 years agor4374 treat switchport-only interfaces as access ports by default
Alexey Andriyanov [Sun, 20 Mar 2011 15:09:24 +0000 (15:09 +0000)] 
r4374 treat switchport-only interfaces as access ports by default
ios12PickSwitchportCommand: added switchport-only command handler

8 years agor4373 bugfix: recent commit broke displaying of native vlan
Alexey Andriyanov [Sun, 20 Mar 2011 15:02:24 +0000 (15:02 +0000)] 
r4373 bugfix: recent commit broke displaying of native vlan
serializeVLANPack: native vlan displaying fixed

8 years agor4372 802.1q: a diff between new and former VLAN packs appears in 802.1q port config...
Alexey Andriyanov [Sun, 20 Mar 2011 14:34:49 +0000 (14:34 +0000)] 
r4372 802.1q: a diff between new and former VLAN packs appears in 802.1q port config if the config is complicated

formatVLANPackDiff: new function to format a VLAN pack diff
groupIntsToRanges: new function to make a list of ranges from the list of integers
serializeVLANPack: use new groupIntsToRanges
renderObject8021QPorts: use new formatVLANPackDiff
renderObject8021QSync: idem

8 years agor4371 ChangeLog: add reference to bug #413
Aaron Dummer [Sat, 19 Mar 2011 16:59:42 +0000 (16:59 +0000)] 
r4371 ChangeLog: add reference to bug #413
database.php: remove excess whitespace

8 years agor4370 proper handling of link statuses in NX-OS gateway for Nexus 7000/NX-OS 5.
Alexey Andriyanov [Fri, 18 Mar 2011 17:38:55 +0000 (17:38 +0000)] 
r4370 proper handling of link statuses in NX-OS gateway for Nexus 7000/NX-OS 5.

ciscoReadInterfaceStatus: notconnected and sfpAbsent handlers added

8 years agor4369 LiveCDP/LiveLLDP: support of combo ports (same name, different port types)
Alexey Andriyanov [Fri, 18 Mar 2011 16:08:16 +0000 (16:08 +0000)] 
r4369 LiveCDP/LiveLLDP: support of combo ports (same name, different port types)

renderDiscoveredNeighbors: push more specific pairs into $variants
formatIfTypeVariants: format item label differently

8 years agor4368 syntax error in loadable files secret.php and local.php are now properly logged
Alexey Andriyanov [Fri, 18 Mar 2011 13:04:08 +0000 (13:04 +0000)] 
r4368 syntax error in loadable files secret.php and local.php are now properly logged

getFileFullPath: new function emulation the searching algorythm like PHP's include() does

8 years agor4367 auth.php: update comment
Denis Ovsienko [Thu, 17 Mar 2011 23:53:33 +0000 (23:53 +0000)] 
r4367 auth.php: update comment
authenticated_via_ldap_cache(): justify exception class

8 years agor4366 findAutoTagWarnings(): update for spotEntity() throwing an exception
Denis Ovsienko [Thu, 17 Mar 2011 23:02:15 +0000 (23:02 +0000)] 
r4366 findAutoTagWarnings(): update for spotEntity() throwing an exception

8 years agor4365 serializeTags(): move to interface-lib.php and clean up
Denis Ovsienko [Thu, 17 Mar 2011 22:52:11 +0000 (22:52 +0000)] 
r4365 serializeTags(): move to interface-lib.php and clean up
renderAccessDenied(): dismiss, merge the code into RTPermissionDenied::dispatch()

8 years agor4364 renderProgressBarImage(): add range check for parameter
Denis Ovsienko [Thu, 17 Mar 2011 22:30:41 +0000 (22:30 +0000)] 
r4364 renderProgressBarImage(): add range check for parameter
renderProgressBarError(): new function to output inline image
index.php: use above to handle errors

8 years agor4363 index.php: take care of "permission denied" in "ajax" module
Denis Ovsienko [Thu, 17 Mar 2011 19:53:27 +0000 (19:53 +0000)] 
r4363 index.php: take care of "permission denied" in "ajax" module
dispatchAJAXRequest(): clean up

8 years agor4362 validTagName(): move to interface-lib.php to make available during early stage
Denis Ovsienko [Thu, 17 Mar 2011 18:57:51 +0000 (18:57 +0000)] 
r4362 validTagName(): move to interface-lib.php to make available during early stage

8 years agor4361 constructUserCell(): move to database.php to make auth.php less dependent on...
Denis Ovsienko [Thu, 17 Mar 2011 18:52:32 +0000 (18:52 +0000)] 
r4361 constructUserCell(): move to database.php to make auth.php less dependent on functions.php
generateEntityAutoTags(): idem

8 years agor4360 index.php: make 'progressbar' a standalone module
Denis Ovsienko [Thu, 17 Mar 2011 18:45:23 +0000 (18:45 +0000)] 
r4360 index.php: make 'progressbar' a standalone module
getProgressBar(): update URI
dispatchImageRequest(): dismiss 'progressbar' case

8 years agor4359 dispatchImageRequest(): add missing semicolon
Denis Ovsienko [Thu, 17 Mar 2011 18:30:55 +0000 (18:30 +0000)] 
r4359 dispatchImageRequest(): add missing semicolon

8 years agor4358 render_image.php: rename to solutions.php and add comment
Denis Ovsienko [Thu, 17 Mar 2011 18:29:34 +0000 (18:29 +0000)] 
r4358 render_image.php: rename to solutions.php and add comment
printStatic404(): move to solutions.php
proxyStaticURI(): idem

8 years agor4357 interface API functions moved to appropriate file
Alexey Andriyanov [Thu, 17 Mar 2011 16:49:26 +0000 (16:49 +0000)] 
r4357 interface API functions moved to appropriate file

addJS: moved from functions.php into interface-lib.php
addCSS: idem
printPageHeaders: idem

8 years agor4356 process8021QRecalcRequest(): employ assertPermission()
Denis Ovsienko [Thu, 17 Mar 2011 14:24:48 +0000 (14:24 +0000)] 
r4356 process8021QRecalcRequest(): employ assertPermission()
searchHandler(): discard useless check

8 years agor4355 FreeBSD 8.x added to dictionary
Alexey Andriyanov [Thu, 17 Mar 2011 14:17:46 +0000 (14:17 +0000)] 
r4355 FreeBSD 8.x added to dictionary

8 years agor4354 RTPermissionDenied: new class instead of RackTablesError::NOT_AUTHORIZED
Denis Ovsienko [Thu, 17 Mar 2011 14:11:18 +0000 (14:11 +0000)] 
r4354 RTPermissionDenied: new class instead of RackTablesError::NOT_AUTHORIZED
assertPermission(): new function
searchHandler(): update respectively
renderPopupHTML(): idem
index.php: idem
dispatchImageRequest(): idem

8 years agor4353 renderAccessDeniedImage(): store image inline instead of generating
Denis Ovsienko [Thu, 17 Mar 2011 13:42:11 +0000 (13:42 +0000)] 
r4353 renderAccessDeniedImage(): store image inline instead of generating

8 years agor4352 LiveCDP, LiveLLDP, etc: ability to install tranceivers into ports in-place...
Alexey Andriyanov [Thu, 17 Mar 2011 13:35:51 +0000 (13:35 +0000)] 
r4352 LiveCDP, LiveLLDP, etc: ability to install tranceivers into ports in-place, while linking the ports

modified functions:
importDPData: does the tranceiver installation by calling commitUpdatePortOIF. Uses DB transactions
renderDiscoveredNeighbors: calculates variant list and presents it to the user. Toggle checkbox added
searchByMgmtHostname: now it matches not only full FQDN, but also its part, allowing to not having object names like hostnames. Uses new DB indexes
usePreparedUpdateBlade: function prototype ne wis identical to siblings: it is returning the updated rows count, or FALSE
getSelect: new param $treat_single_special. If it is true, and the option list contains single value, hidden input returned instead of select

new functions:
getPortTypeUsageStatistics: fetches the links count grouped by port type
formatIfTypeVariants: formats variant list into the HTML selecbox
isTranceiverEmpty: new func with self-explaining name
commitUpdatePortOIF: DB function to change port type

new indices in table AttributeValue used to search objects by attribute values

8 years agor4351 explain the specifics of "image" module
Denis Ovsienko [Thu, 17 Mar 2011 11:27:13 +0000 (11:27 +0000)] 
r4351 explain the specifics of "image" module

8 years agor4350 updateUser(): add missing assertion
Denis Ovsienko [Thu, 17 Mar 2011 11:20:05 +0000 (11:20 +0000)] 
r4350 updateUser(): add missing assertion
updateObjectAllocation(): make use of getBypassValue()
resetObject(): ditto
useupPort(): ditto
addRealServer(): ditto
updateRSInService(): ditto
rollTags(): ditto
submitSLBConfig(): ditto
updateRack(): ditto
updateRackDesign(): ditto
updateRackProblems(): ditto
querySNMPData(): ditto
replaceFile(): ditto
addFileWithoutLink(): ditto

8 years agor4349 new dictionary items: Cisco Nexus fabric extenders
Alexey Andriyanov [Thu, 17 Mar 2011 09:31:43 +0000 (09:31 +0000)] 
r4349 new dictionary items: Cisco Nexus fabric extenders

8 years agor4348 remove all instances of formatTimestamp()
Aaron Dummer [Wed, 16 Mar 2011 23:37:24 +0000 (23:37 +0000)] 
r4348 remove all instances of formatTimestamp()

8 years agor4347 dos2unix(): move to interface-lib.php
Denis Ovsienko [Wed, 16 Mar 2011 23:14:23 +0000 (23:14 +0000)] 
r4347 dos2unix(): move to interface-lib.php
escapeString(): idem
transformRequestData(): new function to house the code previously in init.php

8 years agor4346 dismiss single-use variable
Denis Ovsienko [Wed, 16 Mar 2011 22:36:08 +0000 (22:36 +0000)] 
r4346 dismiss single-use variable