racktables-incomplete-works
6 years agobugfix: Native vlan on Huawei trunk ports no longer gets to the allowed vlans list
xornet [Tue, 13 May 2014 11:19:32 +0000 (15:19 +0400)] 
bugfix: Native vlan on Huawei trunk ports no longer gets to the allowed vlans list

6 years agoupdate 1000Base-LX10 and add 1000Base-EX
Denis Ovsienko [Tue, 13 May 2014 12:00:34 +0000 (16:00 +0400)] 
update 1000Base-LX10 and add 1000Base-EX

6 years agoreplace addIIFOIFCompat() with tableHandler()
Denis Ovsienko [Sat, 10 May 2014 18:21:10 +0000 (22:21 +0400)] 
replace addIIFOIFCompat() with tableHandler()

6 years agoadd more 40G and 100G standards
Denis Ovsienko [Sat, 10 May 2014 18:12:09 +0000 (22:12 +0400)] 
add more 40G and 100G standards

6 years agosimplify argument of getPortIIFStats()
Denis Ovsienko [Sat, 10 May 2014 17:27:12 +0000 (21:27 +0400)] 
simplify argument of getPortIIFStats()

The wrapping array was of no use.

6 years agoadjust TD alignment in dictionary chapter tables
Denis Ovsienko [Sat, 10 May 2014 17:05:03 +0000 (21:05 +0400)] 
adjust TD alignment in dictionary chapter tables

Integers in a column read better aligned to the right.

6 years agomove port OIFs from dictionary to a separate table
Denis Ovsienko [Sat, 10 May 2014 13:25:56 +0000 (17:25 +0400)] 
move port OIFs from dictionary to a separate table

Port outer interfaces don't actually belong to the dictionary, the
reason for keeping that data there was to reuse the infrastructure.
However, with tableHandler() implemented that becomes less important
than missing foreign keys.

This change removes dictionary chapter 2, moves the outer interfaces
rows to a table of their own, much like the inner interfaces, and adds 3
new foreign keys that reference the new table.

* fetchPortList(): fetch data from PortOuterInterface instead of
  Dictionary
* getPortOIFCompat(): idem
* getPortInterfaceCompat(): idem
* getExistingPortTypeOptions(): idem
* getPortOIFOptions(): idem
* getPortIIFStats(): idem
* renderDataIntegrityReport(): idem and remove checks that duplicate the
  new foreign keys and update the foreign keys list
* getChapterRefc(): move POI-specific query to a new function
* getPortOIFRefc(): the new function
* dictionary.php: remove the contents of chapter 2
* functions.php: remove CHAP_PORTTYPE constant
* install.php: make the changes to schema
* upgrade.php: idem and add a section for 0.20.8
* renderPortOIFViewer(): new function
* renderPortOIFEditor(): new function
* navigation.php: register new page for POI management
* ophandlers.php: update $opspec_list for PortOuterInterface

6 years agoupdate comment for git instead of Subversion
Denis Ovsienko [Fri, 9 May 2014 20:37:58 +0000 (00:37 +0400)] 
update comment for git instead of Subversion

6 years agoadjust icons in renderEditAttributesForm()
Denis Ovsienko [Fri, 9 May 2014 11:31:50 +0000 (15:31 +0400)] 
adjust icons in renderEditAttributesForm()

6 years agointroduce getPortOIFOptions()
Denis Ovsienko [Thu, 8 May 2014 16:59:16 +0000 (20:59 +0400)] 
introduce getPortOIFOptions()

* getPortOIFOptions(): new function, although just a wrapper for
  readChapter() right now
* renderOIFCompatEditor(): update
* renderAutoPortsForm(): update
* renderIIFOIFCompatEditor(): update

6 years agotrim argument of l2addressForDatabase() (#1215)
Denis Ovsienko [Thu, 8 May 2014 12:01:38 +0000 (16:01 +0400)] 
trim argument of l2addressForDatabase() (#1215)

6 years agoupdate copyright years
Denis Ovsienko [Tue, 6 May 2014 19:01:57 +0000 (23:01 +0400)] 
update copyright years

6 years agoimprove handling of image generation errors
Denis Ovsienko [Tue, 6 May 2014 07:43:37 +0000 (11:43 +0400)] 
improve handling of image generation errors

Adjust the code flow to make the right use of exceptions: whether there
is an image generation error, instead of deciding what to do define
exactly what happened and leave the actions up to the exception handler.

* exceptions.php: introduce RTImageError exception class, make the
  inline images constants and add new images
* index.php: make sure an image exception is always an RTImageError
* renderErrorImage(): deprecate
* renderAccessDeniedImage(): deprecate
* renderProgressBarError(): deprecate
* castRackImageException(): new function, an exception class convertor
* createTrueColorOrThrow(): new function, a PHP-GD error detector
* dispatchImageRequest(): don't do any local dispatching, convert
  exceptions to RTImageError where it makes sense
* printRackThumbImage(): use createTrueColorOrThrow()
* renderProgressBarImage(): ditto, throw only RTImageError
* renderProgressBar4Image(): ditto

6 years agoadd .gitattributes for git-archive
Denis Ovsienko [Mon, 5 May 2014 13:18:00 +0000 (17:18 +0400)] 
add .gitattributes for git-archive

6 years agoadd some Dell switches
Denis Ovsienko [Mon, 5 May 2014 13:17:47 +0000 (17:17 +0400)] 
add some Dell switches

6 years agojustify page title handling
Denis Ovsienko [Mon, 5 May 2014 13:14:56 +0000 (17:14 +0400)] 
justify page title handling

getTitle(): deprecate
getPageName(): make use of niftyString()
showPathAndSearch(): idem

6 years agoMerge pull request #62 from 00willo/dict-patch1
adoom42 [Sun, 4 May 2014 16:40:39 +0000 (09:40 -0700)] 
Merge pull request #62 from 00willo/dict-patch1

Add items to dictionary

6 years agoFixed indent and id number
Graham Williamson [Sun, 4 May 2014 10:02:59 +0000 (20:02 +1000)] 
Fixed indent and id number

6 years agoAdd items to dictionary
Graham Williamson [Thu, 1 May 2014 05:32:17 +0000 (15:32 +1000)] 
Add items to dictionary

6 years agoupdate Juniper EX switches in dictionary
Graham Williamson [Fri, 25 Apr 2014 13:04:56 +0000 (17:04 +0400)] 
update Juniper EX switches in dictionary

Added some missing Juniper EX4200 series switches to dictionary. Removed
space in model entity from existing EX series switches IAW Juniper's
naming standard.

6 years agoUpdate dictionary.php
Ray Robertson [Wed, 23 Apr 2014 09:44:56 +0000 (10:44 +0100)] 
Update dictionary.php

6 years agoexplicitly require PHP version 5.3.0 or newer
Aaron Dummer [Mon, 21 Apr 2014 16:33:04 +0000 (09:33 -0700)] 
explicitly require PHP version 5.3.0 or newer

string_insert_hrefs: return to use of anonymous function

6 years agoMerge branch 'fixes-0.20.x'
Alexey Andriyanov [Sun, 20 Apr 2014 09:32:06 +0000 (13:32 +0400)] 
Merge branch 'fixes-0.20.x'

Conflicts:
ChangeLog

6 years agostring_insert_hrefs: fix PHP<5.3.0 incompatibility
Alexey Andriyanov [Sun, 20 Apr 2014 08:26:00 +0000 (12:26 +0400)] 
string_insert_hrefs: fix PHP<5.3.0 incompatibility

this fixes the #1195 issue

6 years agobugfix: renderCellList: $celllist was ignored
Alexey Andriyanov [Sun, 20 Apr 2014 08:06:06 +0000 (12:06 +0400)] 
bugfix: renderCellList: $celllist was ignored

6 years agoUpdate README with nginx and php5-fpm conf
Michał Sochoń [Mon, 31 Mar 2014 18:13:03 +0000 (20:13 +0200)] 
Update README with nginx and php5-fpm conf

I've been using Debian 7 and nginx + php5-fpm since December 2013 and
haven't noticed any issues.

The only thing that has noticeable impact is php scipt caching on nginx
side, but then admin makes it on purpose. By default this feature is not
enabled, but I've decided to add some info about it.

Added extra info for server_name variable for nginx, apparently this
surfaced after update from 0.20.6 to 0.20.7.

6 years agofinalize the previous change
Denis Ovsienko [Tue, 1 Apr 2014 06:24:35 +0000 (10:24 +0400)] 
finalize the previous change

6 years agoUpdate auth.php with LDAP option to specify port
Michał Sochoń [Mon, 31 Mar 2014 19:00:19 +0000 (21:00 +0200)] 
Update auth.php with LDAP option to specify port

We use Zentyal which used different port for LDAP read only queries, by default on port 390.

Below example configrarion, hope someone will find it helpful someday. Remember to adjust to your needs.

$LDAP_options = array
(
'server' => 'zentyal-dc.example.com',
'port' => 390,
'domain' => '',
'search_attr' => 'uid',
'search_dn' => 'dc=dir,dc=example,dc=com',
 // The following credentials will be used when searching for the user's DN:
'search_bind_rdn' => 'cn=zentyalro,dc=dir,dc=xstream,dc=dk',
'search_bind_password' => 'enter_pass_here',
'displayname_attrs' => 'cn',
'options' => array (LDAP_OPT_PROTOCOL_VERSION => 3),
'use_tls' => 0,         // 0 == don't attempt, 1 == attempt, 2 == require
);

6 years agoFix UI reset after MGMT_PROTOS change in 0.20.6
Alex Brett [Fri, 28 Mar 2014 12:43:39 +0000 (12:43 +0000)] 
Fix UI reset after MGMT_PROTOS change in 0.20.6

In 0.20.6 TELNET_OBJS_LISTSRC, SSH_OBJS_LISTSRC, and RDP_OBJS_LISTSRC
were replaced with a single MGMT_PROTOS option, but the UI reset code
was not updated and so still attempted to reset the objects which no
longer existed...

6 years agoimprove previous commit: also fix locations
Denis Ovsienko [Wed, 26 Mar 2014 13:28:00 +0000 (17:28 +0400)] 
improve previous commit: also fix locations

6 years agobugfix: properly format comment text for racks
Denis Ovsienko [Wed, 26 Mar 2014 13:05:54 +0000 (17:05 +0400)] 
bugfix: properly format comment text for racks

renderRackInfoPortlet(): print [multi-line] comment inside respective
  DIV, not as plain text.

6 years agoomit password hash values from HTML
Denis Ovsienko [Thu, 20 Mar 2014 14:10:23 +0000 (18:10 +0400)] 
omit password hash values from HTML

The local user accounts management form used to use password hash value
to indicate that there is no change to the password. Stephan Rickauer
points that exposing the hash value isn't good with the rainbow tables
attack in mind. Use an empty string for that purpose instead.

* renderUserListEditor()
* updateUser()

6 years agoshortenIfName: don't lowercase "AC-in" port
Alexey Andriyanov [Tue, 4 Mar 2014 14:08:09 +0000 (18:08 +0400)] 
shortenIfName: don't lowercase "AC-in" port

6 years agoincrease wrt_vlans field length in DB VST rule
Alexey Andriyanov [Sun, 20 Apr 2014 08:41:55 +0000 (12:41 +0400)] 
increase wrt_vlans field length in DB VST rule

There could be a VLAN list longer than 255 characters
in some environments.

6 years agonew {$client_x.x.x.x} auto tag
Alexey Andriyanov [Sun, 20 Apr 2014 07:59:59 +0000 (11:59 +0400)] 
new {$client_x.x.x.x} auto tag

6 years agoUpdate README with nginx and php5-fpm conf
Michał Sochoń [Mon, 31 Mar 2014 18:13:03 +0000 (20:13 +0200)] 
Update README with nginx and php5-fpm conf

I've been using Debian 7 and nginx + php5-fpm since December 2013 and
haven't noticed any issues.

The only thing that has noticeable impact is php scipt caching on nginx
side, but then admin makes it on purpose. By default this feature is not
enabled, but I've decided to add some info about it.

Added extra info for server_name variable for nginx, apparently this
surfaced after update from 0.20.6 to 0.20.7.

6 years agofinalize the previous change
Denis Ovsienko [Tue, 1 Apr 2014 06:24:35 +0000 (10:24 +0400)] 
finalize the previous change

6 years agoUpdate auth.php with LDAP option to specify port
Michał Sochoń [Mon, 31 Mar 2014 19:00:19 +0000 (21:00 +0200)] 
Update auth.php with LDAP option to specify port

We use Zentyal which used different port for LDAP read only queries, by default on port 390.

Below example configrarion, hope someone will find it helpful someday. Remember to adjust to your needs.

$LDAP_options = array
(
'server' => 'zentyal-dc.example.com',
'port' => 390,
'domain' => '',
'search_attr' => 'uid',
'search_dn' => 'dc=dir,dc=example,dc=com',
 // The following credentials will be used when searching for the user's DN:
'search_bind_rdn' => 'cn=zentyalro,dc=dir,dc=xstream,dc=dk',
'search_bind_password' => 'enter_pass_here',
'displayname_attrs' => 'cn',
'options' => array (LDAP_OPT_PROTOCOL_VERSION => 3),
'use_tls' => 0,         // 0 == don't attempt, 1 == attempt, 2 == require
);

6 years agoFix UI reset after MGMT_PROTOS change in 0.20.6
Alex Brett [Fri, 28 Mar 2014 12:43:39 +0000 (12:43 +0000)] 
Fix UI reset after MGMT_PROTOS change in 0.20.6

In 0.20.6 TELNET_OBJS_LISTSRC, SSH_OBJS_LISTSRC, and RDP_OBJS_LISTSRC
were replaced with a single MGMT_PROTOS option, but the UI reset code
was not updated and so still attempted to reset the objects which no
longer existed...

6 years agoimprove previous commit: also fix locations
Denis Ovsienko [Wed, 26 Mar 2014 13:28:00 +0000 (17:28 +0400)] 
improve previous commit: also fix locations

6 years agobugfix: properly format comment text for racks
Denis Ovsienko [Wed, 26 Mar 2014 13:05:54 +0000 (17:05 +0400)] 
bugfix: properly format comment text for racks

renderRackInfoPortlet(): print [multi-line] comment inside respective
  DIV, not as plain text.

6 years agoadd a couple new Pica8 switches
Denis Ovsienko [Tue, 25 Mar 2014 13:35:01 +0000 (17:35 +0400)] 
add a couple new Pica8 switches

6 years agoomit password hash values from HTML
Denis Ovsienko [Thu, 20 Mar 2014 14:10:23 +0000 (18:10 +0400)] 
omit password hash values from HTML

The local user accounts management form used to use password hash value
to indicate that there is no change to the password. Stephan Rickauer
points that exposing the hash value isn't good with the rainbow tables
attack in mind. Use an empty string for that purpose instead.

* renderUserListEditor()
* updateUser()

6 years agocallScript: wrong exit code bugfix
Alexey Andriyanov [Thu, 6 Mar 2014 18:01:46 +0000 (22:01 +0400)] 
callScript: wrong exit code bugfix

6 years agoAPI to retrieve the newly created entity ID
Alexey Andriyanov [Thu, 6 Mar 2014 16:40:28 +0000 (20:40 +0400)] 
API to retrieve the newly created entity ID

When you implement a plugin that need to process the newly created
entity (by chaining after the original ophandler), you need to know the
entity id. lastInsertID() is not a choise since there may be multiple
inserts to different tables in the original ophandler.

lastCreated: new function to track or return the last created IDs
getLastCreatedId: wrapper around lastCreated(), filtering the last
created ID of a given realm.

these functions changed to call lastCreated():
commitAddObject
commitAddPort
commitCreateUserAccount
createIPv4Prefix
createIPv6Prefix
addVService
addVSG
createVLANDomain
addRStoRSPool
commitCreateRSPool
tableHandler

6 years agocallScript: export child resourse via global var
Alexey Andriyanov [Thu, 6 Mar 2014 16:31:43 +0000 (20:31 +0400)] 
callScript: export child resourse via global var

The proc_open resulting resource may be needed outside the callScript()
function if a user has signal handlers. E.g., a user may want to limit
the execution time of a gateway scipt using the pcntl_alarm(). In that
case the child process may need to be terminated explicitly using the
$script_child_res global resource.

6 years agoMerge branch 'syncdomain'
Alexey Andriyanov [Tue, 4 Mar 2014 14:22:32 +0000 (18:22 +0400)] 
Merge branch 'syncdomain'

6 years agoSNMP support for Cisco 2960X-24PS-L, 2960X-24PD-L
Alexey Andriyanov [Tue, 4 Mar 2014 14:16:54 +0000 (18:16 +0400)] 
SNMP support for Cisco 2960X-24PS-L, 2960X-24PD-L

6 years agoshortenIfName: don't lowercase "AC-in" port
Alexey Andriyanov [Tue, 4 Mar 2014 14:08:09 +0000 (18:08 +0400)] 
shortenIfName: don't lowercase "AC-in" port

6 years ago0.20.7: cut the release
Alexey Andriyanov [Mon, 3 Mar 2014 13:14:14 +0000 (17:14 +0400)] 
0.20.7: cut the release

6 years agosyncdomain: use flock, not file existence
Alexey Andriyanov [Sun, 2 Mar 2014 14:28:06 +0000 (18:28 +0400)] 
syncdomain: use flock, not file existence

There were cases when syncdomain was terminated abnormally, keeping the
lock file existing. After that the syncdomain was not able to resume
until the lockfile was deleted.

This patch uses flock(), adds ability to disable locking logic
(--nolock), and to print significant errors to the STDERR (--stderr) to inform
sysadmin using mail.

6 years agoadd Cisco Wireless Controller
Aleksandr Balezin [Thu, 27 Feb 2014 17:09:47 +0000 (21:09 +0400)] 
add Cisco Wireless Controller

6 years agomention the minimum PHP version in release notes
Denis Ovsienko [Thu, 27 Feb 2014 14:12:36 +0000 (18:12 +0400)] 
mention the minimum PHP version in release notes

6 years agoadd CentOS 5 notes to README
Denis Ovsienko [Thu, 27 Feb 2014 14:00:53 +0000 (18:00 +0400)] 
add CentOS 5 notes to README

6 years agouse array_fetch() in doSwitchSNMPmining()
Denis Ovsienko [Wed, 26 Feb 2014 05:27:30 +0000 (09:27 +0400)] 
use array_fetch() in doSwitchSNMPmining()

6 years agofix Cisco 6509-VE blade orientation (#985)
Aaron Dummer [Tue, 25 Feb 2014 19:18:18 +0000 (11:18 -0800)] 
fix Cisco 6509-VE blade orientation (#985)

6 years agofix some F5 dictionary entries (#987)
Aaron Dummer [Tue, 25 Feb 2014 18:42:45 +0000 (10:42 -0800)] 
fix some F5 dictionary entries (#987)

6 years agoleave secret.php in a safer state upon install
Denis Ovsienko [Tue, 25 Feb 2014 13:21:45 +0000 (17:21 +0400)] 
leave secret.php in a safer state upon install

Force secret.php to be not writable by httpd after it has been written
by the RackTables installer.

6 years agoget_pseudo_file(): use for(), not hardcoding
Denis Ovsienko [Mon, 24 Feb 2014 12:16:34 +0000 (16:16 +0400)] 
get_pseudo_file(): use for(), not hardcoding

6 years agorequire PHP version 5.2.10 or newer
Denis Ovsienko [Mon, 24 Feb 2014 11:41:59 +0000 (15:41 +0400)] 
require PHP version 5.2.10 or newer

PHP releases prior to 5.2.10 (18 June 2009) suffered a bug in ip2long()
(see RackTables bug #1139 and PHP bug #47365), which was fixed in later
releases. Guard the user from triggering it again.

6 years agoapply RackTables-specific changes to CodeMirror
Denis Ovsienko [Wed, 4 Dec 2013 10:30:06 +0000 (14:30 +0400)] 
apply RackTables-specific changes to CodeMirror

6 years agoupgrade CodeMirror from 3.20 to 3.22
Denis Ovsienko [Mon, 24 Feb 2014 08:11:28 +0000 (12:11 +0400)] 
upgrade CodeMirror from 3.20 to 3.22

6 years agorevert to pristine CodeMirror-3.20
Denis Ovsienko [Wed, 4 Dec 2013 10:26:40 +0000 (14:26 +0400)] 
revert to pristine CodeMirror-3.20

6 years agodictionary: list RHEL version 7 (#1177)
Denis Ovsienko [Sat, 22 Feb 2014 20:54:40 +0000 (00:54 +0400)] 
dictionary: list RHEL version 7 (#1177)

6 years agodictionary item for Cisco IOS 15.2
Alexey Andriyanov [Tue, 18 Feb 2014 15:32:49 +0000 (19:32 +0400)] 
dictionary item for Cisco IOS 15.2

6 years agofix copy-paste bugs in some ophandlers
Alexey Andriyanov [Tue, 18 Feb 2014 13:02:10 +0000 (17:02 +0400)] 
fix copy-paste bugs in some ophandlers

updateFile: fix PHP notice for undefined variable
updIPv4RSP: vsconfig was lost when saving

6 years agogetRenderedIPv4NetCapacity: missing key access fix
Alexey Andriyanov [Tue, 18 Feb 2014 12:57:51 +0000 (16:57 +0400)] 
getRenderedIPv4NetCapacity: missing key access fix

missing key dereference was performed when displaying usage for
unallocated IPv4 space

6 years agoqueryLDAPServer: suppress possible PHP notice
Alexey Andriyanov [Tue, 18 Feb 2014 12:57:12 +0000 (16:57 +0400)] 
queryLDAPServer: suppress possible PHP notice

6 years agovrpReadLLDPStatus: vrp85 was not working
Alexey Andriyanov [Fri, 14 Feb 2014 15:19:12 +0000 (19:19 +0400)] 
vrpReadLLDPStatus: vrp85 was not working

Huawei VRP 8.5 has different Port ID type values. Extend the $valid_subtypes
array and also the extracting regexp.

Do trim of every extracted string, because the values have spaces in trail.

6 years agonew dictionary item Cisco 2960X*
Alexey Andriyanov [Mon, 10 Feb 2014 14:01:39 +0000 (18:01 +0400)] 
new dictionary item Cisco 2960X*

6 years agoisInnoDBSupported: fix failed upgrade reentrance
Alexey Andriyanov [Mon, 10 Feb 2014 13:42:32 +0000 (17:42 +0400)] 
isInnoDBSupported: fix failed upgrade reentrance

If the upgrade script failes on creating a trigger
because of binary logging is turned on, it keeps the innodb_test table,
preventing further calls of isInnoDBSupported().

6 years agoFix for http://bugs.racktables.org/view.php?id=837
Thomas Uhde [Tue, 3 Sep 2013 09:49:44 +0000 (11:49 +0200)] 
Fix for http://bugs.racktables.org/view.php?id=837

Bug #837 describes wrong sort-order for objects with polish characters. This should be fixed by using "collate utf8_unicode_ci" on all tables explicitly.

6 years agodisplay rack power consumption (#701)
Alexey Andriyanov [Mon, 10 Feb 2014 10:57:37 +0000 (14:57 +0400)] 
display rack power consumption (#701)

populateRackPower: function that alters $summary
renderRackInfoPortlet: call populateRackPower()

6 years agobugfix: include Zero-U into ['mountedObjects']
Alexey Andriyanov [Mon, 10 Feb 2014 10:53:37 +0000 (14:53 +0400)] 
bugfix: include Zero-U into ['mountedObjects']

amplifyCell: Zero-U-mounted objects were not counted in rack summary

6 years agobutton to fix non-canonical port names (#827)
Alexey Andriyanov [Mon, 10 Feb 2014 09:25:31 +0000 (13:25 +0400)] 
button to fix non-canonical port names (#827)

shortenPortName: a caching wrapper around detectDeviceBreed and shortenIfName
renderObjectPortRow: highlight port name with yellow if it's name is not canonical
renderPortsForObject: idem, display rename link
renameObjectPorts: new ophandler

6 years agospare IPv6 prefixes are limited to nibble boundary
Alexey Andriyanov [Fri, 7 Feb 2014 12:50:44 +0000 (16:50 +0400)] 
spare IPv6 prefixes are limited to nibble boundary

splitNetworkByMask: new library function
iptree_fill: use net's pre-calculated ['spare_ranges'] array
iptree_construct: removed
iptree_embed: removed

6 years agoMerge pull request #54 from gescheit/master
Alexey Andriyanov [Thu, 6 Feb 2014 06:36:55 +0000 (09:36 +0300)] 
Merge pull request #54 from gescheit/master

bugfix: remove class only if tagInput defined

6 years agobugfix: remove class only if tagInput defined
Aleksandr Balezin [Wed, 5 Feb 2014 15:07:38 +0000 (19:07 +0400)] 
bugfix: remove class only if tagInput defined

tagInput variable not used inside forms of single input, only in forms
of multiple select

6 years agoadd dictionary entries
Aaron Dummer [Sat, 1 Feb 2014 21:28:00 +0000 (13:28 -0800)] 
add dictionary entries

6 years agoadd SNMP support for J8692A (#1143)
Aaron Dummer [Sat, 1 Feb 2014 18:49:24 +0000 (10:49 -0800)] 
add SNMP support for J8692A (#1143)

6 years agoadd SNMP support for J9146A (#1143)
Aaron Dummer [Sat, 1 Feb 2014 18:39:50 +0000 (10:39 -0800)] 
add SNMP support for J9146A (#1143)

6 years agoSLB fix: RS server's rsport field was lost
Alexey Andriyanov [Tue, 28 Jan 2014 13:25:04 +0000 (17:25 +0400)] 
SLB fix: RS server's rsport field was lost

generateVSSection changed

6 years agofix ip4_parse, ip6_parse
Alexey Andriyanov [Tue, 28 Jan 2014 09:34:30 +0000 (13:34 +0400)] 
fix ip4_parse, ip6_parse

If inet_pton() supports IPv6, it is possible that ip4_parse('::')
will return 16-byte binary address.

6 years agonew 'point2point' IP alloc type
Alexey Andriyanov [Mon, 27 Jan 2014 15:58:43 +0000 (19:58 +0400)] 
new 'point2point' IP alloc type

genericAssertion: new array item 'point2point'
markupIPAddrList: idem
getPtPNeighbors: call to search for ptp peers in the network's addrlist
getRenderedAlloc: display peers near the ptp-typed allocations

6 years agonew library call makeIPAllocLink()
Alexey Andriyanov [Mon, 27 Jan 2014 15:54:48 +0000 (19:54 +0400)] 
new library call makeIPAllocLink()

getRenderedAlloc: use getRenderedAlloc
renderIPv4NetworkAddresses: idem
renderIPv6NetworkAddresses: idem
renderIPAddress: idem
renderIPAddressAllocations: idem

6 years agoclarify object's IP allocations rendering
Alexey Andriyanov [Mon, 27 Jan 2014 15:50:55 +0000 (19:50 +0400)] 
clarify object's IP allocations rendering

'aac' global, '.aac' css class renamed to 'aac-right'
'aac2' global renamed to 'aac-left', corresponding css class created
getRenderedAlloc: fix missing <td> tag in 'td_routed_by' field
renderObject: align th labels by left side
renderFile: remove unused global declarations

6 years agobugfix: is_inet_avail() was broken
Alexey Andriyanov [Mon, 27 Jan 2014 05:14:30 +0000 (09:14 +0400)] 
bugfix: is_inet_avail() was broken

is_inet_avail: fixed and made IPv4-scoped function
is_inet6_avail: split from is_inet_avail, checks for IPv6 support
ip6_format: use is_inet6_avail
ip6_parse: idem
ip_parse: do colon lookup first. Than call ip[46]_parse unconditionally

6 years agobugfix: wrong port order
Alexey Andriyanov [Tue, 21 Jan 2014 13:49:10 +0000 (17:49 +0400)] 
bugfix: wrong port order

compareDecomposedPortNames fixed (see cfb315)

6 years agobugfix: switches stucked in 'disabled' queue
Alexey Andriyanov [Tue, 21 Jan 2014 10:29:29 +0000 (14:29 +0400)] 
bugfix: switches stucked in 'disabled' queue

one of the previous commits broke the queue transition logic in syncdomain.php
Once the switch entered the 'disabled' state, it had no chance to return back
into 'noerror'.

This change fixes the issue

6 years agorenderInterfaceHTML: utilize invalid credentials in the logout link to nullify HTTP...
Aaron Dummer [Sat, 18 Jan 2014 23:17:57 +0000 (15:17 -0800)] 
renderInterfaceHTML: utilize invalid credentials in the logout link to nullify HTTP basic authentication (#1129)

6 years agoallow Rows to have attributes (#1133)
Aaron Dummer [Sat, 18 Jan 2014 19:44:32 +0000 (11:44 -0800)] 
allow Rows to have attributes (#1133)

renderRow: display attributes
renderEditRowForm: new function
renderEditAttrMapForm: stop excluding Rows
updateRow: update attributes

6 years agorenderDepot: objects with problems are colored red (#1137)
Aaron Dummer [Sat, 18 Jan 2014 18:43:31 +0000 (10:43 -0800)] 
renderDepot: objects with problems are colored red (#1137)

6 years agoMerge pull request #53 from gescheit/suggest
Alexey Andriyanov [Fri, 17 Jan 2014 13:46:16 +0000 (17:46 +0400)] 
Merge pull request #53 from gescheit/suggest

Added tag picker with autocompletion

6 years agotags picker: fix the A-tag's style inheriting
Alexey Andriyanov [Fri, 17 Jan 2014 13:43:13 +0000 (17:43 +0400)] 
tags picker: fix the A-tag's style inheriting

6 years agotags picker: fix dynamic CSS issue
Alexey Andriyanov [Fri, 17 Jan 2014 13:42:34 +0000 (17:42 +0400)] 
tags picker: fix dynamic CSS issue

'*' suggest used to create tons of dynamic CSS style each time the star was pressed.
Now there are predefined styles for each level up to 10. So the dynamic_style is removed.

6 years agotags picker release notes
Alexey Andriyanov [Sat, 11 Jan 2014 23:33:44 +0000 (03:33 +0400)] 
tags picker release notes

6 years agofix ponentially harmful foreach => &$ref
Alexey Andriyanov [Sat, 11 Jan 2014 19:37:15 +0000 (23:37 +0400)] 
fix ponentially harmful foreach => &$ref

fixed funcs:
printTagsPickerUl
enableTagsPicker

6 years agoserializeTags: include the tag itself into trace
Alexey Andriyanov [Sat, 11 Jan 2014 19:20:34 +0000 (23:20 +0400)] 
serializeTags: include the tag itself into trace

6 years agoremove stale comments
Denis Ovsienko [Thu, 16 Jan 2014 14:46:00 +0000 (18:46 +0400)] 
remove stale comments

6 years agojustify IAE -> IRAE conversion
Denis Ovsienko [Thu, 16 Jan 2014 14:37:32 +0000 (18:37 +0400)] 
justify IAE -> IRAE conversion

InvalidArgException: remove 3 accessor methods to stop exposing
  unnecessary details, add two class conversion methods
convertToIRAE(): reduce and deprecate
assertDateArg(): switch to InvalidArgException::newIRAE()
assertIPArg(): idem
assertIPv4Arg(): idem
assertIPv6Arg(): idem