racktables
7 years agoMerge branch 'master' of https://github.com/RackTables/racktables.git
Aaron Dummer [Wed, 19 Sep 2012 16:28:27 +0000 (09:28 -0700)] 
Merge branch 'master' of https://github.com/RackTables/racktables.git

7 years agobugfix: 0.19.10 moved some HW models to a different dict chapter, update
Aaron Dummer [Wed, 19 Sep 2012 16:28:19 +0000 (09:28 -0700)] 
bugfix: 0.19.10 moved some HW models to a different dict chapter, update
the type of affected objects accordingly (#609)

7 years agouse "env" for PHP and Python interpreters
Denis Ovsienko [Wed, 19 Sep 2012 07:06:19 +0000 (11:06 +0400)] 
use "env" for PHP and Python interpreters

Shell and Perl used to be available in /usr/bin on both Linux and
FreeBSD, but PHP and Python may be found either in /usr/bin or in
/usr/local/bin depending on particular host. Use of env should justify
this particular difference once and forever.

7 years agochange path to Python interpreter
Jeff Silberman [Tue, 18 Sep 2012 05:29:42 +0000 (09:29 +0400)] 
change path to Python interpreter

7 years agojustify service profile setup for UCS ComputeBlade
Jeff Silberman [Mon, 17 Sep 2012 21:06:45 +0000 (01:06 +0400)] 
justify service profile setup for UCS ComputeBlade

For server-blades that are associated to "service profiles", the domain
name needs to be included. Otherwise, service-profile names by
themselves (e.g. "EXCH-1") are not sufficiently unique.

7 years agofix PHP warning in renderObject8021QSyncPreview()
Denis Ovsienko [Mon, 17 Sep 2012 15:42:16 +0000 (19:42 +0400)] 
fix PHP warning in renderObject8021QSyncPreview()

7 years agofix PHP warning in renderObject8021QSyncSchedule()
Denis Ovsienko [Mon, 17 Sep 2012 15:15:57 +0000 (19:15 +0400)] 
fix PHP warning in renderObject8021QSyncSchedule()

7 years agofillBypassValues: forgot parameter in array_key_exists
Alexey Andriyanov [Mon, 17 Sep 2012 13:28:13 +0000 (17:28 +0400)] 
fillBypassValues: forgot parameter in array_key_exists

7 years agojustify getBypassValue() use in triggers further
Denis Ovsienko [Mon, 17 Sep 2012 10:14:52 +0000 (14:14 +0400)] 
justify getBypassValue() use in triggers further

Update the following functions to use getBypassValue() instead of
hardcoding bypass argument name. Explicit bypass assertions are no more
required.

* trigger_livevlans()
* trigger_snmpportfinder()
* trigger_isloadbalancer()
* trigger_ip()
* trigger_natv4()
* trigger_autoports()
* trigger_file_editText()
* trigger_rackspace()
* trigger_ports()
* trigger_object_8021qorder()
* trigger_ipv4net_vlanconfig()
* trigger_ipv6net_vlanconfig()
* trigger_vlan_ipv4net()
* trigger_vlan_ipv6net()

7 years agoimplement offline mgmt of 802.1Q port list (#460)
Denis Ovsienko [Sun, 16 Sep 2012 13:53:39 +0000 (17:53 +0400)] 
implement offline mgmt of 802.1Q port list (#460)

So far the only way of adding or removing 802.1Q port records was
through a sync with a live remote device. This change makes it possible
to add and remove arbitrary 802.1Q ports regardless of the normal sync
process. This feature is enabled for 802.1Q switches matching
8021Q_EXTSYNC_LISTSRC predicate.

* renderObject8021QSync(): add extra portlet
* renderObject8021QSyncPorts(): new function to render port list
  management form
* resetUIConfig(): update for new config option
* create8021QPortConfig(): new ophandler
* destroy8021QPortConfig(): new ophandler

7 years agosplit renderObject8021QSync() into 3 functions
Denis Ovsienko [Sat, 15 Sep 2012 18:17:20 +0000 (22:17 +0400)] 
split renderObject8021QSync() into 3 functions

This change adds two new functions, renderObject8021QSyncSchedule() and
renderObject8021QSyncPreview(), which output the contents of the left
and right columns of the 802.1Q sync tab respectively.
renderObject8021QSync() is updated to output an error message instead of
the live preview only (not instead of the whole tab contents).

7 years agofix channel-group status parsing for ROS
Denis Ovsienko [Mon, 17 Sep 2012 06:56:30 +0000 (10:56 +0400)] 
fix channel-group status parsing for ROS

7 years agoupdate: confirmation boxes when clearing attribute values (#565)
Alexey Andriyanov [Mon, 17 Sep 2012 05:40:32 +0000 (09:40 +0400)] 
update: confirmation boxes when clearing attribute values (#565)

changed functions:
renderEditObjectForm
renderEditRackForm
renderEditLocationForm

7 years agobugfix: paging reset in LivePTR (#421)
Alexey Andriyanov [Mon, 17 Sep 2012 05:31:24 +0000 (09:31 +0400)] 
bugfix: paging reset in LivePTR (#421)

changed functions:
renderLivePTR
importPTRData

7 years agoadded $debug_mode global var
Alexey Andriyanov [Mon, 17 Sep 2012 05:28:51 +0000 (09:28 +0400)] 
added $debug_mode global var

7 years agobugfix: ports and IPs highlighting is kept after edit operation
Alexey Andriyanov [Mon, 17 Sep 2012 05:22:53 +0000 (09:22 +0400)] 
bugfix: ports and IPs highlighting is kept after edit operation

bypass-handling code was unified. In some cases bypass_tabs were
handled, in some - were not.

fillBypassValues: new func to collect bypass http params
fixContext: use getBypassValue
buildRedirectURL: use fillBypassValues
makeHrefProcess: idem
showTabs: idem

removed unnesessary params from makeHrefProcess calls in interface.php

7 years agoadd foreign keys to delete rack history data when a rack is deleted
Aaron Dummer [Sun, 16 Sep 2012 21:38:03 +0000 (14:38 -0700)] 
add foreign keys to delete rack history data when a rack is deleted
(#604)

7 years agocheckObjectUniqueness() - wasn't working when adding new Racks/Rows
Aaron Dummer [Sun, 16 Sep 2012 20:30:37 +0000 (13:30 -0700)] 
checkObjectUniqueness() - wasn't working when adding new Racks/Rows

7 years agorenderRow() - fix exception thrown when the row is not assigned to a
Aaron Dummer [Sun, 16 Sep 2012 18:39:40 +0000 (11:39 -0700)] 
renderRow() - fix exception thrown when the row is not assigned to a
location

7 years agocommitUpdateRack() - remove redundant recordObjectHistory() call
Aaron Dummer [Sun, 16 Sep 2012 18:27:12 +0000 (11:27 -0700)] 
commitUpdateRack() - remove redundant recordObjectHistory() call

7 years agobugfix: Location attributes weren't being saved (#605)
Aaron Dummer [Sun, 16 Sep 2012 18:16:34 +0000 (11:16 -0700)] 
bugfix: Location attributes weren't being saved (#605)

7 years agogetNATv4ForObject: get rid of INET_NTOA in SQL
Alexey Andriyanov [Sat, 15 Sep 2012 20:49:45 +0000 (00:49 +0400)] 
getNATv4ForObject: get rid of INET_NTOA in SQL

7 years agobugfix: IPs in NAT rules were displayed as ints
Alexey Andriyanov [Sat, 15 Sep 2012 20:37:08 +0000 (00:37 +0400)] 
bugfix: IPs in NAT rules were displayed as ints

scanIPv4Space: post-format fetched IPs

7 years agogetRenderedIPv4NetCapacity: fix decimal scale
Alexey Andriyanov [Sat, 15 Sep 2012 20:26:11 +0000 (00:26 +0400)] 
getRenderedIPv4NetCapacity: fix decimal scale

7 years agobugfix: fixed infinite loop when creating /0 nets
Alexey Andriyanov [Sat, 15 Sep 2012 18:56:53 +0000 (22:56 +0400)] 
bugfix: fixed infinite loop when creating /0 nets

fillIPNetsCorrelation: check for crossing 0 after ip_next()
fillIPSpareListBstr: idem

7 years agobugfix: IPv4 network capacity (#602)
Alexey Andriyanov [Sat, 15 Sep 2012 18:46:02 +0000 (22:46 +0400)] 
bugfix: IPv4 network capacity (#602)

ip4_mask_size: in boundary cases the result is hardcoded literally
getIPv4OwnRangeSize: removed
getRenderedIPv4NetCapacity: use PHP BC Math functions when dealing with the results of ip4_mask_size.

7 years agouse getBypassValue() in trigger functions
Denis Ovsienko [Sat, 15 Sep 2012 15:46:56 +0000 (19:46 +0400)] 
use getBypassValue() in trigger functions

* trigger_object_8021qports()
* trigger_object_8021qsync()

7 years agochange capitalization of some Location-related fields
Aaron Dummer [Fri, 14 Sep 2012 15:44:47 +0000 (08:44 -0700)] 
change capitalization of some Location-related fields

7 years agorevert last commit (f8c8b7)
Alexey Andriyanov [Fri, 14 Sep 2012 13:55:33 +0000 (17:55 +0400)] 
revert last commit (f8c8b7)

The root of this issue is that Nexus 7000 switches have different
port config syntax according to the type of linear card (F1/F2).

The issue can not be fixed by introducing new breed, so I'm giving
up and leaving this thing as is.

7 years agobugfix: 802.1Q: NX-OS gateway did detect ip ports as switched
Alexey Andriyanov [Fri, 14 Sep 2012 11:53:13 +0000 (15:53 +0400)] 
bugfix: 802.1Q: NX-OS gateway did detect ip ports as switched

nxos4PickSwitchportCommand: do not assume access mode without
'switchport mode' and 'switchport' commands

7 years agoOuterjoin Missing
James Tutton [Fri, 14 Sep 2012 10:02:10 +0000 (11:02 +0100)] 
Outerjoin Missing

7 years agoAdd Location Based Info To Rackrow Table
James Tutton [Fri, 14 Sep 2012 07:46:55 +0000 (08:46 +0100)] 
Add Location Based Info To Rackrow Table

Minor modifiication to SQL query

7 years agoadd a new 'management interface' object type
Aaron Dummer [Sat, 8 Sep 2012 23:10:36 +0000 (16:10 -0700)] 
add a new 'management interface' object type

7 years agoinitial support for Cisco UCS
Jeff Silberman [Fri, 7 Sep 2012 12:56:37 +0000 (16:56 +0400)] 
initial support for Cisco UCS

Signed-off-by: Denis Ovsienko <infrastation@yandex.ru>
This commit is based on Jeff's patch he contributed to RackTables as a
GPL piece of work. I had to justify most of fine details in the code
and its layering, but the overall approach was preserved.

UCS is presently the only use case of queryDevice() with HTTP-supplied
username and password possible. This commit is an initial attempt to
handle such use cases.

New code:

* getObjectContentsList(): returns a list of object's nested objects
* ucsTranslatePushQueue(): maps PHP pseudocodes to UCS command(s)
* ucsReadInventory(): converts a plaintext listing of components into a
  PHP array
* renderEditUCSForm(): renders the HTML contents of the new "UCS" tab
* autoPopulateUCS(): ophandler to import the contents of a UCS domain
* cleanupUCS(): ophandler to remove the contents of a UCS domain
* trigger_ucs(): a trigger enabling the "UCS" tab on UCS domains' object
  page
* gateways/ucssdk: a Python backend to UCS SDK

Updated code:

* interface-lib.php: register a new PNG image
* dictionary.php: introduce a server chassis pseudo-model for a UCS
  domain
* install.php: update the default value of IPV4OBJ_LISTSRC option
* resetUIConfig(): update resetting of IPV4OBJ_LISTSRC option for
  consistency
* navigation.php: register new conditional "UCS" tab of an object's page
  and its associated functions
* detectDeviceBreed(): update to detect a new "ucs" breed
* $breedfunc: register the functions of the new "ucs" breed
* queryTerminal(): update for the new "ucs" breed and its first "ucssdk"
  protocol

Further work is required to align the RackTables data model with regard
to management instances and their association with physical objects, but
this is so far left out of scope of this implementation.

7 years agorename one of two renderFilePreview() funcs (#603)
Denis Ovsienko [Thu, 13 Sep 2012 08:39:54 +0000 (12:39 +0400)] 
rename one of two renderFilePreview() funcs (#603)

There used to be two function with the same name, one in solutions.php
and another in interface.php. Since the module dispatcher in index.php
treats these two files mutually exclusive, this name clash remained
unnoticed until a user forced unconditional inclusion of interface.php
in a plugin file. This commit renames the function in solutions.php to
renderImagePreview().

7 years agospelling
Denis Ovsienko [Wed, 12 Sep 2012 09:08:55 +0000 (13:08 +0400)] 
spelling

7 years agorefine some ROS-specific parsing code
Denis Ovsienko [Wed, 12 Sep 2012 08:50:25 +0000 (12:50 +0400)] 
refine some ROS-specific parsing code

ros11ReadMacList(): adjust finite automata for reliable detection of end
of table and less code
ros11ReadInterfaceStatus(): idem, explodeTableLine() is no more required

7 years agoD-Link (#533) and Linux (#541) support in gateways
Ilya Evseev [Thu, 1 Mar 2012 13:31:35 +0000 (13:31 +0000)] 
D-Link (#533) and Linux (#541) support in gateways

Conflicts:

ChangeLog
wwwroot/inc/deviceconfig.php
wwwroot/inc/gateways.php

Signed-off-by: Denis Ovsienko <infrastation@yandex.ru>
This commit forward-ports two features from maintenance-0.19.x to master
with the following changes:

* D-Link enable password is not explicitly supported
* connector files are dismissed
* breed-specific functions are modified to match 0.20.x framework
* spacing/indentation justifications

7 years ago0.20.0: cut the release RackTables-0.20.0
Alexey Andriyanov [Sun, 9 Sep 2012 19:36:18 +0000 (23:36 +0400)] 
0.20.0: cut the release

7 years agorelease notes for 0.20.0
Alexey Andriyanov [Sun, 9 Sep 2012 19:35:48 +0000 (23:35 +0400)] 
release notes for 0.20.0

7 years ago802.1q -> 802.1Q
Alexey Andriyanov [Sun, 9 Sep 2012 19:29:27 +0000 (23:29 +0400)] 
802.1q -> 802.1Q

7 years agochanged default values of some cfg vars
Alexey Andriyanov [Sun, 9 Sep 2012 18:25:09 +0000 (22:25 +0400)] 
changed default values of some cfg vars

SHOW_LAST_TAB        no => yes
IPV4_TREE_SHOW_USAGE es =>no
IPV4LB_LISTSRC {$typeid_4} => false
FILTER_DEFAULT_ANDOR or => and
FILTER_SUGGEST_EXTRA no => yes
IPV4_TREE_RTR_AS_CELL yes => no
SSH_OBJS_LISTSRC none => false
TELNET_OBJS_LISTSRC none => false
QUICK_LINK_PAGES '' => depot,ipv4space,rackspace

new DB function replaceConfigVarValue introduced in upgrade.php

7 years agoadded sample data for some features
Alexey Andriyanov [Sun, 9 Sep 2012 17:13:26 +0000 (21:13 +0400)] 
added sample data for some features

 - 802.1q automatic ports configuration
 - 802.1q template realm
 - SLB fwmark
 - SLB macro processor
 - zero-U mounting
 - tag assignment log

7 years agoreuse code in assertBreedFunction
Alexey Andriyanov [Sun, 9 Sep 2012 13:32:55 +0000 (17:32 +0400)] 
reuse code in assertBreedFunction

7 years agobugfix: upgrade batch did not respect new realm 'location'
Alexey Andriyanov [Sun, 9 Sep 2012 13:19:23 +0000 (17:19 +0400)] 
bugfix: upgrade batch did not respect new realm 'location'

bugfix: constraint name in IPv4RS table was changed by upgrade batch

7 years agoturn SLB demo data into binary format
Alexey Andriyanov [Sun, 9 Sep 2012 13:18:44 +0000 (17:18 +0400)] 
turn SLB demo data into binary format

7 years agofix links to wiki
Alexey Andriyanov [Sun, 9 Sep 2012 13:18:08 +0000 (17:18 +0400)] 
fix links to wiki

7 years agofilled 0.20.0 changelog
Alexey Andriyanov [Sun, 9 Sep 2012 11:10:34 +0000 (15:10 +0400)] 
filled 0.20.0 changelog

release date for 0.19.14 was also specified

7 years agorenderAddMultipleObjectsForm() - remove location-related object types,
Aaron Dummer [Sat, 8 Sep 2012 20:48:22 +0000 (13:48 -0700)] 
renderAddMultipleObjectsForm() - remove location-related object types,
they should be added using other forms

7 years agofix checkObjectNameUniqueness() to work for all object types
Aaron Dummer [Sat, 8 Sep 2012 20:19:38 +0000 (13:19 -0700)] 
fix checkObjectNameUniqueness() to work for all object types

7 years agofix spelling in init_config()
Jeff Silberman [Sat, 8 Sep 2012 09:01:57 +0000 (13:01 +0400)] 
fix spelling in init_config()

7 years agobugfix: perfomance issue in port linker
Alexey Andriyanov [Fri, 7 Sep 2012 13:36:30 +0000 (17:36 +0400)] 
bugfix: perfomance issue in port linker

renderPopupPortSelector: all empty ports were displayed as neighbours if
"nearest racks" was set and object was unmounted

7 years agofix indentation in getEntityRelatives()
Denis Ovsienko [Fri, 7 Sep 2012 12:36:30 +0000 (16:36 +0400)] 
fix indentation in getEntityRelatives()

7 years agorevert changes in fetchAttrsForObjects
Alexey Andriyanov [Fri, 7 Sep 2012 12:32:12 +0000 (16:32 +0400)] 
revert changes in fetchAttrsForObjects

There is an attributes engine design issue preventing us
to filter empty rows from SQL results

7 years agobugfix for previous commit
Alexey Andriyanov [Fri, 7 Sep 2012 11:15:23 +0000 (15:15 +0400)] 
bugfix for previous commit

7 years agominor perfomance optimization of listCells()
Alexey Andriyanov [Fri, 7 Sep 2012 10:18:07 +0000 (14:18 +0400)] 
minor perfomance optimization of listCells()

listCells: replace getExplicitTagsOnly, getImplicitTags by sortEntityTags
spotEntity: idem
sortEntityTags: new func
fetchAttrsForObjects: the query was optimized (do not fetch unused rows)

7 years agoadd Arista serial number detection
Denis Ovsienko [Thu, 6 Sep 2012 14:55:38 +0000 (18:55 +0400)] 
add Arista serial number detection

7 years agosupport for fetching configs from IOS XR 4 devices
Alexey Andriyanov [Thu, 6 Sep 2012 13:58:46 +0000 (17:58 +0400)] 
support for fetching configs from IOS XR 4 devices

new breed 'iosxr4'
queryTerminal: added iosxr4 support
iosxr4SpotConfigText: new function
iosxr4TranslatePushQueue: idem

7 years agofixed detection of JunOS 12R
Alexey Andriyanov [Thu, 6 Sep 2012 08:39:13 +0000 (12:39 +0400)] 
fixed detection of JunOS 12R

detectDeviceBreed: return 'jun10' for JunOS 12

7 years agorefresh eos4Read8021QConfig()
Denis Ovsienko [Tue, 4 Sep 2012 15:23:37 +0000 (19:23 +0400)] 
refresh eos4Read8021QConfig()

Justify the regexp to match numeric VLAN IDs only; don't pick the
default VLAN up second time.

7 years agoinitial support for Marvell ROS 1.1
Denis Ovsienko [Wed, 29 Aug 2012 12:06:52 +0000 (16:06 +0400)] 
initial support for Marvell ROS 1.1

This commit introduces a new device breed, "ros11", standing for
Marvell's ROS 1.1. LiveLLDP, Live Ports and 802.1Q functionality is
implemented.

ros11ReadLLDPStatus(): new function, LLDP neighbor list parser
ros11ParsePortString(): new helper function, port list parser
ros11TranslatePushQueue(): new function, CLI output translator
ros11Read8021QConfig() new function, one of the 802.1Q parsers
ros11Read8021QScanTop(): idem
ros11Read8021QVLANDatabase(): idem
ros11Read8021QPorts(): idem
ros11ReadInterfaceStatus(): new function, port status parser
ros11ReadMacList(): new function, MAC address table parser
detectDeviceBreed(): add "ros11" detection
queryTerminal(): add "ros11" case handling
$breedfunc: list new "ros11" functions

7 years agodon't feed "none" into iosParseVLANString()
Denis Ovsienko [Tue, 4 Sep 2012 05:58:30 +0000 (09:58 +0400)] 
don't feed "none" into iosParseVLANString()

The recent addition of "throw" into iosParseVLANString() revealed, that
the functions below would process "none" in "switchport trunk allowed
vlan none" as a VLAN list. This change fixes it.

* ios12PickSwitchportCommand()
* nxos4PickSwitchportCommand()
* eos4Read8021QConfig()

7 years agoresolve a PHP warning in resolve8021QConflicts()
Denis Ovsienko [Mon, 3 Sep 2012 18:45:59 +0000 (22:45 +0400)] 
resolve a PHP warning in resolve8021QConflicts()

A discarded 802.1Q port in "T" configuration would have no "allowed"
array items present on the HTTP request, causing a PHP warning about
"ra_0" and incorrect initialization of $F.

7 years agoupdateObject() - reference table as Object instead of RackObject when
Aaron Dummer [Sun, 2 Sep 2012 22:35:38 +0000 (15:35 -0700)] 
updateObject() - reference table as Object instead of RackObject when
changing the object type

7 years agoprevent duplicate object names, with some exceptions (#595)
Aaron Dummer [Sun, 2 Sep 2012 22:15:44 +0000 (15:15 -0700)] 
prevent duplicate object names, with some exceptions (#595)

7 years agoimprove renderNewSLBItemForm() (#403)
Hannes Georg [Sun, 2 Sep 2012 13:42:01 +0000 (17:42 +0400)] 
improve renderNewSLBItemForm() (#403)

This fixes a case of rendering an SLB management form which would never
work due to missing parameter(s). The new SLB item form now gives a
notice when one of the realms is emtpy.

7 years agoissue #593 belongs to 0.19.14
Denis Ovsienko [Sun, 2 Sep 2012 12:28:48 +0000 (16:28 +0400)] 
issue #593 belongs to 0.19.14

7 years ago$iftable_processors: change labels of some generic gigabit ports
Aaron Dummer [Sat, 1 Sep 2012 22:22:18 +0000 (15:22 -0700)] 
$iftable_processors: change labels of some generic gigabit ports

7 years agoadd SNMP support for Cisco 300 switches (#594)
Aaron Dummer [Sat, 1 Sep 2012 21:52:42 +0000 (14:52 -0700)] 
add SNMP support for Cisco 300 switches (#594)

7 years agorefresh some port/VLAN parsing code
Denis Ovsienko [Fri, 31 Aug 2012 08:48:24 +0000 (12:48 +0400)] 
refresh some port/VLAN parsing code

7 years agobugfix: IPv4 space exceptions (#591)
Alexey Andriyanov [Wed, 29 Aug 2012 08:15:59 +0000 (12:15 +0400)] 
bugfix: IPv4 space exceptions (#591)

IPNetworkCmp relied on strcmp() returned only -1, 0, 1, which is
not true on some PHP installations.

7 years agoupdate Dictionary unique constraint (#593)
Denis Ovsienko [Sun, 26 Aug 2012 16:09:19 +0000 (20:09 +0400)] 
update Dictionary unique constraint (#593)

Extend Dictionary table with "dict_sticky" column to enable telling
system records from user's records at SQL level, not only at application
level. Redo the UNIQUE constraint to allow for duplicates across these
two groups (but not within). Employ "fix_argname" in two opspec
structures to make system rows protection stronger.

7 years agoreplace 9 ophandlers with opspec entries
Denis Ovsienko [Sun, 26 Aug 2012 16:05:55 +0000 (20:05 +0400)] 
replace 9 ophandlers with opspec entries

Each of the following functions basically stood for a single SQL command
and is now replaced with an opspec structure:

* updateDictionary()
* updateChapter() (w/fix_argname)
* delChapter() (w/fix_argname)
* useupPort() (w/fix_argname)
* linkEntities()
* unlinkEntities()
* destroyVLANDomain()
* addVLANSwitchTemplate()
* delVLANSwitchTemplate()

7 years agointroduce "fix_argname" type of opspec column
Denis Ovsienko [Sun, 26 Aug 2012 16:01:27 +0000 (20:01 +0400)] 
introduce "fix_argname" type of opspec column

Update buildOpspecColumns() to work with just one list of columns, not
an array of lists. Add support for 'fix_argname' type of column and some
error detection. Update tableHandler() to use buildOpspecColumns()
without any intermediate variables.

The new column type stands for an arbitrary constant instead of the
user's HTTP input.

7 years agosplit tableHandler() into two functions
Denis Ovsienko [Sun, 26 Aug 2012 15:58:41 +0000 (19:58 +0400)] 
split tableHandler() into two functions

New buildOpspecColumns() function incorporates the user input validation
code. Its coupling with tableHandler(), which is now focused on SQL
proxying, improves detection of opspec structure errors.

7 years agorenderEditObjectForm(): use the hidden num_attrs element, even if no
Aaron Dummer [Sat, 25 Aug 2012 23:16:29 +0000 (16:16 -0700)] 
renderEditObjectForm(): use the hidden num_attrs element, even if no
attributes exist, otherwise an exception is thrown when trying to
update attribute-less objects

7 years agofix undefined index error related to #562
Aaron Dummer [Sat, 25 Aug 2012 18:33:23 +0000 (11:33 -0700)] 
fix undefined index error related to #562

7 years agobugfix: PHP notice in port linker popup
Alexey Andriyanov [Fri, 24 Aug 2012 19:42:48 +0000 (23:42 +0400)] 
bugfix: PHP notice in port linker popup

7 years agoremoved unused func linkPortForObject
Alexey Andriyanov [Fri, 24 Aug 2012 19:36:01 +0000 (23:36 +0400)] 
removed unused func linkPortForObject

7 years agobugfix: Messages from popups were not displayed
Alexey Andriyanov [Fri, 24 Aug 2012 19:00:20 +0000 (23:00 +0400)] 
bugfix: Messages from popups were not displayed

+ backupLogMessages
redirectUser: use new backupLogMessages
handlePopupPortLink: save log messages

7 years agoadd tags to .gitignore
Alexey Andriyanov [Fri, 24 Aug 2012 18:50:16 +0000 (22:50 +0400)] 
add tags to .gitignore

7 years agoimprove Arista SNMP support
Denis Ovsienko [Fri, 24 Aug 2012 17:13:41 +0000 (21:13 +0400)] 
improve Arista SNMP support

This change adds a template for DCS-7048T-A and detection of software
type and version. Port labeling is adjusted to the one seen on device.

7 years agoadd some recent Huawei switch models
Denis Ovsienko [Fri, 24 Aug 2012 15:13:29 +0000 (19:13 +0400)] 
add some recent Huawei switch models

7 years agofix a few issues with address comment field
Denis Ovsienko [Fri, 24 Aug 2012 14:05:35 +0000 (18:05 +0400)] 
fix a few issues with address comment field

* renderIPAddressProperties(): add missing parameter to HTML form to fix
  "clear" button, which was broken
* updateAddress(): place comment argument last to make the function
  backwards compatible for 3rd-party scripts that did not catch up with
  the recent prototype change
* updateIPNameAJAX(): update respectively
* updateIPCommentAJAX(): idem
* editAddress(): idem

7 years agoadd an IOS XR release
Denis Ovsienko [Thu, 23 Aug 2012 11:45:27 +0000 (15:45 +0400)] 
add an IOS XR release

7 years agoadd some Cisco UCS hardware entries
Denis Ovsienko [Wed, 22 Aug 2012 20:54:40 +0000 (00:54 +0400)] 
add some Cisco UCS hardware entries

(contributed by Jeff Silberman)

7 years agoupdate AttributeValue SQL indices
Denis Ovsienko [Wed, 22 Aug 2012 15:53:57 +0000 (19:53 +0400)] 
update AttributeValue SQL indices

This implements the changes suggested by Hannes Georg in issue 586.

Conflicts:

wwwroot/inc/upgrade.php

7 years ago802.1Q: update for VRP 100-TX interfaces
Denis Ovsienko [Wed, 22 Aug 2012 13:09:09 +0000 (17:09 +0400)] 
802.1Q: update for VRP 100-TX interfaces

7 years agoSNMP: list Quidway S2352P-EI
Denis Ovsienko [Tue, 21 Aug 2012 17:52:15 +0000 (21:52 +0400)] 
SNMP: list Quidway S2352P-EI

7 years agoupdate server OS entries
Denis Ovsienko [Tue, 21 Aug 2012 17:18:39 +0000 (21:18 +0400)] 
update server OS entries

7 years agoignore .project file from eclipse
Aaron Dummer [Sat, 21 Jul 2012 17:49:33 +0000 (10:49 -0700)] 
ignore .project file from eclipse

7 years agoadd .gitignore
Denis Ovsienko [Thu, 19 Jul 2012 20:23:45 +0000 (00:23 +0400)] 
add .gitignore

7 years agoLLDP: proper handling of Juniper MX neighbors
Alexey Andriyanov [Fri, 17 Aug 2012 18:49:19 +0000 (22:49 +0400)] 
LLDP: proper handling of Juniper MX neighbors

This fix applies to Huawei VRP and NX-OS-devices only

changed functions:
vrp5xReadLLDPStatus
nxos4ReadLLDPStatus

7 years agoupdate ios12ShortenIfName() for LRE (#589)
Denis Ovsienko [Tue, 14 Aug 2012 10:54:08 +0000 (14:54 +0400)] 
update ios12ShortenIfName() for LRE (#589)

7 years agonew config var SEARCH_DOMAINS
Alexey Andriyanov [Thu, 9 Aug 2012 11:59:41 +0000 (15:59 +0400)] 
new config var SEARCH_DOMAINS

It is used to control the FQDN-search feature introduced by 0.19.3

searchEntitiesByText was changed

8 years agoadded jQuery.UI theme (redmond)
Alexey Andriyanov [Mon, 6 Aug 2012 11:34:42 +0000 (15:34 +0400)] 
added jQuery.UI theme (redmond)

includeJQueryUI: new function to include jQuery.UI lib
renderRackSortForm: use includeJQueryUI

showPathAndSearch: dynamic_title_decoder became a hook
getTitle: idem

8 years agolist more Arista switches
Denis Ovsienko [Mon, 6 Aug 2012 08:21:30 +0000 (12:21 +0400)] 
list more Arista switches

8 years agoMerge branch 'master' of github.com:RackTables/racktables
Alexey Andriyanov [Fri, 3 Aug 2012 08:07:17 +0000 (12:07 +0400)] 
Merge branch 'master' of github.com:RackTables/racktables

8 years agobugfix: clicks in sticked popups were blocked
Alexey Andriyanov [Fri, 3 Aug 2012 07:59:58 +0000 (11:59 +0400)] 
bugfix: clicks in sticked popups were blocked

For expample, if the sticked pop-up div contained <a> link, user was not
able to click on it

8 years agoadded pencil to $image array
Alexey Andriyanov [Fri, 3 Aug 2012 07:59:16 +0000 (11:59 +0400)] 
added pencil to $image array