racktables
7 weeks agoREADME.md: remove a few old Linux versions [skip ci] master
Denis Ovsienko [Wed, 28 Jul 2021 21:15:50 +0000 (22:15 +0100)] 
README.md: remove a few old Linux versions [skip ci]

2 months agogit-commit: address all remaining shellcheck warnings [skip ci]
Denis Ovsienko [Wed, 21 Jul 2021 16:13:07 +0000 (17:13 +0100)] 
git-commit: address all remaining shellcheck warnings [skip ci]

2 months agoqueryTerminal(): use working defaults for "ios15" [skip ci]
Denis Ovsienko [Sun, 18 Jul 2021 21:48:17 +0000 (22:48 +0100)] 
queryTerminal(): use working defaults for "ios15" [skip ci]

As Mark Brugnoli-Vinten points it out in Mantis#2031, ios15 has no
default prompt, and the default prompt of other Cisco breeds seems to
work, so let's set ios15 defaults in the same case block.

2 months agotests: address all remaining shellcheck warnings
Denis Ovsienko [Tue, 13 Jul 2021 19:40:25 +0000 (20:40 +0100)] 
tests: address all remaining shellcheck warnings

express_phpunit.sh:6:1: note: which is non-standard. Use builtin
'command -v' instead. [SC2230]

express_phpunit.sh:10:6: note: which is non-standard. Use builtin
'command -v' instead. [SC2230]

express_post.sh:6:1: note: which is non-standard. Use builtin 'command
-v' instead. [SC2230]

express_pre.sh:6:1: note: which is non-standard. Use builtin 'command
-v' instead. [SC2230]

express_pre.sh:19:2: warning: In POSIX sh, 'local' is undefined.
[SC2039]

express_pre.sh:32:2: warning: In POSIX sh, 'local' is undefined.
[SC2039]

express_pre.sh:33:2: warning: In POSIX sh, 'local' is undefined.
[SC2039]

express_pre.sh:34:2: warning: In POSIX sh, 'local' is undefined.
[SC2039]

2 months agoCirrus CI: use the latest release of PHPUnit 8.5.x
Denis Ovsienko [Tue, 13 Jul 2021 18:52:13 +0000 (19:52 +0100)] 
Cirrus CI: use the latest release of PHPUnit 8.5.x

2 months agofix more cases of "ROW is a keyword in MySQL 8"
Denis Ovsienko [Tue, 13 Jul 2021 18:44:37 +0000 (19:44 +0100)] 
fix more cases of "ROW is a keyword in MySQL 8"

See also commit fc92cbc.

2 months agoios15ShortenIfName_real() was broken, replace it
Denis Ovsienko [Tue, 13 Jul 2021 18:24:22 +0000 (19:24 +0100)] 
ios15ShortenIfName_real() was broken, replace it

The function was not visible from remote.php, the only file that used
it. As a follow-up to commit f0ac6f4, rewrite it to lose duplicate code
and place the new function in remote.php.

This fixes a problem reported by Mark Brugnoli-Vinten in Mantis#2029.

2 months agogit-commit: address a shellcheck warning [skip ci]
Denis Ovsienko [Fri, 9 Jul 2021 13:53:24 +0000 (14:53 +0100)] 
git-commit: address a shellcheck warning [skip ci]

SC2230: which is non-standard. Use builtin 'command -v' instead.

2 months agodictionary: add more recent OS releases [skip ci]
Denis Ovsienko [Thu, 24 Jun 2021 00:03:14 +0000 (01:03 +0100)] 
dictionary: add more recent OS releases [skip ci]

These entries address the remaining part of Mantis #2027.

3 months agodictionary: add more recent OS releases 275/head
Christian Naujoks [Thu, 17 Jun 2021 10:15:47 +0000 (12:15 +0200)] 
dictionary: add more recent OS releases

4 months agoupgrade CodeMirror from 5.59.2 to 5.61.0
Denis Ovsienko [Fri, 7 May 2021 17:57:29 +0000 (18:57 +0100)] 
upgrade CodeMirror from 5.59.2 to 5.61.0

4 months agodictionary: add more recent OS releases
Denis Ovsienko [Fri, 7 May 2021 17:51:35 +0000 (18:51 +0100)] 
dictionary: add more recent OS releases

Spell individual FreeBSD releases [again], as they happen no more often
than Fedora and Ubuntu releases, for example.

4 months agolose the README symlink
Denis Ovsienko [Fri, 30 Apr 2021 16:06:07 +0000 (17:06 +0100)] 
lose the README symlink

As far as software packaging goes, this symlink creates unnecessary
maintenance work that does not result in any meaningful gain.

5 months agoevaluate {$op_deleteObject} in the right context
Denis Ovsienko [Tue, 6 Apr 2021 13:07:39 +0000 (14:07 +0100)] 
evaluate {$op_deleteObject} in the right context

op=deleteObject used to live at depot-addmore, which resulted in
fixContext() not adding the current object into the context. Move the
operation to object-edit and fix Mantis issue #2021.

* renderEditObjectForm(): When calling getOpLink(), specify only "op"
  and leave the rest to be derived.
* deleteObject(): After deleting the object redirect to depot-addmore
  via buildRedirectURL().

7 months agodictionary: add recent NetBSD releases
Denis Ovsienko [Sun, 14 Feb 2021 20:34:59 +0000 (20:34 +0000)] 
dictionary: add recent NetBSD releases

7 months agoCI: Switch from Travis to Cirrus.
Denis Ovsienko [Fri, 12 Feb 2021 20:32:50 +0000 (20:32 +0000)] 
CI: Switch from Travis to Cirrus.

Lose PHP 7.1 and 7.3 for now and add PHP 7.0 w/o PHPUnit (along the
lines of SKIP_PHPUNIT earlier, but this time at the trailing rather than
the bleeding edge).

7 months agoTravis CI: use a random MySQL password
Denis Ovsienko [Mon, 1 Feb 2021 20:56:53 +0000 (20:56 +0000)] 
Travis CI: use a random MySQL password

7 months agoTravis CI: dismiss SKIP_PHPUNIT
Denis Ovsienko [Mon, 1 Feb 2021 20:51:54 +0000 (20:51 +0000)] 
Travis CI: dismiss SKIP_PHPUNIT

The problem that required this workaround no longer exists (at least
for now), so undo the part of commit f81030a that complicates the
"script" section of .travis.yml for no reason.

7 months agoTravis CI: refine some YAML
Denis Ovsienko [Mon, 1 Feb 2021 20:34:41 +0000 (20:34 +0000)] 
Travis CI: refine some YAML

Make indentation consistent and address a couple notices:

"root": missing "os", using the default "linux"
"root": key "matrix" is an alias for "jobs", using "jobs"

7 months agotests: simplify express.sh
Denis Ovsienko [Mon, 1 Feb 2021 19:16:07 +0000 (19:16 +0000)] 
tests: simplify express.sh

Lose an unused variable and use errexit.

7 months agoTravis CI: refine PHPUnit downloading
Denis Ovsienko [Mon, 1 Feb 2021 19:03:28 +0000 (19:03 +0000)] 
Travis CI: refine PHPUnit downloading

Move the download commands to a standalone script and improve it to
work outside of disposable virtual machines as well.

7 months agoupgrade CodeMirror from 5.58.3 to 5.59.2 [skip ci]
Denis Ovsienko [Mon, 1 Feb 2021 18:20:50 +0000 (18:20 +0000)] 
upgrade CodeMirror from 5.58.3 to 5.59.2 [skip ci]

7 months agodisplay log records consistently
Denis Ovsienko [Thu, 21 Jan 2021 00:14:34 +0000 (00:14 +0000)] 
display log records consistently

Factor renderLogRecordsPortlet() out of renderObject() and also call it
from renderRow(), renderLocationPage() and renderRackPage(). This way
every entity that allows to add log records also displays them on the
default tab.

8 months agorenderEditAttributeTRs(): escape string values
Denis Ovsienko [Sun, 10 Jan 2021 22:32:43 +0000 (22:32 +0000)] 
renderEditAttributeTRs(): escape string values

Call stringForTextInputValue() for string attributes so they do not
interfere with the resulting HTML. This fixes a bug reported by Quentin
HESS.

[skip ci]

8 months agoupdate COPYING for 2021 [skip ci]
Denis Ovsienko [Fri, 1 Jan 2021 20:24:43 +0000 (20:24 +0000)] 
update COPYING for 2021 [skip ci]

9 months agoupgrade CodeMirror from 5.58.1 to 5.58.3 [skip ci]
Denis Ovsienko [Wed, 25 Nov 2020 22:01:01 +0000 (22:01 +0000)] 
upgrade CodeMirror from 5.58.1 to 5.58.3 [skip ci]

9 months agospell lastInsertID() (once again) [skip ci]
Denis Ovsienko [Wed, 25 Nov 2020 20:56:45 +0000 (20:56 +0000)] 
spell lastInsertID() (once again) [skip ci]

9 months agolose a newline
Denis Ovsienko [Sun, 22 Nov 2020 16:53:42 +0000 (16:53 +0000)] 
lose a newline

11 months agofix some spelling [skip ci]
Denis Ovsienko [Fri, 9 Oct 2020 11:19:31 +0000 (12:19 +0100)] 
fix some spelling [skip ci]

11 months agogateways: use "#!/usr/bin/env perl"
Denis Ovsienko [Fri, 9 Oct 2020 10:48:00 +0000 (11:48 +0100)] 
gateways: use "#!/usr/bin/env perl"

11 months agoforward-port more props of 0.21.5 [skip ci]
Denis Ovsienko [Tue, 6 Oct 2020 16:17:48 +0000 (17:17 +0100)] 
forward-port more props of 0.21.5 [skip ci]

11 months agocopy the 0.21.5 ChangeLog section [skip ci]
Denis Ovsienko [Mon, 5 Oct 2020 18:42:21 +0000 (19:42 +0100)] 
copy the 0.21.5 ChangeLog section [skip ci]

11 months agolose some trailing space in README.md
Denis Ovsienko [Mon, 5 Oct 2020 14:50:38 +0000 (15:50 +0100)] 
lose some trailing space in README.md

11 months agoallow to customize tag palette (Mantis #1991)
Denis Ovsienko [Mon, 5 Oct 2020 14:44:14 +0000 (15:44 +0100)] 
allow to customize tag palette (Mantis #1991)

Make the default array global in a way that allows plugins to modify it.
In getColorSelect() read from that array and apply some filtering.

11 months agogetColorSelect(): fix code style
Denis Ovsienko [Mon, 5 Oct 2020 12:45:26 +0000 (13:45 +0100)] 
getColorSelect(): fix code style

11 months agoupgrade CodeMirror from 5.54.0 to 5.58.1
Denis Ovsienko [Mon, 5 Oct 2020 11:19:06 +0000 (12:19 +0100)] 
upgrade CodeMirror from 5.54.0 to 5.58.1

12 months agoSNMP: add two more Netgear switches (Mantis#1983)
Denis Ovsienko [Mon, 31 Aug 2020 19:14:33 +0000 (20:14 +0100)] 
SNMP: add two more Netgear switches (Mantis#1983)

[skip ci]

12 months agosnmp.php: fix some indentation issues
Denis Ovsienko [Mon, 31 Aug 2020 16:56:12 +0000 (17:56 +0100)] 
snmp.php: fix some indentation issues

12 months agodoSwitchSNMPmining(): fixup some pattern matching
Denis Ovsienko [Mon, 31 Aug 2020 16:55:40 +0000 (17:55 +0100)] 
doSwitchSNMPmining(): fixup some pattern matching

Spell end-of-string where it is implied, lose a preg_match() that is
no-op after commit 59736b5.

12 months agoSNMP: update some Netgear code
Denis Ovsienko [Sat, 29 Aug 2020 21:11:20 +0000 (22:11 +0100)] 
SNMP: update some Netgear code

Reorder the switch declarations and detect the software version.

[skip ci]

12 months agodictionary: add a few more Netgear switches
Denis Ovsienko [Sat, 29 Aug 2020 20:16:01 +0000 (21:16 +0100)] 
dictionary: add a few more Netgear switches

[skip ci]

12 months agotests: address most shellcheck warnings in *.sh
Denis Ovsienko [Thu, 27 Aug 2020 23:26:27 +0000 (00:26 +0100)] 
tests: address most shellcheck warnings in *.sh

Use modern style command substitution, add some double quotes, assert
that "cd" is successful, lose an unused variable, reword an underdefined
logical AND, replace "expr" with arithmetic expansion.

12 months agotests: factor a function out in express_pre.sh
Denis Ovsienko [Thu, 27 Aug 2020 23:13:32 +0000 (00:13 +0100)] 
tests: factor a function out in express_pre.sh

Addresses a few format warnings from shellcheck and deduplicate the code.
While at it, get the variable right in testPHPExitCodeAndOutput() because
after commit a62537c it worked only by coincidence.

12 months agogit-commit: address some shellcheck warnings
Denis Ovsienko [Tue, 25 Aug 2020 22:37:40 +0000 (23:37 +0100)] 
git-commit: address some shellcheck warnings

Use modern style command substitution and more double quotes.

[skip ci]

13 months agorenderAttributes(): also display attribute ID
Denis Ovsienko [Wed, 12 Aug 2020 23:12:07 +0000 (00:12 +0100)] 
renderAttributes(): also display attribute ID

As suggested by Lucas Aimaretto on the racktables-users mailing list.

13 months agorenderAttributes(): switch to renderTableViewer()
Denis Ovsienko [Wed, 12 Aug 2020 23:08:23 +0000 (00:08 +0100)] 
renderAttributes(): switch to renderTableViewer()

14 months agoadd RHEL 7 to README.md (GH#266)
desmando [Thu, 16 Jul 2020 09:05:38 +0000 (02:05 -0700)] 
add RHEL 7 to README.md (GH#266)

Verified on RHEL 7.8.

15 months agofixup the RackTables web-site URL
Denis Ovsienko [Wed, 27 May 2020 20:38:45 +0000 (21:38 +0100)] 
fixup the RackTables web-site URL

Use HTTPS and a trailing slash to avoid unnecessary redirects.

[skip ci]

15 months agoupgrade CodeMirror from 5.53.2 to 5.54.0
Denis Ovsienko [Sun, 24 May 2020 23:12:50 +0000 (00:12 +0100)] 
upgrade CodeMirror from 5.53.2 to 5.54.0

15 months agoAdd SNMP support for HPE 5130 (JG937A) and A5120 (JG237A) 263/head
lenorcy [Fri, 23 Aug 2019 14:34:45 +0000 (16:34 +0200)] 
Add SNMP support for HPE 5130 (JG937A) and A5120 (JG237A)

16 months agodictionary: add recent Fedora and Ubuntu releases
Denis Ovsienko [Thu, 21 May 2020 09:34:23 +0000 (10:34 +0100)] 
dictionary: add recent Fedora and Ubuntu releases

[skip ci]

16 months agoupdate some installation notes
Denis Ovsienko [Mon, 11 May 2020 13:11:25 +0000 (14:11 +0100)] 
update some installation notes

Remove a couple Linux distributions that are more than 5 years old, add
entries for Fedora 32 and Ubuntu 20.04 based on MariaDB, spell MariaDB as
an alternative consistently.

[skip ci]

16 months agomake release notes consistent after commit ccb8905
Denis Ovsienko [Mon, 11 May 2020 10:59:18 +0000 (11:59 +0100)] 
make release notes consistent after commit ccb8905

[skip ci]

16 months agoadd PHPUnit results cache to .gitignore
Denis Ovsienko [Mon, 11 May 2020 07:24:34 +0000 (08:24 +0100)] 
add PHPUnit results cache to .gitignore

The results cache was introduced in PHPUnit 7.3 and became on by default
in PHPUnit 8. The feature makes no difference in a [single-use] Travis CI
environment, but can enable defects-first test order in a developer
working copy, in case anybody needs it. Hence let's keep it enabled and
ignore the cache file.

[skip ci]

16 months agoupgrade CodeMirror from 5.49.2 to 5.53.2
Denis Ovsienko [Thu, 30 Apr 2020 21:01:28 +0000 (22:01 +0100)] 
upgrade CodeMirror from 5.49.2 to 5.53.2

[skip ci]

16 months agoTravis CI: use the latest PHPUnit 7 for PHP 7.1
Denis Ovsienko [Thu, 30 Apr 2020 20:51:16 +0000 (21:51 +0100)] 
Travis CI: use the latest PHPUnit 7 for PHP 7.1

20 months agoupdate COPYING for 2020
Denis Ovsienko [Sat, 4 Jan 2020 11:38:30 +0000 (11:38 +0000)] 
update COPYING for 2020

[skip ci]

21 months agoTravis CI: add a job for PHP 7.4
Denis Ovsienko [Thu, 19 Dec 2019 20:24:27 +0000 (20:24 +0000)] 
Travis CI: add a job for PHP 7.4

21 months agotests: do not assume PHP CLI is always installed
Denis Ovsienko [Tue, 26 Nov 2019 20:53:00 +0000 (20:53 +0000)] 
tests: do not assume PHP CLI is always installed

21 months agoswitch some documentation URLs to HTTPS
Denis Ovsienko [Mon, 25 Nov 2019 23:02:02 +0000 (23:02 +0000)] 
switch some documentation URLs to HTTPS

[skip ci]

21 months agoallow PHP 7.0 as an untested version
Denis Ovsienko [Sun, 24 Nov 2019 23:54:28 +0000 (23:54 +0000)] 
allow PHP 7.0 as an untested version

As discussed on the mailing list, Ubuntu 16.04 is still around. Let's
consider this again after Ubuntu 20.04 and PHP 7.4 are out.

[skip ci]

22 months agoTravis CI: use default PHPUnit (8) for PHP 7.[23]
Denis Ovsienko [Tue, 19 Nov 2019 23:05:53 +0000 (23:05 +0000)] 
Travis CI: use default PHPUnit (8) for PHP 7.[23]

Also explain it better why PHP 7.0 is not in the matrix and PHP 7.1 uses
a custom PHPUnit version.

22 months agotests: list PHPUnit 8 as a known version
Denis Ovsienko [Tue, 19 Nov 2019 22:59:02 +0000 (22:59 +0000)] 
tests: list PHPUnit 8 as a known version

Leave versions 6 and 7 in place as they run the current tests fine.

22 months agotests: rewrite a test without assertArraySubset()
Denis Ovsienko [Tue, 19 Nov 2019 22:50:55 +0000 (22:50 +0000)] 
tests: rewrite a test without assertArraySubset()

"assertArraySubset() is deprecated and will be removed in PHPUnit 9."

The replacement works with PHPUnit 6, 7 and 8.

22 months agotests: use an assertion, not @expectedException
Denis Ovsienko [Tue, 19 Nov 2019 22:36:33 +0000 (22:36 +0000)] 
tests: use an assertion, not @expectedException

The annotation is deprecated in PHPUnit 8 and causes lots of warnings.
The method (which is the recommended replacement) works since at least
PHPUnit 6.

22 months agotests: declare setup/teardown methods void
Denis Ovsienko [Tue, 19 Nov 2019 21:59:35 +0000 (21:59 +0000)] 
tests: declare setup/teardown methods void

Prepare for one of the backward incompatible changes of PHPUnit 8:

PHP Fatal error:  Declaration of ...::setUpBeforeClass() must be
compatible with PHPUnit\Framework\TestCase::setUpBeforeClass(): void

However, with this change the tests still pass with PHPUnit 6 and 7.

22 months agotests: refine PHPUnit presence checks
Denis Ovsienko [Tue, 19 Nov 2019 00:11:11 +0000 (00:11 +0000)] 
tests: refine PHPUnit presence checks

Make express_phpunit.sh distinguish between unavailable PHPUnit (not
installed at all or PHPUNIT_BIN pointed to a file that lacks the
executable permission) and PHPUnit that is available, but has an
unsupported version. Direct the error messages to stderr while at it.

[skip ci]

22 months agodrop support for PHP 5.x and 7.0
Denis Ovsienko [Sun, 17 Nov 2019 22:25:44 +0000 (22:25 +0000)] 
drop support for PHP 5.x and 7.0

As proposed on the mailing list on 4th of July 2019.

22 months agoadd the usual sections for the next release
Denis Ovsienko [Sun, 17 Nov 2019 22:24:14 +0000 (22:24 +0000)] 
add the usual sections for the next release

22 months agolet mktemp choose the temporary directory
Denis Ovsienko [Sun, 17 Nov 2019 22:13:35 +0000 (22:13 +0000)] 
let mktemp choose the temporary directory

22 months agodrop the props for PHPUnit 4 and 5
Denis Ovsienko [Sun, 17 Nov 2019 22:12:07 +0000 (22:12 +0000)] 
drop the props for PHPUnit 4 and 5

22 months agoTravis CI: use Ubuntu 18.04 and PHP 7.[123]
Denis Ovsienko [Sun, 17 Nov 2019 21:45:20 +0000 (21:45 +0000)] 
Travis CI: use Ubuntu 18.04 and PHP 7.[123]

At the time of writing PHP supports only the following versions:
* 7.1 (old stable)
* 7.2 (old stable)
* 7.3 (current stable)

This list is likely to change once PHP 7.4 is available, which seems to
be coming.

Also PHPUnit supports only the following versions:
* 7 (soon to be retired), which requires PHP 7.1
* 8, which requires PHP 7.2+

In Travis CI Ubuntu 18.04 comes with PHPUnit 8 by default, and supports
only PHP versions 7.1, 7.2 and 7.3. Switch the master branch to 18.04 to
make it more straightforward to rewrite (see commit f81030a) the tests
for PHPUnit 8.

Leave the maintenance-0.21.x branch on Ubuntu 16.04 with its unsupported
versions of PHP and PHPUnit.

22 months ago0.21.4: cut the release RackTables-0.21.4
Denis Ovsienko [Sun, 17 Nov 2019 20:17:33 +0000 (20:17 +0000)] 
0.21.4: cut the release

22 months agodictionary: add a few recent Linux releases
Denis Ovsienko [Sun, 17 Nov 2019 19:17:00 +0000 (19:17 +0000)] 
dictionary: add a few recent Linux releases

[skip ci]

22 months agoTravis CI: specify Ubuntu 16.04 explicitly
Denis Ovsienko [Sun, 17 Nov 2019 18:52:37 +0000 (18:52 +0000)] 
Travis CI: specify Ubuntu 16.04 explicitly

At this time Travis CI defaults to Ubuntu 16.04, which has PHP versions
5.6, 7.0, 7.1, 7.2 and 7.3. On request it can also provide Ubuntu 18.04,
which has PHP versions 7.1, 7.2 and 7.3. Before Ubuntu 18.04 becomes the
default, nail 16.04 down in .travis.yml to avoid surprise test failures.

22 months agoupgrade CodeMirror from 5.49.0 to 5.49.2
Denis Ovsienko [Sun, 17 Nov 2019 18:22:22 +0000 (18:22 +0000)] 
upgrade CodeMirror from 5.49.0 to 5.49.2

[skip ci]

22 months agoTravis CI: bump PHPUnit 7 version up
Denis Ovsienko [Mon, 4 Nov 2019 22:50:41 +0000 (22:50 +0000)] 
Travis CI: bump PHPUnit 7 version up

23 months agoupgrade CodeMirror from 5.48.2 to 5.49.0
Denis Ovsienko [Tue, 15 Oct 2019 19:15:34 +0000 (20:15 +0100)] 
upgrade CodeMirror from 5.48.2 to 5.49.0

[skip ci]

2 years agoclarify the previous commit
Denis Ovsienko [Sun, 15 Sep 2019 14:30:32 +0000 (15:30 +0100)] 
clarify the previous commit

[skip ci]

2 years agoAdd snmp syncing support for Arista DCS-7050SX-64 (#264)
Denis Ovsienko [Sun, 15 Sep 2019 14:20:04 +0000 (15:20 +0100)] 
Add snmp syncing support for Arista DCS-7050SX-64 (#264)

In addition, this adds a new processor called 'arista-any-QSFP+' which should be
able to get interfaces named like the following:

Ethernet49/1
Ethernet49/2
Ethernet49/3
Ethernet49/4
Ethernet50/1
...

2 years agoTravis CI: fix the build after Ubuntu upgrade
Denis Ovsienko [Sun, 15 Sep 2019 13:08:16 +0000 (14:08 +0100)] 
Travis CI: fix the build after Ubuntu upgrade

Travis CI had changed the default Ubuntu version from 14.04 to 16.04,
which had broken the following jobs:
* PHP 5.5 (because Travis does not supply a PHP 5.5 phpenv archive for
  Ubuntu 16.04)
* PHP 7.0 (because PHPUnit was upgraded from 6.4.3 to 7.5.0)
* PHP 7.1 (because PHPUnit was upgraded from 6.4.3 to 8.0.4)

Complete the change started in commit b3a99c9 and specify the latest
PHPUnit 6 for the PHP 7.0 job and the latest PHPUnit 7 for the PHP 7.1
job. Bump PHP 7.2 and 7.3 jobs to the latest PHPUnit 7 too. Remove PHP
5.5 from the build matrix.

2 years agoAdd snmp syncing support for Arista DCS-7050SX-64 264/head
Lance Albertson [Fri, 6 Sep 2019 22:49:54 +0000 (15:49 -0700)] 
Add snmp syncing support for Arista DCS-7050SX-64

In addition, this adds a new processor called 'arista-any-QSFP+' which should be
able to get interfaces named like the following:

Ethernet49/1
Ethernet49/2
Ethernet49/3
Ethernet49/4
Ethernet50/1
...

2 years agouse vertical writing mode in the 802.1Q report
Denis Ovsienko [Wed, 21 Aug 2019 21:43:41 +0000 (22:43 +0100)] 
use vertical writing mode in the 802.1Q report

It used to be inconvenient to view the domain/VLAN matrix on setups with
many VLAN domains. I tried to switch the domain THs to vertical mode
about 7 years ago, but it didn't work well at that time. Nowadays it is
just a matter of a CSS property, it turns out.

* pi.css
* render8021QReport()

[skip ci]

2 years agoupgrade CodeMirror from 5.46.0 to 5.48.2
Denis Ovsienko [Sun, 4 Aug 2019 20:03:54 +0000 (21:03 +0100)] 
upgrade CodeMirror from 5.46.0 to 5.48.2

[skip ci]

2 years agoamend SQL to work on MySQL 8 (Mantis#1909)
Arkadi Colson [Wed, 19 Jun 2019 14:22:12 +0000 (15:22 +0100)] 
amend SQL to work on MySQL 8 (Mantis#1909)

ROW is a MySQL 8 keyword.

2 years agoadd sections for 0.21.4
Denis Ovsienko [Wed, 19 Jun 2019 14:12:30 +0000 (15:12 +0100)] 
add sections for 0.21.4

[skip ci]

2 years agoTravis CI: update custom PHPUnit from 7.5.7 to .12
Denis Ovsienko [Thu, 13 Jun 2019 08:17:57 +0000 (09:17 +0100)] 
Travis CI: update custom PHPUnit from 7.5.7 to .12

Reduce hard-coding and make the .phar download conditional while at it.

2 years ago0.21.3: cut the release RackTables-0.21.3
Denis Ovsienko [Wed, 12 Jun 2019 14:12:37 +0000 (15:12 +0100)] 
0.21.3: cut the release

2 years agodictionary: add recent Fedora versions
Denis Ovsienko [Wed, 12 Jun 2019 11:46:32 +0000 (12:46 +0100)] 
dictionary: add recent Fedora versions

[skip ci]

2 years agofix an XSS issue in an error message
Denis Ovsienko [Tue, 11 Jun 2019 14:42:16 +0000 (15:42 +0100)] 
fix an XSS issue in an error message

The issue was reported by Diego Di Nardo.

2 years agoQuick fix of formatting. 258/head
MichaelTiernan [Tue, 21 May 2019 17:46:54 +0000 (13:46 -0400)] 
Quick fix of formatting.

2 years agofix hook integration in Cacti and Munin pligins
Denis Ovsienko [Fri, 10 May 2019 11:45:29 +0000 (12:45 +0100)] 
fix hook integration in Cacti and Munin pligins

Commit 011df35 introduced this issue. With "module=image" and either of
the plugins enabled RackTables failed to fail when "img" was set to an
invalid value. This was because the plugins' extension functions always
return TRUE to dispatchImageRequest(), which concluded the work was
always done and thus never raised the default exception. Make the return
in the plugins conditional to fix that.

2 years agoauthorize8021QChangeRequests(): amend PHP array syntax
Denis Ovsienko [Sat, 4 May 2019 21:04:09 +0000 (22:04 +0100)] 
authorize8021QChangeRequests(): amend PHP array syntax

See Mantis#1905. Although support for PHP 5.3 is not a goal, the rest of
PHP code uses traditional array syntax, so let's make it consistent.

2 years agoadd a log entry limit to the object page (Mantis#769)
Denis Ovsienko [Fri, 26 Apr 2019 03:54:00 +0000 (04:54 +0100)] 
add a log entry limit to the object page (Mantis#769)

* getConfigDefaults(): add OBJECTLOG_PREVIEW_ENTRIES
* install.php: idem
* upgrade.php: idem
* renderObject(): use the option to limit the amount of entries

2 years agoupgrade CodeMirror from 5.45.0 to 5.46.0
Denis Ovsienko [Wed, 24 Apr 2019 07:58:45 +0000 (08:58 +0100)] 
upgrade CodeMirror from 5.45.0 to 5.46.0

[skip ci]

2 years agoadd sections for 0.21.3
Denis Ovsienko [Sat, 30 Mar 2019 15:27:17 +0000 (15:27 +0000)] 
add sections for 0.21.3

2 years agodictionary: update OpenWrt entries
Denis Ovsienko [Sat, 30 Mar 2019 15:07:59 +0000 (15:07 +0000)] 
dictionary: update OpenWrt entries

2 years agoupdateObjectAllocation(): fix two PHP messages
Denis Ovsienko [Mon, 1 Apr 2019 08:48:47 +0000 (09:48 +0100)] 
updateObjectAllocation(): fix two PHP messages

Saving an empty working copy would result in the following:

PHP Notice:  Undefined index: rackmulti in ophandlers.php on line 1225
PHP Warning:  Invalid argument supplied for foreach() in ophandlers.php
on line 1225

[skip ci]

2 years ago0.21.2: cut the release RackTables-0.21.2
Denis Ovsienko [Mon, 25 Mar 2019 14:53:51 +0000 (14:53 +0000)] 
0.21.2: cut the release

2 years agoupdate COPYING for 2019
Denis Ovsienko [Mon, 25 Mar 2019 14:26:58 +0000 (14:26 +0000)] 
update COPYING for 2019

[skip ci]