racktables
7 years agomakeGatewayParams: fix missing 'new' in throwing
Alexey Andriyanov [Mon, 15 Apr 2013 08:22:19 +0000 (12:22 +0400)] 
makeGatewayParams: fix missing 'new' in throwing

7 years ago0.20.4: cut the release RackTables-0.20.4
Alexey Andriyanov [Sun, 14 Apr 2013 20:27:19 +0000 (00:27 +0400)] 
0.20.4: cut the release

7 years agobug: relnotes were not displayed
Alexey Andriyanov [Sun, 14 Apr 2013 20:23:41 +0000 (00:23 +0400)] 
bug: relnotes were not displayed

7 years agopre-release notes
Alexey Andriyanov [Sun, 14 Apr 2013 20:15:40 +0000 (00:15 +0400)] 
pre-release notes

7 years agoUI: config editor changed a bit
Alexey Andriyanov [Tue, 9 Apr 2013 20:57:40 +0000 (00:57 +0400)] 
UI: config editor changed a bit

renderUIConfigEditForm, renderMyPreferences: merged into one
renderConfigEditor

renderConfigVarName: new func
renderUIConfig: use renderConfigVarName

7 years agomove checkTypeAndAttribute to functions.php
Alexey Andriyanov [Tue, 9 Apr 2013 20:55:25 +0000 (00:55 +0400)] 
move checkTypeAndAttribute to functions.php

7 years agoauthenticate(): add some comments
Denis Ovsienko [Sun, 7 Apr 2013 13:11:45 +0000 (17:11 +0400)] 
authenticate(): add some comments

7 years agoadd some finish to the new SAML code
Denis Ovsienko [Sun, 7 Apr 2013 12:47:04 +0000 (16:47 +0400)] 
add some finish to the new SAML code

* authenticate(): call authenticated_via_saml() only once and handle its
  failure properly
* authenticated_via_saml(): simplify some code
* saml_getAttributeValue(): idem

7 years agoinitial SAML authentication support (#811)
Merijn van de Schoot [Sun, 7 Apr 2013 09:58:01 +0000 (13:58 +0400)] 
initial SAML authentication support (#811)

7 years agoauthenticate(): justify switch blocks
Denis Ovsienko [Sun, 7 Apr 2013 12:23:39 +0000 (16:23 +0400)] 
authenticate(): justify switch blocks

Rewrite the first switch block to convert the outer "if" into a "case"
(also saves one indentation level). Remove the extra parentheses in the
second switch block and split a case condition into two.

7 years agoauthenticate(): remove a single-use variable
Denis Ovsienko [Sun, 7 Apr 2013 12:17:54 +0000 (16:17 +0400)] 
authenticate(): remove a single-use variable

7 years agoauthenticate(): remove a no-op stmt after "throw"
Denis Ovsienko [Sun, 7 Apr 2013 11:33:29 +0000 (15:33 +0400)] 
authenticate(): remove a no-op stmt after "throw"

7 years agoadd SNMP support for Dell PowerConnect 2824 (#815)
Aaron Dummer [Sat, 6 Apr 2013 16:45:45 +0000 (09:45 -0700)] 
add SNMP support for Dell PowerConnect 2824 (#815)

7 years agoUI: nowrap in td.tagbox
Alexey Andriyanov [Fri, 5 Apr 2013 16:38:35 +0000 (20:38 +0400)] 
UI: nowrap in td.tagbox

7 years agostrip tags from error message in CLI mode
Alexander Balezin [Fri, 5 Apr 2013 07:35:56 +0000 (11:35 +0400)] 
strip tags from error message in CLI mode

setMessage() changed

Signed-off-by: Alexey Andriyanov <alan@al-an.info>
7 years agonew API function mkCellA
Alexey Andriyanov [Tue, 2 Apr 2013 11:40:54 +0000 (15:40 +0400)] 
new API function mkCellA

returns HTML-formatted link to the given entity
formatEntityList: treat IP networks

7 years agorenderVLANIPLinks(): add initialisation (#809)
Denis Ovsienko [Fri, 29 Mar 2013 16:25:40 +0000 (20:25 +0400)] 
renderVLANIPLinks(): add initialisation (#809)

7 years agoLimit number of preg_replace to 1 in configuration handlers
Aleksey V. Zhukov [Wed, 27 Mar 2013 17:03:53 +0000 (21:03 +0400)] 
Limit number of preg_replace to 1 in configuration handlers

7 years agoMore accurate cut of Extreme XOS current configuration
Aleksey V. Zhukov [Wed, 27 Mar 2013 16:58:29 +0000 (20:58 +0400)] 
More accurate cut of Extreme XOS current configuration

7 years agoturn buildEntityLVSConfig into hook
Alexey Andriyanov [Fri, 22 Mar 2013 12:09:31 +0000 (16:09 +0400)] 
turn buildEntityLVSConfig into hook

7 years agoconfigurable nearest racks checkbox
Alexander Balezin [Thu, 21 Mar 2013 12:55:28 +0000 (16:55 +0400)] 
configurable nearest racks checkbox
allow to change default state of "Nearest racks" checkbox in port list

7 years agoMerge pull request #14 from nido/master
Denis Ovsienko [Tue, 19 Mar 2013 12:53:37 +0000 (05:53 -0700)] 
Merge pull request #14 from nido/master

SSHNOKEY gateway

7 years agoSNMP: detect FTOS 8 sw type
Alexey Andriyanov [Tue, 19 Mar 2013 09:37:56 +0000 (13:37 +0400)] 
SNMP: detect FTOS 8 sw type

7 years agoadd SNMP support for HP J9137A (#791), also fix SNMP support for HP
Aaron Dummer [Mon, 18 Mar 2013 00:05:45 +0000 (17:05 -0700)] 
add SNMP support for HP J9137A (#791), also fix SNMP support for HP
J9138A

7 years agomodify a ChangeLog entry to conform to 80-character line width
Aaron Dummer [Sun, 17 Mar 2013 02:07:33 +0000 (19:07 -0700)] 
modify a ChangeLog entry to conform to 80-character line width

7 years agosearching attributes of locations & racks didn't work (#787)
Aaron Dummer [Sun, 17 Mar 2013 01:31:17 +0000 (18:31 -0700)] 
searching attributes of locations & racks didn't work (#787)

7 years agoadd columns with IIF and OIF ID (#749)
Peter Gervai [Sat, 16 Mar 2013 16:50:17 +0000 (20:50 +0400)] 
add columns with IIF and OIF ID (#749)

The purpose to show the keys is to be able to reference them in the
aforementioned "Interface config", and basically the IIF and OIF keys
are used.

7 years agoAdded 'sshnokey' gateway to communicate using password authentication over ssh. 14/head
Ivo Tamboer [Fri, 15 Mar 2013 05:14:38 +0000 (06:14 +0100)] 
Added 'sshnokey' gateway to communicate using password authentication over ssh.
added sshnokey gateway to the remote.php in a way that it includes the terminal commands

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