racktables
8 years agor4141 getMessagesCount added. Returns unshown messages count by type
Alexey Andriyanov [Wed, 19 Jan 2011 13:35:50 +0000 (13:35 +0000)] 
r4141 getMessagesCount added. Returns unshown messages count by type

8 years agor4140 renderProgressBar(): move actual code to a new function getProgressBar()
Denis Ovsienko [Tue, 18 Jan 2011 18:04:09 +0000 (18:04 +0000)] 
r4140 renderProgressBar(): move actual code to a new function getProgressBar()

8 years agor4139 added support for SNMP sync of Huawei VRP 5.70 switch
Alexey Andriyanov [Tue, 18 Jan 2011 08:59:58 +0000 (08:59 +0000)] 
r4139 added support for SNMP sync of Huawei VRP 5.70 switch

8 years agor4138 commitResetObject(): use appropriate function for DELETE
Denis Ovsienko [Sun, 16 Jan 2011 10:05:42 +0000 (10:05 +0000)] 
r4138 commitResetObject(): use appropriate function for DELETE
updateV6Address(): idem
unbindIPv6FromObject(): idem
bindIPv6ToObject(): likewise, for INSERT
updateV6Address(): idem
processGridForm(): likewise, for UPDATE
updateIPv6Bond(): idem
commitUpdateUserAccount(): idem
commitSetInService(): idem

commitUpdateDictionary(): dismiss
commitUpdateChapter(): dismiss
commitUpdateVLANDescription(): dismiss
storeConfigVar(): dismiss
setConfigVar(): update
changeAttribute(): dismiss
commitUpdateAttribute(): dismiss
commitUseupPort(): dismiss
deleteUserConfigVar(): dismiss
resetUserConfigVar(): update
storeUserConfigVar(): dismiss
saveThumbCache(): dismiss
resetThumbCache(): dismiss

updateDictionary(): update respectively
updateChapter(): idem
updVLANDescription(): idem
useupPort(): idem
setUserConfigVar(): idem
updateObject(): idem
deleteObject(): idem
resetObject(): idem
updateRack(): idem
processGridForm(): idem
render_image.php: idem

8 years agor4137 bugfix: notice message 'Undefined variable: _SESSION' was appearing in errorlog
Alexey Andriyanov [Sun, 16 Jan 2011 09:39:48 +0000 (09:39 +0000)] 
r4137 bugfix: notice message 'Undefined variable: _SESSION' was appearing in errorlog

clearMessages: added check for defined before unsetting.

8 years agor4136 addPortForObject(): update assertion
Denis Ovsienko [Sat, 15 Jan 2011 21:21:32 +0000 (21:21 +0000)] 
r4136 addPortForObject(): update assertion
editPortForObject(): use modern patterns
commitUpdatePort(): make use of usePreparedUpdateBlade() and exception

8 years agor4135 bugfix: merging of v1 and v2 messages was broken from creation time
Alexey Andriyanov [Fri, 14 Jan 2011 17:53:53 +0000 (17:53 +0000)] 
r4135 bugfix: merging of v1 and v2 messages was broken from creation time
setMessage: buggy nested ?: constructions replaced by switch-case

8 years agor4134 Ability to conditional include of gateways.php from within functions
Alexey Andriyanov [Fri, 14 Jan 2011 17:26:06 +0000 (17:26 +0000)] 
r4134 Ability to conditional include of gateways.php from within functions

added explicit global definitions for globals in gateways.php

8 years agor4133 bugfix: showNotice was not merged with another v2 log messages
Alexey Andriyanov [Fri, 14 Jan 2011 17:25:06 +0000 (17:25 +0000)] 
r4133 bugfix: showNotice was not merged with another v2 log messages

8 years agor4132 Ability to conditional include of snmp.php and ophandlers.php from within functions
Alexey Andriyanov [Fri, 14 Jan 2011 17:04:11 +0000 (17:04 +0000)] 
r4132 Ability to conditional include of snmp.php and ophandlers.php from within functions

added explicit global definitions for globals in snmp.php and ophandlers.php

8 years agor4131 fix syntax error
Denis Ovsienko [Fri, 14 Jan 2011 12:13:09 +0000 (12:13 +0000)] 
r4131 fix syntax error

8 years agor4130 bugfix: removed urls to theme pictures of contextmenu lib which are missing
Alexey Andriyanov [Fri, 14 Jan 2011 12:09:18 +0000 (12:09 +0000)] 
r4130 bugfix: removed urls to theme pictures of contextmenu lib which are missing

8 years agor4128 commitUpdateObject(): make use of usePreparedUpdateBlade()
Denis Ovsienko [Fri, 14 Jan 2011 11:30:51 +0000 (11:30 +0000)] 
r4128 commitUpdateObject(): make use of usePreparedUpdateBlade()
commitResetObject(): ditto
commitUpdateRack(): ditto

8 years agor4126 renderVSTListEditor(): update to always have the hidden parameter
Denis Ovsienko [Thu, 13 Jan 2011 21:13:17 +0000 (21:13 +0000)] 
r4126 renderVSTListEditor(): update to always have the hidden parameter
commitLinkFile(): dismiss in favour of usePreparedInsertBlade()
addFileToEntity(): update respectively
linkFileToEntity(): idem
commitUpdateLB(): dismiss
updateLoadBalancer(): dismiss
commitUpdateRSPool(): dismiss
updateRSPool(): dismiss
commitUpdateFile(): dismiss
updateFile(): dismiss
commitUpdateVLANDomain(): dismiss
updateVLANDomain(): dismiss
commitUpdateVST(): dismiss
updVLANSwitchTemplate(): dismiss
upd8021QPort(): employ usePreparedUpdateBlade()

8 years agor4125 commitUpdateVSTRule(): unused, sayonara
Denis Ovsienko [Thu, 13 Jan 2011 16:40:46 +0000 (16:40 +0000)] 
r4125 commitUpdateVSTRule(): unused, sayonara

8 years agor4124 updateObjectAllocation(): switch to $sic
Denis Ovsienko [Thu, 13 Jan 2011 16:06:23 +0000 (16:06 +0000)] 
r4124 updateObjectAllocation(): switch to $sic
renderRackspaceHistory(): update respectively

8 years agor4123 updateObjectAllocation(): replace old code with a call to usePreparedInsertBlade()
Denis Ovsienko [Thu, 13 Jan 2011 15:59:27 +0000 (15:59 +0000)] 
r4123 updateObjectAllocation(): replace old code with a call to usePreparedInsertBlade()

8 years agor4122 addTagForEntity(): use exception
Denis Ovsienko [Thu, 13 Jan 2011 15:36:27 +0000 (15:36 +0000)] 
r4122 addTagForEntity(): use exception

8 years agor4121 buildWideRedirectURL(): clean up style
Denis Ovsienko [Thu, 13 Jan 2011 12:36:49 +0000 (12:36 +0000)] 
r4121 buildWideRedirectURL(): clean up style

8 years agor4120 added necessary OB and exceptions wrapping
Denis Ovsienko [Thu, 13 Jan 2011 10:55:16 +0000 (10:55 +0000)] 
r4120 added necessary OB and exceptions wrapping

8 years agor4119 updateTag(): dismiss, now obsolete
Denis Ovsienko [Thu, 13 Jan 2011 10:31:09 +0000 (10:31 +0000)] 
r4119 updateTag(): dismiss, now obsolete
commitUpdateTag(): sayonara

8 years agor4118 process.php: roll "array" check back as well
Denis Ovsienko [Thu, 13 Jan 2011 10:07:20 +0000 (10:07 +0000)] 
r4118 process.php: roll "array" check back as well

8 years agor4117 initialise $opspec_list correctly
Denis Ovsienko [Thu, 13 Jan 2011 10:00:17 +0000 (10:00 +0000)] 
r4117 initialise $opspec_list correctly

8 years agor4116 hotfix to really call the function
Denis Ovsienko [Thu, 13 Jan 2011 09:55:32 +0000 (09:55 +0000)] 
r4116 hotfix to really call the function

8 years agor4115 process.php: don't treat tableHandler() as a special case
Denis Ovsienko [Thu, 13 Jan 2011 09:35:56 +0000 (09:35 +0000)] 
r4115 process.php: don't treat tableHandler() as a special case
ophandlers.php: move schema structure here from navigation.php
getOpspec(): new helper function
tableHandler(): use above instead of argument

8 years agor4114 updIPv4Prefix(): sayonara
Denis Ovsienko [Thu, 13 Jan 2011 08:48:29 +0000 (08:48 +0000)] 
r4114 updIPv4Prefix(): sayonara
updateIPv4Network_real(): sayonara
updIPv6Prefix(): sayonara
updateIPv6Network_real(): sayonara

8 years agor4113 usePreparedUpdateBlade(): new function
Denis Ovsienko [Wed, 12 Jan 2011 22:26:05 +0000 (22:26 +0000)] 
r4113 usePreparedUpdateBlade(): new function
tableHandler(): add processing of UPDATE
updateRow(): dismiss, now obsolete
commitUpdateRow(): idem

8 years agor4112 genericAssertion(): add "enum/inet4alloc" and "enum/inet6alloc" cases
Denis Ovsienko [Wed, 12 Jan 2011 16:06:56 +0000 (16:06 +0000)] 
r4112 genericAssertion(): add "enum/inet4alloc" and "enum/inet6alloc" cases
updIPv4Allocation(): update respectively
updIPv6Allocation(): idem
addIPv4Allocation(): idem
addIPv6Allocation(): idem

8 years agor4111 renderVST(): restore lost "global"
Denis Ovsienko [Wed, 12 Jan 2011 15:56:20 +0000 (15:56 +0000)] 
r4111 renderVST(): restore lost "global"

8 years agor4110 Some minor cleanups, including:
Denis Ovsienko [Wed, 12 Jan 2011 12:38:23 +0000 (12:38 +0000)] 
r4110 Some minor cleanups, including:

authenticated_via_ldap(): employ exception
render_image.php: using renderError() is more appropriate for browsers expecting IMG

8 years agor4109 function generate8021QDeployOps was separated from exportSwitch8021QConfig
Alexey Andriyanov [Wed, 12 Jan 2011 11:34:12 +0000 (11:34 +0000)] 
r4109 function generate8021QDeployOps was separated from exportSwitch8021QConfig
to make 8021q pseudo-commands availible for local.php functions

8 years agor4108 UI: VST editor: show attention message when unsaved tamplate is displayed
Alexey Andriyanov [Wed, 12 Jan 2011 10:50:22 +0000 (10:50 +0000)] 
r4108 UI: VST editor: show attention message when unsaved tamplate is displayed

8 years agor4107 getConfigVar(): review in a way of exceptions thrown
Denis Ovsienko [Wed, 12 Jan 2011 10:29:09 +0000 (10:29 +0000)] 
r4107 getConfigVar(): review in a way of exceptions thrown
setConfigVar(): ditto
setUserConfigVar(): ditto
resetUserConfigVar(): ditto

8 years agor4106 delete one more obsolete message
Denis Ovsienko [Wed, 12 Jan 2011 09:23:54 +0000 (09:23 +0000)] 
r4106 delete one more obsolete message

8 years agor4105 setSwitchVLANs(): replace log array tricks with oneLiner/mergeLogs
Denis Ovsienko [Wed, 12 Jan 2011 08:56:45 +0000 (08:56 +0000)] 
r4105 setSwitchVLANs(): replace log array tricks with oneLiner/mergeLogs

8 years agor4104 show page/tab handler exception messages embedded in main page interface
Alexey Andriyanov [Wed, 12 Jan 2011 05:50:37 +0000 (05:50 +0000)] 
r4104 show page/tab handler exception messages embedded in main page interface
prevent message appearing in foreign tab

+clearMessages: clears $_SESSION['log']
index.php: additional try-catch block added around tabhandler call
index.php: message list is clearead after index.php finishes, making sure no unshown messages kept
showMessageOrError: used new clearMessages

8 years agor4103 getVLANSwitchTemplate(): asterisk SELECT is an evil, replace
Denis Ovsienko [Wed, 12 Jan 2011 00:29:00 +0000 (00:29 +0000)] 
r4103 getVLANSwitchTemplate(): asterisk SELECT is an evil, replace
genericAssertion(): JSON gets spoiled in $_REQUEST, but not in $sic
commitUpdateVSTRules(): check mutex reliably, don't return anything, let exceptions roll transaction back
updVSTRule(): rewrite in a way with exceptions in mind

8 years agor4102 querySNMPData(): fix mistype
Denis Ovsienko [Tue, 11 Jan 2011 23:50:14 +0000 (23:50 +0000)] 
r4102 querySNMPData(): fix mistype

8 years agor4101 deleteRack(): fix mistype
Denis Ovsienko [Tue, 11 Jan 2011 23:47:56 +0000 (23:47 +0000)] 
r4101 deleteRack(): fix mistype

8 years agor4100 updateVService(): improve assertion
Denis Ovsienko [Tue, 11 Jan 2011 23:24:03 +0000 (23:24 +0000)] 
r4100 updateVService(): improve assertion
setPortVLAN(): make oneLiner() use explicit, add 2nd catch block
addRack(): dismiss old checks
deleteRack(): idem
querySNMPData(): reoder branches

8 years agor4099 genericAssertion(): add "enum/ipproto" case
Denis Ovsienko [Tue, 11 Jan 2011 22:19:52 +0000 (22:19 +0000)] 
r4099 genericAssertion(): add "enum/ipproto" case
addVService(): update respectively and merge meaningful code of commitCreateVS()
commitCreateVS(): bye
updateUser(): fix mistype

8 years agor4098 setPortVLAN(): update with respect to assertions, exceptions and error codes
Denis Ovsienko [Tue, 11 Jan 2011 22:01:31 +0000 (22:01 +0000)] 
r4098 setPortVLAN(): update with respect to assertions, exceptions and error codes
renderVLANMembership(): add catch block
setSwitchVLANs(): employ exceptions
gwSendFileToObject(): idem
gwRecvFileFromObject(): idem

8 years agor4097 fixed PHP tags
Denis Ovsienko [Tue, 11 Jan 2011 21:32:39 +0000 (21:32 +0000)] 
r4097 fixed PHP tags

8 years agor4096 reduce msgcode array in a way, and justify some functions respectively
Denis Ovsienko [Tue, 11 Jan 2011 19:24:27 +0000 (19:24 +0000)] 
r4096 reduce msgcode array in a way, and justify some functions respectively

8 years agor4095 genericAssertion(): add 'enum/wdmstd' and 'iif' cases
Denis Ovsienko [Tue, 11 Jan 2011 19:13:45 +0000 (19:13 +0000)] 
r4095 genericAssertion(): add 'enum/wdmstd' and 'iif' cases

8 years agor4094 setSwitchVLANs(): remove pointless assertion
Denis Ovsienko [Tue, 11 Jan 2011 14:36:40 +0000 (14:36 +0000)] 
r4094 setSwitchVLANs(): remove pointless assertion

8 years agor4093 Finalise the work on issue #369 by means of new function HTTPDateToUnixTime(),
Denis Ovsienko [Tue, 11 Jan 2011 11:20:12 +0000 (11:20 +0000)] 
r4093 Finalise the work on issue #369 by means of new function HTTPDateToUnixTime(),
which is supposed to do a better job, than strtotime() did (by Matt Mills).

8 years agor4092 new API for dispaying messages (showError, showWarning, showSuccess)
Alexey Andriyanov [Tue, 11 Jan 2011 07:50:30 +0000 (07:50 +0000)] 
r4092 new API for dispaying messages (showError, showWarning, showSuccess)

index.php:
 merged together all HTML layout
 added output buffering to collect all the messages before the HTML layout rendering

process.php:
 used new functions instead of oneLiner.
 added logic to redirect to the submit form page when ophandler returns NULL

render_image.php:
 changed old showError calls to the calls of new one

inc/interface.php:
 showTabs: removed surrounding <td>'s from the output
 renderObject8021QSync: changed old showError calls to the calls of new one
 renderDiscoveredNeighbors: idem

inc/auth.php:
 authenticated_via_ldap: changed old showError calls to the calls of new one

inc/init.php:
 -showError: the old version of the func removed, the new one is implemented in functions.php
 -showWarning: idem

inc/functions.php:
 getCellFilter: changed old showWarning calls to the calls of new one
 buildLVSConfig: idem
 eval_expression: idem
+setMessage: function for rendering or queueing all kinds of messages
+showError, showWarning, showSuccess, showNotice: wrappers around setMessage

upgrade.php:
-showFailure
 changed calls to showFailure to calls to showError
 added dependency on functions.php

inc/ophandlers.php:
 buildWideRedirectURL: now $_SESSION['log'] is merged with $log, not substituted

8 years agor4091 l2addressForDatabase(): signal error with exception, not NULL
Denis Ovsienko [Mon, 10 Jan 2011 22:51:53 +0000 (22:51 +0000)] 
r4091 l2addressForDatabase(): signal error with exception, not NULL
genericAssertion(): add cases for IPv6, L2 and PCRE types
commitAddPort(): dismiss local check, rely on exception
commitUpdatePort(): idem
getPortSearchResults(): employ catch block
addPortForObject(): add respective assertion
editPortForObject(): ditto

8 years agor4090 tableHandler(): add implementation of DELETE
Denis Ovsienko [Mon, 10 Jan 2011 12:59:25 +0000 (12:59 +0000)] 
r4090 tableHandler(): add implementation of DELETE
genericAssertion(): add "enum/vlan_type" case
renderPortsForObject(): don't put port_name and remote_port_id parameters to URL
delPortInterfaceCompatPack(): make DB access direct

Dismiss another pack of functions, which become obsolete after that:

- delObjectPort()
- delPortFromObject()
- deleteObjectLog()
- deleteRealServer()
- commitDeleteRS()
- deleteLoadBalancer()
- commitDestroyTag()
- destroyTag()
- commitReducePIC()
- delPortInterfaceCompat()
- deleteRow()
- commitDeleteRow()
- unlinkPort()
- commitReducePOIFC()
- delPortOIFCompat()
- commitSupplementPOIFC()
- addPortOIFCompat()
- commitReduceDictionary()
- reduceDictionary()
- commitDeleteAttribute()
- deleteAttribute()
- commitReduceAttrMap()
- reduceAttrMap()

8 years agor4089 process.php: do basic bypass validation by means of getBypassValue()
Denis Ovsienko [Sun, 9 Jan 2011 13:52:19 +0000 (13:52 +0000)] 
r4089 process.php: do basic bypass validation by means of getBypassValue()
addPortForObject(): rely on that and dismiss/update assertion
editPortForObject(): idem
addMultiPorts(): idem
addBulkPorts(): idem
editAddress(): idem
updateUser(): idem
updateDictionary(): idem
reduceDictionary(): idem
clearSticker(): idem
updateObjectAllocation(): idem
updateObject(): idem
resetObject(): idem
addRealServers(): idem
updateRSPool(): idem
generateAutoPorts(): idem
saveEntityTags(): idem
rollTags(): idem
submitSLBConfig(): idem
addRack(): idem
updateRack(): idem
updateRackDesign(): idem
updateRackProblems(): idem
querySNMPData(): idem
addFileToEntity(): idem
linkFileToEntity(): idem
replaceFile(): idem
updateFile(): idem
updateFileText(): idem
process8021QRecalcRequest(): idem
cloneVSTRule(): idem
updVSTRule(): idem
addObjectlog(): idem

8 years agor4088 genericAssertion(): merge ENUM validation from commitAddAttribute()
Denis Ovsienko [Sun, 9 Jan 2011 12:20:28 +0000 (12:20 +0000)] 
r4088 genericAssertion(): merge ENUM validation from commitAddAttribute()
createAttribute(): sayonara
commitAddAttribute(): sayonara

8 years agor4087 renderChapterEditor(): justify INPUT size across table rows
Denis Ovsienko [Sun, 9 Jan 2011 11:58:17 +0000 (11:58 +0000)] 
r4087 renderChapterEditor(): justify INPUT size across table rows
supplementDictionary(): dismiss in favour of tableHandler()
commitSupplementDictionary(): idem

8 years agor4086 Don't allow changing object's type after it is added to database,
Denis Ovsienko [Sun, 9 Jan 2011 11:30:19 +0000 (11:30 +0000)] 
r4086 Don't allow changing object's type after it is added to database,
this was known to cause minor side-effects.

renderEditObjectForm(): dismiss object type SELECT
updateObject(): update respectively
commitUpdateObject(): update respectively

8 years agor4085 dynamic_title_decoder(): suppress tag markup in "file" and "vst" pages TITLE
Denis Ovsienko [Sun, 9 Jan 2011 11:07:08 +0000 (11:07 +0000)] 
r4085 dynamic_title_decoder(): suppress tag markup in "file" and "vst" pages TITLE

8 years agor4084 render_image.php: use gmdate() to save one timezone warning (IMS caching)
Denis Ovsienko [Sat, 8 Jan 2011 23:29:51 +0000 (23:29 +0000)] 
r4084 render_image.php: use gmdate() to save one timezone warning (IMS caching)

8 years agor4083 bugfix: prevent invalid port links (#363), remove DB triggers
Aaron Dummer [Sat, 8 Jan 2011 19:14:35 +0000 (19:14 +0000)] 
r4083 bugfix: prevent invalid port links (#363), remove DB triggers

install/init-structure.sql: remove triggers
executeUpgradeBatch(): idem
isInnoDBSupported(): idem
linkPorts(): add SELECT before INSERT check

8 years agor4082 getFile(): employ MySQL's NOW() to avoid timezone logic
Denis Ovsienko [Fri, 7 Jan 2011 20:33:08 +0000 (20:33 +0000)] 
r4082 getFile(): employ MySQL's NOW() to avoid timezone logic
getFileCache(): idem, and fix to actually return the result

8 years agor4081 genericAssertion(): add "tag" case validation
Denis Ovsienko [Fri, 7 Jan 2011 18:16:04 +0000 (18:16 +0000)] 
r4081 genericAssertion(): add "tag" case validation
createTag(): dismiss, obsoleted by tableHandler()
commitCreateTag(): idem

8 years agor4080 genericAssertion(): add "string0" assertion case
Denis Ovsienko [Fri, 7 Jan 2011 15:52:50 +0000 (15:52 +0000)] 
r4080 genericAssertion(): add "string0" assertion case
tableHandler(): make "table_colname" optional; perform NULL value cast on request
addVLANDescription(): dismiss, obsoleted by tableHandler

8 years agor4079 process.php: fix function name
Denis Ovsienko [Fri, 7 Jan 2011 13:19:07 +0000 (13:19 +0000)] 
r4079 process.php: fix function name
addChapter(): dismiss, replaced by tableHandler
commitAddChapter(): ditto

8 years agor4078 genericAssertion(): new function, multiplexer
Denis Ovsienko [Fri, 7 Jan 2011 12:57:11 +0000 (12:57 +0000)] 
r4078 genericAssertion(): new function, multiplexer
getBypassValue(): new function to aid in context focusing
index.php: make use of above
tableHandler(): new function, a generic substitute for many trivial DB functions
process.php: recognize "opspec" structure and use multiplexer for these
addRow(): sayonara
commitAddRow(): sayonara

8 years agor4077 bugfix for recent change: pi.css was not ladable on installer page after moving...
Alexey Andriyanov [Wed, 5 Jan 2011 11:40:47 +0000 (11:40 +0000)] 
r4077 bugfix for recent change: pi.css was not ladable on installer page after moving to css/

8 years agor4076 bugfix: the 'Refcnt' counter on Configuration: Dictionary page was sometimes...
Alexey Andriyanov [Tue, 4 Jan 2011 23:45:28 +0000 (23:45 +0000)] 
r4076 bugfix: the 'Refcnt' counter on Configuration: Dictionary page was sometimes broken (closes mantis:0000381)
Only the buggy SQL query was changed, now joining RackObject to check object_type

8 years agor4075 minor fix: bulik port creator now can begin port counter with zero value
Alexey Andriyanov [Wed, 29 Dec 2010 21:13:19 +0000 (21:13 +0000)] 
r4075 minor fix: bulik port creator now can begin port counter with zero value

8 years agor4074 renderVLANDomain(): align TDs
Denis Ovsienko [Wed, 29 Dec 2010 12:31:15 +0000 (12:31 +0000)] 
r4074 renderVLANDomain(): align TDs

8 years agor4073 minor change in UI for recent change: VST form commit on ENTER and hints on...
Alexey Andriyanov [Tue, 28 Dec 2010 18:23:24 +0000 (18:23 +0000)] 
r4073 minor change in UI for recent change: VST form commit on ENTER and hints on add buttons

8 years agor4072 platform_is_ok(): update for the recent two extensions used
Denis Ovsienko [Mon, 27 Dec 2010 15:04:16 +0000 (15:04 +0000)] 
r4072 platform_is_ok(): update for the recent two extensions used

8 years agor4071 minor bugfix for recent change: row highlighing in VST rules was broken
Alexey Andriyanov [Mon, 27 Dec 2010 12:47:34 +0000 (12:47 +0000)] 
r4071 minor bugfix for recent change: row highlighing in VST rules was broken

8 years agor4070 update: 802.1Q template editor now supports single-submit edit and concerns...
Alexey Andriyanov [Mon, 27 Dec 2010 12:40:33 +0000 (12:40 +0000)] 
r4070 update: 802.1Q template editor now supports single-submit edit and concerns concurrent submits

inc/ophandlers.php:
 -addVSTRule: unneeded op removed (no more ops for single rule)
 -delVSTRule: idem
 +cloneVSTRule: template cloning code moved to 'clone' op, uses common commitUpdateVSTRules
 updVSTRule: function redesigned to update whole template, not the single rule. Takes input data as text in json format. Uses common commitUpdateVSTRules.

inc/navigation.php: [editrules]add/del removed, clone added, tab renamed from 'Rules' to 'Edit'

inc/interface.php:
 global $port_role_options moved to database.php
 renderVSTRules: code to render read-only rules list, separated from renderVST
 renderVST: uses new renderVSTRules
 renderVSTRulesEditor: redesigned to render new JS-based VST editor.

inc/database.php:
 $port_role_options moved from interfaces.php
 getVLANSwitchTemplate: selects new fields from VLANSwitchTemplate table
 commitUpdateVSTRules: new function, replaces all the rules in the VST. Updates mutex and author in VLANSwitchTemplate.

inc/functions.php:
 isInteger: new function to check values to be integer. returns BOOL.
 isPCRE: idem for PCRE

upgrade.php: new columns 'mutex_rev' and 'saved_by' in VLANSwitchTemplate table
install/init-structure.sql: idem

8 years agor4069 new feature: UI: live switchport info (port config, link status, learned mac...
Alexey Andriyanov [Sat, 25 Dec 2010 22:07:25 +0000 (22:07 +0000)] 
r4069 new feature: UI: live switchport info (port config, link status, learned mac list) showed inline on any object tab
update: selective including of JS and CSS files. No more unneeded js code loaded.

gateways/deviceconfig/nxos4.connector: added two more commands: getportstatus and getmaclist
gateways/deviceconfig/ios12.connector: idem
gateways/deviceconfig/vrp53.connector: idem
gateways/deviceconfig/vrp55.connector: idem

pi.css: moved into css/ dir, removed duplicated body attributes, many new styles added for popup interface
added jquery.contextmenu plugin: css/jquery.contextmenu.css and js/jquery.contextmenu.js files
index.php: buffering of output added to call printPageHeaders after page generation for adding nesessary JS/CSS into page header
added new pix: ajax-loader.gif, checkbox_yes.png, link-disabled.png, link-up.png, link-down.png, 1x1t.gif (transparent pixel)
inc/navigation.php: new object tab 'Live ports' added

inc/interface.php: changed mainly for reacting to js/css include policy change
 renderRack: add autogenerated css styles for rack atoms on-demand (addAtomCSS call), added common class atom to TDs
 renderMolecule: idem
 renderAtomGrid: idem
 renderGridForm: include js libs on-demand (function renders some JS code)
 renderRackSpaceForObject: idem
 renderLivePTR: idem
 renderCellFilterPortlet: idem
 renderTextEditor: idem
 renderRackObject: prepare portlist to add popup menu if needed, include js libs on-demand (function renders some JS code)
 renderPortsForObject: idem
 renderObject8021QPorts: idem
 renderDiscoveredNeighbors: idem
 renderObject8021QSync: idem, also preventive init port config popups (cause we already have info from switch)
 renderPortsInfo: new function, renders new 'Live ports' tab
 renderIPv4SpaceRecords: reflect renaming of getAutoScrollScript
 renderIPv6SpaceRecords: idem
 RenderIPv4Network: idem
 RenderIPv6Network: idem
 renderIPv4SpaceEditor: JS prefix syntax validator reformatted to reflect new JS include policy
 renderIPv6SpaceEditor: idem
 renderRackCodeEditor: JS reformatted reformatted to reflect new JS include policy
 formatPortLink: ability to pass <a>-class
 getAutoScrollScript: renamed to addAutoScrollScript, cause it does no renders anything now, only adds link to JS file
 switchportInfoJS: new function checking permissions and other requirements for portinfo popup menu, and including nesessary JS/CSS
 addAtomCSS: new function to generate rackatom css runtime based on config variable (legacy feature, BTW)

inc/init.php: $pageheaders cleaned up from JS and CSS, now they are included on-demand
inc/functions.php:
 ios12ShortenIfName: VRP formats iface names in short manner (GE, XGE) in some pages, concerning it
 printPageHeaders: adding links to remembered during page rendering JS/CSS files or inline blocks
 getColumnCoordinates: new util function (used in ios12 int status gw) to parse fixed-column-length-formatted tables
 addJS: new function to include JS files/block on demand
 addCSS: idem
 isEthernetPort: new function to check if popup menu is appiable for the specified port

inc/ajax-interface.php: new file like interface.php, but small enough to be included in ajax.php instead of huge interface.php
 formatPortLinkHints: prepares HTML code for inline and popup parts of popup interface
 formatPortMacHints: idem
 formatPortConfigHints: idem

inc/gateways.php: ability to fetch mac list, link status and port configs from ios12, vrp, nxos.
 ios12ScanTopLevel: 802.1q config parsing functions now saving every seen line to ['config'] subkey (for port config fetching)
 ios12PickSwitchportCommand: idem
 vrp53ScanTopLevel: idem
 vrp53PickInterfaceSubcommand: idem
 vrp55Read8021QConfig: idem
 nxos4ScanTopLevel: idem
 nxos4PickSwitchportCommand: idem
 ciscoReadInterfaceStatus: function for parsing 'show int status' IOS and NXOS command output
 vrpReadInterfaceStatus: idem for VRP 5.3/5.5
 maclist_sort: function for sorting mac list by VLAN id
 ios12ReadMacList: function for parsing 'show mac address-table dynamic' IOS command output
 nxos4ReadMacList: idem for NXOS
 vrp53ReadMacList: idem for VRP 5.3
 vrp55ReadMacList: idem for VRP 5.5/5.7

inc/triggers.php: new trigger for 'Live ports' tab
ajax.php: 3 new ops for port info data queries. Calling functions from ajax-interface.php and encoding their output in JSON
js/jquery.thumbhover.js: JS library to show stickable popups on hover. Rewritten by me from unknown source

js/jquery.contextmenu.js, css/jquery.contextmenu.css: third-party library for displaying popup menus

js/racktables.js: new util function to parse query string and extract GET param value from it
js/jquery-1.3.1.min.js was replaced by the new version: js/jquery-1.4.4.min.js
js/portinfo.js: JS code implementing popup switchport info logic

Hooray!!!

8 years agor4068 mkA(): new helper function
Denis Ovsienko [Sat, 25 Dec 2010 12:53:04 +0000 (12:53 +0000)] 
r4068 mkA(): new helper function
render8021QReport(): initial implementation

8 years agor4066 fix column count
Denis Ovsienko [Sat, 25 Dec 2010 09:32:51 +0000 (09:32 +0000)] 
r4066 fix column count

8 years agor4065 add myself to the list of 2010 contributors
Aaron Dummer [Fri, 24 Dec 2010 20:36:20 +0000 (20:36 +0000)] 
r4065 add myself to the list of 2010 contributors

8 years agor4064 add DB triggers to prevent invalid port links (#363)
Aaron Dummer [Fri, 24 Dec 2010 20:21:52 +0000 (20:21 +0000)] 
r4064 add DB triggers to prevent invalid port links (#363)

8 years agor4063 set current version to 0.19.0
Aaron Dummer [Fri, 24 Dec 2010 20:21:18 +0000 (20:21 +0000)] 
r4063 set current version to 0.19.0

8 years agor4062 if no logs exist, display a generic message instead of an empty table
Aaron Dummer [Fri, 24 Dec 2010 18:31:37 +0000 (18:31 +0000)] 
r4062 if no logs exist, display a generic message instead of an empty table

8 years agor4061 add missing semi-colons
Aaron Dummer [Fri, 24 Dec 2010 18:21:02 +0000 (18:21 +0000)] 
r4061 add missing semi-colons

8 years agor4060 Add some cleanups and comments:
Denis Ovsienko [Thu, 23 Dec 2010 22:58:55 +0000 (22:58 +0000)] 
r4060 Add some cleanups and comments:

gotClearanceForTagChain(): make use of exceptions
getFile(): idem
markAllSpans(): dismiss obsolete assertion
getPrevIDforRack(): idem
getNextIDforRack(): idem
getRSUforRack(): idem
getRSUforRackRow(): idem
buildLVSConfig(): idem

8 years agor4059 Move code around to make it possible to work without the
Denis Ovsienko [Thu, 23 Dec 2010 22:20:13 +0000 (22:20 +0000)] 
r4059 Move code around to make it possible to work without the
functions in code.php, unless when they are really required to run.

eval_expression(): move to functions.php
getRackCodeWarnings(): ditto
spotPayload(): ditto, and do the inclusion on demand
getRackCode(): ditto
gotClearanceForTagChain(): move to auth.php
processAdjustmentSentence(): ditto

ajax.php: justify switching and exceptions logic

8 years agor4058 assertUIntArg(): don't generate extra warning, when argument isn't set at all
Denis Ovsienko [Thu, 23 Dec 2010 21:56:10 +0000 (21:56 +0000)] 
r4058 assertUIntArg(): don't generate extra warning, when argument isn't set at all
assertStringArg(): idem
assertBoolArg(): idem

8 years agor4057 Huawei VRP 5.70 pseudo-interactive telnet support (fixes multiple problems...
Alexey Andriyanov [Thu, 23 Dec 2010 10:16:11 +0000 (10:16 +0000)] 
r4057 Huawei VRP 5.70 pseudo-interactive telnet support (fixes multiple problems caused by fast commands post through netcat)

new netcat wrapper written in Perl: gateways/deviceconfig/nc.pl
requires netcat for operating

8 years agor4056 printSelect(): spec cleanup
Denis Ovsienko [Mon, 20 Dec 2010 13:42:04 +0000 (13:42 +0000)] 
r4056 printSelect(): spec cleanup

8 years agor4055 objectlog: add ON DELETE CASCADE and leave it in some consistent form
Denis Ovsienko [Mon, 20 Dec 2010 11:57:49 +0000 (11:57 +0000)] 
r4055 objectlog: add ON DELETE CASCADE and leave it in some consistent form

8 years agor4054 Merge most of the code from Ernest Shaffer's objectlog plugin:
Denis Ovsienko [Sun, 19 Dec 2010 15:07:16 +0000 (15:07 +0000)] 
r4054 Merge most of the code from Ernest Shaffer's objectlog plugin:

SQL schema: add ObjectLog table
navigation: add extra top-level page and a tab for object page
deleteObjectLog(): new handler function
addObjectlog(): ditto
renderRackObject(): add "log records" portlet
renderObjectLogEditor(): new function for editor tab
allObjectLogs(): new function, table viewer
renderGlobalLogEditor(): new function, placeholder
getLogRecordsForObject(): new function, table reader
getLogRecords(): idem

8 years agor4053 add new page image for the objectlog code
Denis Ovsienko [Sun, 19 Dec 2010 12:23:34 +0000 (12:23 +0000)] 
r4053 add new page image for the objectlog code

8 years agor4051 bugfix for recent change: exception when search result was returned only by...
Alexey Andriyanov [Fri, 17 Dec 2010 11:27:55 +0000 (11:27 +0000)] 
r4051 bugfix for recent change: exception when search result was returned only by custom search plugin.

8 years agor4050 Incorrect argument count for the initial Config data
Jonathan Thurman [Fri, 17 Dec 2010 04:26:25 +0000 (04:26 +0000)] 
r4050 Incorrect argument count for the initial Config data

8 years agor4049 addVSTRule(): enhance to support 2-mode operation (2nd is "copier")
Denis Ovsienko [Thu, 16 Dec 2010 12:46:33 +0000 (12:46 +0000)] 
r4049 addVSTRule(): enhance to support 2-mode operation (2nd is "copier")
renderVSTRulesEditor(): idem
trigger_vst_editrules(): new function to modify tab style

8 years agor4048 Minor change in UI on 8021qports page: remote object link replaced by link...
Alexey Andriyanov [Tue, 14 Dec 2010 12:33:33 +0000 (12:33 +0000)] 
r4048 Minor change in UI on 8021qports page: remote object link replaced by link to remote port

8 years agor4047 Multi-process parallel 802.1Q sync support
Alexey Andriyanov [Tue, 14 Dec 2010 11:18:57 +0000 (11:18 +0000)] 
r4047 Multi-process parallel 802.1Q sync support

inc/init.php: new function connectDB for reconnecting in childs
syncdomain.php: child workers supports (pcre extension dependent)

upgrade.php: new config variable 'SYNCDOMAIN_MAX_PROCESSES' added
inc/ophandlers.php: idem
install/init-dictbase.sql: idem

8 years agor4046 Huawei VRP 5.5/5.7: screen-length 0 support (no more need to disable pager...
Alexey Andriyanov [Tue, 14 Dec 2010 11:04:53 +0000 (11:04 +0000)] 
r4046 Huawei VRP 5.5/5.7: screen-length 0 support (no more need to disable pager globally on devices)

9 years agor4045 Interface to renderSearchResults function was simplified: no more need to pass...
Alexey Andriyanov [Fri, 10 Dec 2010 09:55:27 +0000 (09:55 +0000)] 
r4045 Interface to renderSearchResults function was simplified: no more need to pass nhits and lasthit
Possibility of dupes in search results eliminated by indexing by entity id
bugfix: create IPv4 network button, if pressed to open in a new window, was redirecting the parent window, too
bugfix: when searching for IP not belonging to any known network, the ugly assertion failed page was shown.
update: links to ports added to object search results
update: custom rearch results provided by users' plugins now supported

inc/interface.php:
 renderSearchResults: parameters were simplified, unknown IP bug was fixed, custom search results supported, links to ports added
 renderPortOIFCompatEditor: bug fixed with nested <input> into <a> (parent page redirection)
 printIPNetInfoTDs: idem
 renderPortIFCompatEditor: idem

inc/database.php:
 getIPv4PrefixSearchResult: indexing results by id, for simplifying duplicates management in search results
 getIPv4AddressSearchResult: idem
 getIPv6AddressSearchResult: idem
 getIPv4RSPoolSearchResult: idem
 getIPv4VServiceSearchResult: idem
 getFileSearchResult: idem
 getVLANSearchResult: idem
 getAccountSearchResult: idem, mergind code updated to reflect indexing changes

inc/functions.php:
 searchEntitiesByText: removed nhits and lasthit calculation and returning

9 years agor4044 list Catalyst 2960S series
Denis Ovsienko [Thu, 9 Dec 2010 14:11:01 +0000 (14:11 +0000)] 
r4044 list Catalyst 2960S series

9 years agor4043 Removed the 'Ability to search for IP networks by vlan id' (commit #4035)
Alexey Andriyanov [Wed, 8 Dec 2010 12:12:14 +0000 (12:12 +0000)] 
r4043 Removed the 'Ability to search for IP networks by vlan id' (commit #4035)
This functional turned to be very sepecific so now it is replaced by
the ability to override search logic in local.php plugin.

inc/interface.php:
 renderSearchResults: this function was reduced, now it only renders search results, not calculates them
 searchHandler: new function, glues together searchEntitiesByText and renderSearchResults

inc/functions.php:
 searchEntitiesByText: the part of former renderSearchResults which searches for entities by given text

9 years agor4042 additional Dell hardware dictionary increase
Ryan Farrington [Sun, 5 Dec 2010 04:00:45 +0000 (04:00 +0000)] 
r4042 additional Dell hardware dictionary increase

9 years agor4041 added additional Dell hardware
Ryan Farrington [Sun, 5 Dec 2010 03:58:21 +0000 (03:58 +0000)] 
r4041 added additional Dell hardware
pdo_mysql extention verification hotfix.

9 years agor4040 bugfix for recent change: vlan case-sensitive searching
Alexey Andriyanov [Fri, 3 Dec 2010 15:53:06 +0000 (15:53 +0000)] 
r4040 bugfix for recent change: vlan case-sensitive searching
Changed:
inc/interface.php, renderSearchResults

9 years agor4039 bugfix for recent change: duplicate IP networks were shown on vlan search results
Alexey Andriyanov [Fri, 3 Dec 2010 12:24:52 +0000 (12:24 +0000)] 
r4039 bugfix for recent change: duplicate IP networks were shown on vlan search results
Changed:
inc/interface.php, renderSearchResults

9 years agor4038 add SMC records to dictionary and SNMP block
Denis Ovsienko [Thu, 2 Dec 2010 17:51:40 +0000 (17:51 +0000)] 
r4038 add SMC records to dictionary and SNMP block