racktables
7 years ago802.1Q recalc wasn't make switch out-of-sync
Alexey Andriyanov [Thu, 14 Mar 2013 15:38:10 +0000 (19:38 +0400)] 
802.1Q recalc wasn't make switch out-of-sync

recalc8021QPorts: wrong object id to touch

7 years agoHuawei S2700-52P-EI SNMP support
Alexey Andriyanov [Tue, 12 Mar 2013 18:31:17 +0000 (22:31 +0400)] 
Huawei S2700-52P-EI SNMP support

7 years agohighlight foreign VLANs on downlink ports
Alexey Andriyanov [Mon, 11 Mar 2013 10:50:17 +0000 (14:50 +0400)] 
highlight foreign VLANs on downlink ports

get8021QPortTrClass: new func to calc highlighting of 802.1Q port
renderObject8021QPorts: use unified get8021QPortTrClass highlighting
logic

7 years ago802.1Q: ignore foreign VLANs when building uplinks
Alexey Andriyanov [Mon, 11 Mar 2013 10:48:27 +0000 (14:48 +0400)] 
802.1Q: ignore foreign VLANs when building uplinks

produceUplinkPorts changed

7 years agoeos4BuildSwitchport: improve DFL VLAN detection
Alexey Andriyanov [Wed, 6 Mar 2013 16:03:50 +0000 (20:03 +0400)] 
eos4BuildSwitchport: improve DFL VLAN detection

7 years agoretry fetching running-config from Cisco IOS devs
Alexey Andriyanov [Wed, 6 Mar 2013 15:03:40 +0000 (19:03 +0400)] 
retry fetching running-config from Cisco IOS devs

some devices (e.g. Cisco IOS) refuse to print running configuration
while they are busy. The best way of treating this is retry a few times
before failing the request.

ERetryNeeded: new exception class
ios12ReadVLANConfig: throwing ERetryNeeded if busy error message seen.
ios12SpotConfigText: idem.
queryDevice: loop queryTerminal 3 times if ERetryNeeded is catched

7 years agouse inet_ntop, inet_ntop instead of self-made ones
Alexey Andriyanov [Tue, 5 Mar 2013 15:26:24 +0000 (19:26 +0400)] 
use inet_ntop, inet_ntop instead of self-made ones

self-made format_ip* and parse_ip* were leaved for compatibility with
pre-5.1 PHPs and PHPs built without IPv6 support. All API calls have not
changed.

is_inet_avail: checks inet_ntop and inet_pton for existance and IPv6
support
ip4_format: try to use inet_ntop, inet_pton before self-made code
ip6_format: idem
ip_parse: idem
ip4_parse: idem
ip6_parse: idem

7 years agofix Arista telnet prompt regexp
Alexey Andriyanov [Tue, 5 Mar 2013 15:24:08 +0000 (19:24 +0400)] 
fix Arista telnet prompt regexp

7 years agoRevert "apply patch from Alexey new function clearObjectAttribute - just the deleteBl...
Aaron Dummer [Mon, 4 Mar 2013 17:15:50 +0000 (09:15 -0800)] 
Revert "apply patch from Alexey new function clearObjectAttribute - just the deleteBlade commitResetObject: use clearObjectAttribute for FQDN and contact renderEditAttributesForm: revert the check for pre-defined attributes"

This reverts commit df9ec191b1e716ef0f8af27382afae14039e98b8.

7 years agoconfig var DATETIME_FORMAT description changed
Alexey Andriyanov [Mon, 4 Mar 2013 13:43:21 +0000 (17:43 +0400)] 
config var DATETIME_FORMAT description changed

date() was replaced by strftime() in description

7 years agobugfix: negative push duration time in 802.1q
Alexey Andriyanov [Mon, 4 Mar 2013 13:39:42 +0000 (17:39 +0400)] 
bugfix: negative push duration time in 802.1q

If the push process was interrupted, the "schedule" portlet was
displaying negative push duration. Also, all ages were displayed in
hours. Now formatAge function is used.

getVLANSwitchInfo: row format is changed. The following keys were
removed: last_push_lasted, last_change_age, last_change_age_seconds,
last_error_age, last_error_age_seconds, last_push_age.
The following keys changed their format from DB-formatted datetime to
integer UNIX timestemp: last_change, last_push_finished,last_error_ts.
The last_push_started key was added.

detectVLANSwitchQueue: calculate change_age amd error_age
renderObject8021QSyncSchedule: use datetimestrFromTimestamp and formatAge
renderDeployQueue: idem

7 years agofix IOS 12 telnet prompt (confirmation questions)
Alexey Andriyanov [Mon, 4 Mar 2013 10:52:12 +0000 (14:52 +0400)] 
fix IOS 12 telnet prompt (confirmation questions)

queryTerminal changed

7 years agoapply patch from Alexey
Aaron Dummer [Sun, 3 Mar 2013 22:20:02 +0000 (14:20 -0800)] 
apply patch from Alexey
new function clearObjectAttribute - just the deleteBlade
commitResetObject: use clearObjectAttribute for FQDN and contact
renderEditAttributesForm: revert the check for pre-defined attributes

7 years agoHTML mark-up: main table replaced with divs
Alexey Andriyanov [Sun, 3 Mar 2013 17:49:42 +0000 (21:49 +0400)] 
HTML mark-up: main table replaced with divs

The search box has also turned into right-floating div.
This change is inspired by the needs of my plug-in for making the tabs
and search boxes to stay on the screen when scrolling down. I assume to
include in into the main after testing in production environment.

renderInterfaceHTML: table cells were replaced by divs
showPathAndSearch: search box table replaced by div

7 years agoput some opening curly PHP braces to Allman style
Denis Ovsienko [Sun, 3 Mar 2013 14:26:33 +0000 (18:26 +0400)] 
put some opening curly PHP braces to Allman style

Besides that, add missing spaces to the modified lines where necessary
to meet the style of the rest of the code.

7 years agorefine renderIndexItem()
Denis Ovsienko [Sun, 3 Mar 2013 14:04:30 +0000 (18:04 +0400)] 
refine renderIndexItem()

7 years agoadd SNMP support for D-Link DES-3052 (#765)
Aaron Dummer [Sat, 2 Mar 2013 22:51:52 +0000 (14:51 -0800)] 
add SNMP support for D-Link DES-3052 (#765)

7 years agohide controls in cacti tab if user doesn't have permission (#707)
Aaron Dummer [Sat, 2 Mar 2013 22:13:13 +0000 (14:13 -0800)] 
hide controls in cacti tab if user doesn't have permission (#707)

7 years agoprevent deletion of system-level attributes (#761)
Aaron Dummer [Sat, 2 Mar 2013 21:59:42 +0000 (13:59 -0800)] 
prevent deletion of system-level attributes (#761)

7 years agorenderEditRackForm(): hide the delete icon if any atoms are used
Aaron Dummer [Sat, 2 Mar 2013 21:11:42 +0000 (13:11 -0800)] 
renderEditRackForm(): hide the delete icon if any atoms are used
remove the 'W' option from the RackSpace.state column

7 years agofix date/time attributes input processing (#719)
Denis Ovsienko [Sat, 2 Mar 2013 15:03:11 +0000 (19:03 +0400)] 
fix date/time attributes input processing (#719)

Date/time attributes processing was inconsistent in that output of such
attributes was done using date() function and a configurable format
string, but input was done using strtotime() and no format string. For
some format strings this lead to parts (year/month/day) of the date
swapped around on each form submit or the update declined.

This change addresses the problem through switching to strftime() for
output and strptime() for input. This implies a different format string
syntax, but both functions are available in early releases of PHP5, as
opposed to DateTime::createFromFormat(), which uses the same format as
date() but requires PHP 5.3.

* datetimestrFromTimestamp(): new helper function
* renderEditObjectForm(): update to use above
* formatAttributeValue(): idem
* renderExpirations(): idem

* timestampFromDatetimestr(): new helper function
* assertDateArg(): rewrite using above
* updateObjectAttributes(): update to use above

* upgrade.php: overwrite DATETIME_FORMAT value
* install.php: update DATETIME_FORMAT default value
* resetUIConfig(): idem

7 years agorefine a few InvalidArgException translation cases
Denis Ovsienko [Sat, 2 Mar 2013 14:22:30 +0000 (18:22 +0400)] 
refine a few InvalidArgException translation cases

This change fixes the error message displayed to the user after an
InvalidArgException exception (hard) is converted into an
InvalidRequestArgException one (soft).

InvalidArgException::__construct(): keep copies of arguments
InvalidArgException::getName(): new read accessor
InvalidArgException::getValue(): idem
InvalidArgException::getReason(): idem
convertToIRAE(): new function to convert between two classes
assertIPArg(): update to use above
assertIPv4Arg(): idem
assertIPv6Arg(): idem

7 years agorefine InvalidArgException::__construct()
Denis Ovsienko [Sat, 2 Mar 2013 11:19:14 +0000 (15:19 +0400)] 
refine InvalidArgException::__construct()

Justify coding style, suppress extra quotes around the value and place
the period at the end of the sentence.

7 years agocopy existing 0.20.4 release note to upgrade.php
Denis Ovsienko [Sat, 2 Mar 2013 09:07:04 +0000 (13:07 +0400)] 
copy existing 0.20.4 release note to upgrade.php

7 years agojustify text files by 80-column margin
Denis Ovsienko [Fri, 1 Mar 2013 09:35:03 +0000 (13:35 +0400)] 
justify text files by 80-column margin

This change assumes 2-space tab expansion for ChangeLog.

7 years agorefine if/else branching in formatAttributeValue()
Denis Ovsienko [Thu, 28 Feb 2013 18:37:02 +0000 (22:37 +0400)] 
refine if/else branching in formatAttributeValue()

7 years agoSNMP: add support for 3Com 4210 52-port (#763)
Denis Ovsienko [Thu, 28 Feb 2013 17:38:44 +0000 (21:38 +0400)] 
SNMP: add support for 3Com 4210 52-port (#763)

7 years agoamend previous commit (update install.php as well)
Denis Ovsienko [Mon, 25 Feb 2013 05:53:52 +0000 (09:53 +0400)] 
amend previous commit (update install.php as well)

7 years agoallow files to be linked to rows (#733)
Aaron Dummer [Sun, 24 Feb 2013 22:41:40 +0000 (14:41 -0800)] 
allow files to be linked to rows (#733)

7 years agoadd SNMP support for Linksys SRW224G4 (#743)
Aaron Dummer [Sun, 24 Feb 2013 20:21:55 +0000 (12:21 -0800)] 
add SNMP support for Linksys SRW224G4 (#743)
also change the port label for some Dell switches

7 years agodeleteLocation(): references to tags and files remained when a location
Aaron Dummer [Sun, 24 Feb 2013 02:01:33 +0000 (18:01 -0800)] 
deleteLocation(): references to tags and files remained when a location
was deleted (#747)
renderRackspaceLocationEditor: resolve strict PHP warning

7 years agoassign IP addresses to objects whose type is Wireless (#755)
Aaron Dummer [Sun, 24 Feb 2013 00:40:16 +0000 (16:40 -0800)] 
assign IP addresses to objects whose type is Wireless (#755)

7 years agoaddress some rack deletion issues (#757)
Denis Ovsienko [Sat, 23 Feb 2013 20:22:58 +0000 (00:22 +0400)] 
address some rack deletion issues (#757)

This is likely to fix future removals of racks, but does not address
files and tags that could be left over past removals (FK exists between
Rack/Object and RackSpace tables only in this context).

* commitDeleteRack(): remove unused function, anyway it is broken since
  RackHistory table was dismissed
* deleteRack(): handle removal of associated data (files, tags and
  non-object rackspace)

7 years agorenderIPForObject: removed PHP notice (#759)
Alexey Andriyanov [Fri, 22 Feb 2013 06:51:14 +0000 (10:51 +0400)] 
renderIPForObject: removed PHP notice (#759)

use array_last instead of array_pop

7 years agoASR 9000 LLDP support
Alexey Andriyanov [Tue, 19 Feb 2013 18:45:13 +0000 (22:45 +0400)] 
ASR 9000 LLDP support

iosxr4ReadLLDPStatus: new LLDP parser for IOS XR4
ios12ShortenIfName: support 'BE' IOS XR acronym

7 years agosupport IOS XR4 interface names
Alexey Andriyanov [Tue, 19 Feb 2013 18:20:26 +0000 (22:20 +0400)] 
support IOS XR4 interface names

ios12ShortenIfName: IOS XR4 regexps added

7 years agonew hook alterDeviceQueryResult
Alexey Andriyanov [Sat, 16 Feb 2013 21:46:37 +0000 (01:46 +0400)] 
new hook alterDeviceQueryResult

This is to allow changing the result of queryDevice before it returns.
For example, you could make some additional remote queries to extend or
fix data returned by standard query handler.

queryDevice: replace $ret, if user intends to
registerHook: fix exception when chaining non-existant function

7 years agoLLDP support for Juniper devices
Alexey Andriyanov [Sat, 16 Feb 2013 21:43:47 +0000 (01:43 +0400)] 
LLDP support for Juniper devices

jun10ReadLLDPStatus: new parser func
jun10TranslatePushQueue: opcode translation added

7 years agodetectDeviceBreed for Cisco IOS 12 routers
Alexey Andriyanov [Sat, 16 Feb 2013 12:08:32 +0000 (16:08 +0400)] 
detectDeviceBreed for Cisco IOS 12 routers

7 years agoRS pool cloner was throwing an exception
Alexey Andriyanov [Fri, 15 Feb 2013 16:46:59 +0000 (20:46 +0400)] 
RS pool cloner was throwing an exception

cloneRSPool: fixed variable name erro

7 years agobulk port creation failed with empty prefix
Alexey Andriyanov [Fri, 15 Feb 2013 16:45:16 +0000 (20:45 +0400)] 
bulk port creation failed with empty prefix

addBulkPorts: made string assertion aware of empty string

7 years agooverridable ssh gateway command-line options
Alexey Andriyanov [Tue, 12 Feb 2013 19:04:07 +0000 (23:04 +0400)] 
overridable ssh gateway command-line options

gateways/ssh: removed all options except of --as-user. Added ssh options pass-through
makeGatewayParams: new hook. Code from queryTerminal moved here
queryTerminal: call makeGatewayParams hook to translate settings info CLI options

7 years agosuppress some table rows in renderLocationPage()
Denis Ovsienko [Sat, 16 Feb 2013 12:04:17 +0000 (16:04 +0400)] 
suppress some table rows in renderLocationPage()

Suppress atributes that are empty or not allowed by RackCode
permissions. This brings the function into line with similar code.

7 years agolist plugins/* in .gitignore
Denis Ovsienko [Sat, 16 Feb 2013 11:16:35 +0000 (15:16 +0400)] 
list plugins/* in .gitignore

7 years agofix memory leak
Alexey Andriyanov [Mon, 11 Feb 2013 12:08:53 +0000 (16:08 +0400)] 
fix memory leak

checkPortRole: do not store every object's links, only the last one's

7 years agohighlight wrong 802.1Q uplinks/downlinks
Alexey Andriyanov [Thu, 7 Feb 2013 16:58:58 +0000 (20:58 +0400)] 
highlight wrong 802.1Q uplinks/downlinks

checkPortRole: function to check 802.1Q roles/links
renderObject8021QPorts: call checkPortRole

7 years agoSLB: ability to translate RS' address family
Alexey Andriyanov [Wed, 6 Feb 2013 18:16:00 +0000 (22:16 +0400)] 
SLB: ability to translate RS' address family

There are cases when you are using NAT LVS method and generate the
internal RS address based on the real one. Then you probably want
to store the original(real) RS address in DB. There is already the
way to translate the value os RSIP macro in local plugin.
But sometimes you want to translate IPv6 address into IPv4: virtual
service has IPv4 family, but the RS lacks of IPv4 global-scope address.
This patch allows you to do so.

generateConfig: compare expanded(translated) RS address length to VIP
length, not the original one

7 years agoadded Cisco AIR-AP1041N/1042N dict items
Alexey Andriyanov [Tue, 5 Feb 2013 12:58:41 +0000 (16:58 +0400)] 
added Cisco AIR-AP1041N/1042N dict items

7 years agodetectDeviceBreed: support of IOS 12.4
Alexey Andriyanov [Wed, 30 Jan 2013 15:16:32 +0000 (19:16 +0400)] 
detectDeviceBreed: support of IOS 12.4

7 years agoIOS 15.1 dictionary item
Alexey Andriyanov [Wed, 30 Jan 2013 10:54:27 +0000 (14:54 +0400)] 
IOS 15.1 dictionary item

7 years agodictionary: list a new Dell switch
Denis Ovsienko [Wed, 30 Jan 2013 07:51:22 +0000 (11:51 +0400)] 
dictionary: list a new Dell switch

7 years agofix commitAddFile() for MySQL strict mode (#717)
Denis Ovsienko [Tue, 29 Jan 2013 17:26:21 +0000 (21:26 +0400)] 
fix commitAddFile() for MySQL strict mode (#717)

7 years agobugfix: switchport list detection on NX-OS
Alexey Andriyanov [Tue, 29 Jan 2013 14:30:10 +0000 (18:30 +0400)] 
bugfix: switchport list detection on NX-OS

some NX-OS releases (at least 5.0(3)N1(1a)) has a strange bug:
'vdc 1 vlan xxx' string in front of Name: lines of switchport listing.
Only trunk ports with access vlan id being set are affected.

ios12ReadSwitchPortList: regexp changed

7 years agobugfix: CLI mode detection was not working
Alexey Andriyanov [Mon, 28 Jan 2013 16:11:49 +0000 (20:11 +0400)] 
bugfix: CLI mode detection was not working

isCLIMode: new library function

7 years agobugfix: A1->T transition on Nexus 7000
Alexey Andriyanov [Mon, 28 Jan 2013 11:49:07 +0000 (15:49 +0400)] 
bugfix: A1->T transition on Nexus 7000

nxos4TranslatePushQueue:
some NX-OS platforms ask for confirmation if user tries to
overwrite allowed vlan list. Hence, we need to use
the differentiative remove syntax here

7 years agobugfix: suppress nc's success messages
Alexey Andriyanov [Sun, 27 Jan 2013 19:26:33 +0000 (23:26 +0400)] 
bugfix: suppress nc's success messages

7 years agomake nc client more verbose
Alexey Andriyanov [Sat, 26 Jan 2013 14:45:47 +0000 (18:45 +0400)] 
make nc client more verbose

7 years ago802.1Q NX-OS configuration parser merged with IOS
Alexey Andriyanov [Fri, 25 Jan 2013 15:09:47 +0000 (19:09 +0400)] 
802.1Q NX-OS configuration parser merged with IOS

Now the single code parses both NX-OS and IOS configuration.
'show interface switchports' command output is used to determine
switchport list. Hence proper switchport detecton for NX-OS.
Do not return 'none' port mode for IP interfaces and other non-switched
ports.

ios12ReadVLANConfig: begin with ios12-get8021q-swports, not ios12-get8021q-top
ios12ScanTopLevel: first letter case insensivity for Port-channels
ios12ReadSwitchPortList: new function to read switchport list
ios12PickSwitchportCommand: support empty line separators, fex-fabric
mode, change in 'none' mode logic
ios12PickSwitchportCommand: support for dual-space NX-OS indent
ios12PickVLANCommand: removed hardcoded separator constant
vrp55Read8021QConfig: change in 'none' mode logic
ios12TranslatePushQueue: added switport list command

-nxos4Read8021QConfig: removed
-nxos4ScanTopLevel
-nxos4PickVLANCommand
-nxos4PickSwitchportCommand

7 years agoIP comparison func IPCmp added
Alexey Andriyanov [Wed, 23 Jan 2013 13:29:38 +0000 (17:29 +0400)] 
IP comparison func IPCmp added

IPNetworkCmp: use new IPCmp

7 years agonew Huawei switches models dictionary items
Alexey Andriyanov [Fri, 18 Jan 2013 14:47:54 +0000 (18:47 +0400)] 
new Huawei switches models dictionary items

(by Boris Lytochkin)

7 years agoadded Catalyst 2960-SF series dictionary items
Alexey Andriyanov [Wed, 16 Jan 2013 17:01:24 +0000 (21:01 +0400)] 
added Catalyst 2960-SF series dictionary items

7 years agoCisco IOS 15.0 support
Alexey Andriyanov [Wed, 16 Jan 2013 16:48:52 +0000 (20:48 +0400)] 
Cisco IOS 15.0 support

new dictionaty item,
$breed_by_swcode was reformatted (comments added)

7 years agofix filling of $breed_by_swcode
Alexey Andriyanov [Wed, 16 Jan 2013 14:29:09 +0000 (18:29 +0400)] 
fix filling of $breed_by_swcode

7 years agoability to override detectDeviceBreed's mapping
Alexey Andriyanov [Wed, 16 Jan 2013 13:37:23 +0000 (17:37 +0400)] 
ability to override detectDeviceBreed's mapping

detectDeviceBreed:
$breed_by_swcode, $breed_by_hwcode, $breed_by_mgmtcode became global arrays

7 years agoupdVSTRule: dont call json_decode twice
Alexey Andriyanov [Wed, 16 Jan 2013 12:22:16 +0000 (16:22 +0400)] 
updVSTRule: dont call json_decode twice

7 years agobugfix: assertStringArg returned htmlspecialchar's
Alexey Andriyanov [Wed, 16 Jan 2013 12:16:09 +0000 (16:16 +0400)] 
bugfix: assertStringArg returned htmlspecialchar's

assertStringArg: use sic instead of _REQUEST
assertDateArg: use assertStringArg
assertIPArg: idem
assertIPv4Arg: idem
assertIPv6Arg: idem
assertPCREArg: dont use _REQUEST value, suppress preg_match warnings

7 years agovrp5xReadLLDPStatus: handle Nexus' Port ID TLV
Alexey Andriyanov [Tue, 15 Jan 2013 16:24:33 +0000 (20:24 +0400)] 
vrp5xReadLLDPStatus: handle Nexus' Port ID TLV

Cisco Nexus 7000 sends 'locally-assigned' port ID type in its LLDP frames.
Use Port ID instead of Port Description if port ID type is 'local'(7).

7 years agoupdate detectDeviceBreed() for IOS 12.0 (#723)
BlazejG [Tue, 15 Jan 2013 07:08:14 +0000 (11:08 +0400)] 
update detectDeviceBreed() for IOS 12.0 (#723)

7 years agofix: getBypassValue now returns binary IPs
Alexey Andriyanov [Mon, 14 Jan 2013 15:46:26 +0000 (19:46 +0400)] 
fix: getBypassValue now returns binary IPs

fixContext: treat bypass IP in a binary form, not in alphanumeric
renderIPAddress: idem
renderIPAddressProperties: idem
renderIPAddressAllocations: idem
renderIPAddressLog: idem

7 years agodynamic_title_decoder became cleaner
Alexey Andriyanov [Mon, 14 Jan 2013 13:09:36 +0000 (17:09 +0400)] 
dynamic_title_decoder became cleaner

use new assertion semantics
single place of returning formatted error
catch exceptions

7 years agoall assertion functions now return param value
Alexey Andriyanov [Mon, 14 Jan 2013 13:05:54 +0000 (17:05 +0400)] 
all assertion functions now return param value

assertUIntArg
assertDateArg
assertStringArg
assertBoolArg
assertPCREArg
genericAssertion

7 years agofixed comment of spotEntity
Alexey Andriyanov [Mon, 14 Jan 2013 13:04:06 +0000 (17:04 +0400)] 
fixed comment of spotEntity

it was saying the function returned NULL on error

7 years agofix prev. commit
Alexey Andriyanov [Sat, 12 Jan 2013 15:03:40 +0000 (19:03 +0400)] 
fix prev. commit

printTagCheckboxTable: invalid tag id was used

7 years agouse mkA() in ophandlers.php and slb-interface.php
Denis Ovsienko [Fri, 11 Jan 2013 16:27:09 +0000 (20:27 +0400)] 
use mkA() in ophandlers.php and slb-interface.php

7 years agocolorize tags in cellfilter portlet
Alexey Andriyanov [Fri, 11 Jan 2013 16:18:27 +0000 (20:18 +0400)] 
colorize tags in cellfilter portlet

printTagCheckboxTable changed

7 years agooverridable tag names display style
Alexey Andriyanov [Fri, 11 Jan 2013 14:22:27 +0000 (18:22 +0400)] 
overridable tag names display style

getTagClassName: new func
serializeTags: embed tag names into <span>, call getTagClassName
renderTagRowForViewer: call getTagClassName

7 years agonew tag API functions
Alexey Andriyanov [Fri, 11 Jan 2013 13:25:18 +0000 (17:25 +0400)] 
new tag API functions

getTagSubtree
getTagDescendents

7 years agofetchIPAddressNetworkRow: use callHook
Alexey Andriyanov [Thu, 10 Jan 2013 14:45:42 +0000 (18:45 +0400)] 
fetchIPAddressNetworkRow: use callHook

fetchIPv4AddressNetworkRow and
fetchIPv6AddressNetworkRow were not called as hooks

7 years agobugfix: snmp detected wrong hwtype for some C2960
Alexey Andriyanov [Wed, 9 Jan 2013 11:43:53 +0000 (15:43 +0400)] 
bugfix: snmp detected wrong hwtype for some C2960

7 years agofix syntax error in dictionary items (a28aee)
Alexey Andriyanov [Wed, 9 Jan 2013 11:10:12 +0000 (15:10 +0400)] 
fix syntax error in dictionary items (a28aee)

7 years agodictionary items of Cisco Catalyst 2960 renamed
Alexey Andriyanov [Wed, 9 Jan 2013 11:05:27 +0000 (15:05 +0400)] 
dictionary items of Cisco Catalyst 2960 renamed

change by Boris Lytochkin

some dictionary items of Cisco Catalyst 2960 switches were renamed to meet official Cisco classification (refer the release notes)

7 years agobugfix: ipbydescr search results were broken
Alexey Andriyanov [Sat, 29 Dec 2012 11:58:18 +0000 (15:58 +0400)] 
bugfix: ipbydescr search results were broken

renderSearchResults was modified

7 years agoscale rack thumbs on server side, not in browser
Denis Ovsienko [Tue, 8 Jan 2013 20:46:40 +0000 (00:46 +0400)] 
scale rack thumbs on server side, not in browser

There are two scales for the rack PNG thumbnail: 1:1 (used in rackspace
view) and N:1 (used in rack row view according to ROW_SCALE setting).
The latter for a long time remained the same as the former on the server
side (handled through "minirack" request subtype), relying on image
scaling to be performed by the browser. However, modern browsers tend to
scale images with resampling algorithms, not resizing, making the scaled
image look blurry.

This change adds an extra "midirack" request subtype standing for the
N:1 PNG image scaled on the server side, so that it looks sharp again.
The server-scaled images are not cached, which should not be a
performance issue since they are requested only for a specific rack row.

* printRackThumbImage(): add optional image scaling
* dispatchImageRequest(): add new "midirack" subtype
* renderRow(): pass the required image scale through the request

7 years agorefresh minirack module code
Denis Ovsienko [Tue, 8 Jan 2013 19:41:23 +0000 (23:41 +0400)] 
refresh minirack module code

* renderRackThumb(): remove irrelevant code/comments, rename to
  dispatchMiniRackThumbRequest()
* generateMiniRack(): don't return anything (exceptions do the job),
  rename to printRackThumbImage()

7 years agoSNMP: add support for IBM G8264
Denis Ovsienko [Tue, 8 Jan 2013 19:26:10 +0000 (23:26 +0400)] 
SNMP: add support for IBM G8264

7 years agoSNMP: add support for IBM G8052
Denis Ovsienko [Tue, 8 Jan 2013 18:33:57 +0000 (22:33 +0400)] 
SNMP: add support for IBM G8052

7 years agodictionary: list more network switches
Denis Ovsienko [Tue, 8 Jan 2013 18:33:13 +0000 (22:33 +0400)] 
dictionary: list more network switches

7 years agomake more use of mkA() in interface.php
Denis Ovsienko [Tue, 8 Jan 2013 16:24:36 +0000 (20:24 +0400)] 
make more use of mkA() in interface.php

This change updates a few functions to output <A HREF...> through a call
to mkA() helper function.

* printObjectDetailsForRenderRack()
* renderRack()
* renderEditObjectForm()
* renderObject()
* renderIPSpaceEditor()
* renderIPv4NetworkAddresses()
* renderIPv6NetworkAddresses()
* renderNATv4ForObject()
* renderLocationPage()
* renderRackPage()
* renderLivePTR()
* printRoutersTD()
* renderCell()
* render8021QOrderForm()
* render8021QStatus()
* renderVLANDomain()
* renderVirtualResourcesSummary()
* renderEditVlan()

7 years agofix indentation
Denis Ovsienko [Tue, 8 Jan 2013 15:03:37 +0000 (19:03 +0400)] 
fix indentation

7 years agoupdate list of authors for 2013
Denis Ovsienko [Mon, 7 Jan 2013 19:22:42 +0000 (23:22 +0400)] 
update list of authors for 2013

7 years agogetSearchResultByField: search by regexp
Alexey Andriyanov [Thu, 27 Dec 2012 17:36:00 +0000 (21:36 +0400)] 
getSearchResultByField: search by regexp

7 years agoexec8021QDeploy wasn't returning FALSE on conflict
Alexey Andriyanov [Thu, 27 Dec 2012 16:29:49 +0000 (20:29 +0400)] 
exec8021QDeploy wasn't returning FALSE on conflict

also re-throw an exception in configuration pull-in

7 years agoAPI: pass existing VLAN list into xlatepushq
Alexey Andriyanov [Tue, 25 Dec 2012 15:10:44 +0000 (19:10 +0400)] 
API: pass existing VLAN list into xlatepushq

exec8021QDeploy: always fill keys of vlan_names with VIDs, even if names
are not set

7 years agosearch was slightly refactored
Alexey Andriyanov [Mon, 24 Dec 2012 18:25:41 +0000 (22:25 +0400)] 
search was slightly refactored

bugfix: racks, vs, rspools were displayed in search results even if user had no permissions to view them
update: vlan search results now include binded IP networks

getVLANSearchResult: this func now search only by VLAN description
searchEntitiesByText:
 - ipv4addressbydq now has 'ip' as binary data
 - ipv4network, ipv6network renamed to ipv4net, ipv6net
 - added search by vlan id, and adding IP networks to results

searchEntitiesByText:
 - ipv4network, ipv6network renamed to ipv4net, ipv6net
 - isolatedPermission checks added for 'ipv4rspool', 'ipv4vs', 'rack'

buildSearchRedirectURL: new func to redirect user from single search result

renderSearchResults:
 - render handlers were unified slightly
 - use buildSearchRedirectURL, redirect through 304 instead of JS
 - ipv4network, ipv6network renamed to ipv4net, ipv6net

7 years agoarray_first, array_last bugfix
Alexey Andriyanov [Mon, 24 Dec 2012 18:19:26 +0000 (22:19 +0400)] 
array_first, array_last bugfix

array_slice is not working for arrays with binstr keys (possible PHP bug)

7 years agoconfigurable top-to-bottom units order (#601)
Alexey Andriyanov [Sun, 23 Dec 2012 08:11:55 +0000 (12:11 +0400)] 
configurable top-to-bottom units order (#601)

new conf var REVERSED_RACKS_LISTSRC
+ inverseRackUnit - translates units numbers
renderAtomGrid: use of inverseRackUnit
renderRack: idem
renderMolecule: idem

7 years agoWS-C2960-24PC-S SNMP support
Alexey Andriyanov [Thu, 20 Dec 2012 16:33:34 +0000 (20:33 +0400)] 
WS-C2960-24PC-S SNMP support

7 years ago802.1Q: better Force10 switches support
Alexey Andriyanov [Thu, 20 Dec 2012 15:40:10 +0000 (19:40 +0400)] 
802.1Q: better Force10 switches support

ftos8TranslatePushQueue: vlans were not deleted
ftos8TranslatePushQueue: redundant commands causing error messages were
removed

7 years ago802.1Q: duplicate rem_vlan ops were generated
Alexey Andriyanov [Thu, 20 Dec 2012 15:38:03 +0000 (19:38 +0400)] 
802.1Q: duplicate rem_vlan ops were generated

generate8021QDeployOps: use of array_unique

7 years agobugfix: %GPASS% dictionary markers were ignored
Alexey Andriyanov [Thu, 20 Dec 2012 12:03:57 +0000 (16:03 +0400)] 
bugfix: %GPASS% dictionary markers were ignored

cookOptgroups: use of execGMarker