Commit Graph

19092 Commits

Author SHA1 Message Date
Tony Murray
29bd6789cb Stp module rewrite (#13570)
* STP module rewrite WIP

* Finish rewrite

* Ignore disabled and log root/topology changes

* Remove interfaces for now

* fix style

* Lint fixes

* Document ResolvesPortIds and hide map functions

* whitespace fixes

* Revert to stpInstances in case someone writes mstp support

* missed one

* phpstan fixes

* Handle table and oids separately

* forgot to register observer

* Test data and correct non-table handling in SnmpResponse->table()

* update test

* test data

* revert aos7 silly things

* minimal polling

* Update test data

* order ports_ntp and rename new field to port_index

* forgot the db_schema

* revert ciena-sds port things

* MSTP support, maybe

* Adding test data

* Filter bad lines instead of discarding the entire snmp response
and capture fixes and test data

* fresh data

* add os data

* update data, ignore unfound ports, obviously bad device implementation.

* fixes

* Ignore context files in os detection test

* Remove empty table data

* add ciena-sds vlan

* designatedCost column is too small

* Update stp webui

* Refactor code to interfaces, to allow vendor mibs

* update schema

* fix issues added by abstraction

* STP fixes

* Default to no context for vlan 1

* never store vlan 1

* Update test data

* remove eltex brokenness

* fix style

* fix stan

* Fix Rewrite MAC to Hex padding with floats

* fix sqlite migration
2022-01-30 16:28:18 -06:00
Wheel
2dbfdda717 Ubiquiti Airfiber60 (#13680)
* Add ubiquiti Airfiber 60

* New AF60 data and MIB

* Stylci fix and small additions

* Update test data

* Stylefix

* Remove the weird ubiquity oids containing encoded mac addresses

* Updated test data

* Remove more complex sensors for now to be added after the conflict airos airos-af60 is solved

* Fix hardware and OS

* To be verified is this is the most practical / clean way of doing it

* Advanced wireless and MCS state sensor

* Fix link capacity multiplier and active link

* Test data update fix lint

* Maybe better
2022-01-29 21:10:45 -06:00
Tony Murray
b6a8b602b8 Oxidized update and Device remove (#13730)
* Oxidized + Device remove
Was just working on oxidized, but then to properly update nodes after delete, updated delete_device()

* revert dumb style changes

* baseline update and no DI there...

* Fix OS first load and device deletion missing tables
2022-01-29 21:09:05 -06:00
Tony Murray
29ff20d7eb UBNT fixed airos temp in 8.7.7 (#13731)
* UBNT fixed airos temp in 8.7.7
restrict workaround to only versions 8.7.4-8.7.6
fixes: #13655

* remove extra character
2022-01-30 02:04:03 +01:00
Konstantin
e628bf5237 Added Volius (#13723) 2022-01-29 14:52:05 +01:00
Konstantin
f3398780fe Added sensors ZXA OS (ZTE GPON) (#13724) 2022-01-29 14:51:21 +01:00
Jellyfrog
ed48cc5368 Remove old vendor fix (#13717)
* Remove old vendor fix 

Follow-up to #13712

* Remove another invalid check
2022-01-29 14:49:57 +01:00
ilGino
b4e9833e30 [WebUI] Change icon of links pointing to Health from fa-dashboard to fa-hearbeat (#13729)
Health is always referred to with the fa-heartbeat icon.
Instead, in the device list, the link pointing to device's Health is the fa-dashboard.
In order to make the device-list page more visually consistent, I propose to change the icon from fa-dashboard to fa-heartbeat in the device lists.

Regards
GG
2022-01-29 14:44:30 +01:00
Tony Murray
ca5908fca4 Remove contrib dir (#13727)
Contrib scripts are no longer relevant
Most should be under scripts or misc anyway
2022-01-29 14:37:04 +01:00
Tony Murray
6bd0bb1f66 Speed up tests by reducing snmp timeout (#13725) 2022-01-28 12:07:05 -06:00
Jellyfrog
658fd7972b Fix ups-nut check (#13722)
Fixes #13719
2022-01-28 12:07:34 +01:00
Matt Peterson
e8497cdfc6 Debian missing pip3 install (#13721) 2022-01-28 10:21:52 +01:00
sGoico
e04902b4d1 Change fping hardcoded binary to user defined fping (#13720)
This check should run using the binary which is configured by the user. Some users user a wrapper script to add/remove options or extend fping functionality.
2022-01-27 23:55:00 +01:00
Peca Nesovanovic
a1c6b735b0 [no_bulk] DDM* MIBs for Jetstream OS (#13715) 2022-01-27 11:54:07 +01:00
Jellyfrog
3a4efc6fa0 Update to tailwind 3 (#13695) 2022-01-26 19:10:56 -06:00
ilGino
25ab5df986 Correct prefix for "kilo" should be small k, not capital K (#13714)
Ref: https://en.wikipedia.org/wiki/Kilo-

For example in the Fanspeed values 4500 RPM (Rounds Per Minute) should be written as 4.5 kRPM, not 4.5 KRPM.

Regards
GG
2022-01-27 01:31:57 +01:00
Jellyfrog
7d0bbb98eb Replace Requests with HTTP Client (#13689) 2022-01-26 16:04:26 -06:00
Josh Jameson
0b85bceb34 Fix Temperature Sensor for AirOS 8.7.4+ (#13655)
* Fix Temperature Sensor for AirOS 8

* Update airos_airos8.json

* Update airos.json

* Add new skip_values feature to deal with Ubiquiti nonsense.
Tweak test data to test the change
fix not_regex

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-01-26 16:02:57 -06:00
Jellyfrog
46aea1d7a6 Remove old composer preinstall script (#13712) 2022-01-26 22:45:04 +01:00
ilGino
d2d07b8c88 Place a more consistent Fontawesome icon for the Export to PDF (#13713)
In Alerts >> Alert History

1 - reword "Export to pdf" to "Export to PDF"
2 - replace the Fontawesome Heartbeat icon with the Fontawesome File to PDF icon.

Regards
GG
2022-01-26 22:43:22 +01:00
Neil Lathwood
113cd1d98e Check for empty SLA tags so we skip bad entries (#13679)
* Check for empty SLA tags so we skip bad entries

* getSlaTag always return string

* accidentally left line

* Update phpstan-baseline.neon

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-01-26 08:32:29 -06:00
Jellyfrog
f652a5f390 Add missing hidden docs page (#13711) 2022-01-26 15:32:21 +01:00
Tony Murray
f195478444 lnms dev:check add --os-modules-only option (#13700)
* lnms dev:check add --os-modules-only option
And improve debug output

* Style fixes

* Add false flag
2022-01-26 08:31:51 -06:00
Tony Murray
4b4e7ce6fb Fix docs test failure (#13710) 2022-01-26 08:30:00 -06:00
Jellyfrog
1debe5e166 Use built in method to render a string with Blade (#13688) 2022-01-26 07:10:06 -06:00
Jellyfrog
7734113594 Move 2020 changelog (#13708) 2022-01-26 13:43:20 +01:00
Jellyfrog
6c1726d2d1 Use commit date to compare pull requestes (#13701)
"The created_at attribute is the date of the commit used for the release, and not the date when the release was drafted or published."
2022-01-24 15:40:42 -06:00
ilGino
20495d648c [WebUI] 2/2 Services - Removing the colon symbol to the right of a control label (#13705)
In order to make the Services Add or Edit pages while adding a Service more visually consistent with other pages in the system, removed the colon simbol ":" to the very right of each control description, where present.

Regards
GG
2022-01-24 22:20:14 +01:00
ilGino
aaf8e37c09 [WebUI] 1/2 Services - Removing the colon symbol to the right of a control label (#13704)
In order to make the Services Add or Edit pages while adding a Service more visually consistent with other pages in the system, removed the colon simbol ":" to the very right of each control description, where present.

Regards
GG
2022-01-24 22:20:05 +01:00
Jellyfrog
8b67feabd7 Improve Proxy::shouldBeUsed (#13702)
* Improve Proxy::shouldBeUsed

* Update Proxy.php

* Create ProxyTest.php

* Update ProxyTest.php

* Update Proxy.php
2022-01-24 14:55:52 -06:00
Jellyfrog
f4f297fd48 Update JS deps (#13694) 2022-01-23 19:45:44 +01:00
Jellyfrog
475a82bab6 Update dependencies (#13684)
* Update dependencies

  - Upgrading asm89/stack-cors (v2.0.3 => v2.1.1)
  - Upgrading barryvdh/laravel-debugbar (v3.6.3 => v3.6.5)
  - Upgrading barryvdh/laravel-ide-helper (v2.10.0 => v2.11.0)
  - Upgrading composer/ca-bundle (1.2.11 => 1.3.1)
  - Upgrading composer/composer (2.1.9 => 2.2.4)
  - Locking composer/pcre (1.0.0)
  - Upgrading composer/semver (3.2.5 => 3.2.7)
  - Upgrading composer/spdx-licenses (1.5.5 => 1.5.6)
  - Upgrading composer/xdebug-handler (2.0.2 => 2.0.4)
  - Upgrading doctrine/dbal (2.13.4 => 2.13.7)
  - Upgrading doctrine/inflector (2.0.3 => 2.0.4)
  - Upgrading doctrine/lexer (1.2.1 => 1.2.2)
  - Upgrading dragonmantank/cron-expression (v3.1.0 => v3.3.1)
  - Upgrading facade/ignition (2.15.0 => 2.17.4)
  - Upgrading fakerphp/faker (v1.16.0 => v1.17.0)
  - Upgrading fgrosse/phpasn1 (v2.3.0 => v2.4.0)
  - Upgrading filp/whoops (2.14.4 => 2.14.5)
  - Upgrading friendsofphp/php-cs-fixer (v2.19.2 => v2.19.3)
  - Upgrading fruitcake/laravel-cors (v2.0.4 => v2.0.5)
  - Upgrading graham-campbell/result-type (v1.0.3 => v1.0.4)
  - Upgrading guzzlehttp/guzzle (7.4.0 => 7.4.1)
  - Upgrading guzzlehttp/promises (1.5.0 => 1.5.1)
  - Upgrading laravel/dusk (v6.19.2 => v6.21.0)
  - Upgrading laravel/framework (v8.65.0 => v8.80.0)
  - Upgrading laravel/serializable-closure (v1.0.3 => v1.0.5)
  - Upgrading laravel/tinker (v2.6.2 => v2.7.0)
  - Upgrading laravel/ui (v3.3.0 => v3.4.1)
  - Upgrading league/commonmark (1.6.6 => 1.6.7)
  - Upgrading league/flysystem (1.1.5 => 1.1.9)
  - Upgrading league/mime-type-detection (1.8.0 => 1.9.0)
  - Upgrading maximebf/debugbar (v1.17.2 => v1.17.3)
  - Upgrading minishlink/web-push (v6.0.5 => v6.0.7)
  - Upgrading nesbot/carbon (2.53.1 => 2.55.2)
  - Upgrading nikic/php-parser (v4.13.0 => v4.13.2)
  - Upgrading nunomaduro/collision (v5.10.0 => v5.11.0)
  - Upgrading nunomaduro/larastan (1.0.0 => 1.0.2)
  - Upgrading nunomaduro/laravel-console-summary (v1.7.1 => v1.8.0)
  - Upgrading paragonie/constant_time_encoding (v2.4.0 => v2.5.0)
  - Upgrading php-amqplib/php-amqplib (v3.0.0 => v3.1.2)
  - Upgrading php-flasher/flasher (v0.9.4 => v0.9.6)
  - Upgrading php-flasher/flasher-laravel (v0.9.4 => v0.9.6)
  - Upgrading phpdocumentor/type-resolver (1.5.1 => 1.6.0)
  - Upgrading phpmailer/phpmailer (v6.5.1 => v6.5.3)
  - Upgrading phpoption/phpoption (1.8.0 => 1.8.1)
  - Upgrading phpseclib/phpseclib (3.0.10 => 3.0.12)
  - Upgrading phpspec/prophecy (1.14.0 => v1.15.0)
  - Upgrading phpstan/phpstan (1.0.1 => 1.4.2)
  - Upgrading phpunit/php-code-coverage (9.2.7 => 9.2.10)
  - Upgrading phpunit/php-file-iterator (3.0.5 => 3.0.6)
  - Upgrading phpunit/phpunit (9.5.10 => 9.5.11)
  - Upgrading predis/predis (v1.1.9 => v1.1.10)
  - Upgrading psy/psysh (v0.10.9 => v0.11.1)
  - Upgrading sebastian/exporter (4.0.3 => 4.0.4)
  - Upgrading seld/phar-utils (1.1.2 => 1.2.0)
  - Upgrading symfony/console (v5.3.7 => v5.4.2)
  - Upgrading symfony/css-selector (v5.3.4 => v5.4.2)
  - Upgrading symfony/debug (v4.4.31 => v4.4.36)
  - Upgrading symfony/error-handler (v5.4.0 => v5.4.2)
  - Upgrading symfony/filesystem (v5.3.4 => v5.4.0)
  - Upgrading symfony/finder (v5.3.7 => v5.4.2)
  - Upgrading symfony/http-foundation (v5.4.0 => v5.4.2)
  - Upgrading symfony/http-kernel (v5.4.0 => v5.4.2)
  - Upgrading symfony/mime (v5.4.0 => v5.4.2)
  - Upgrading symfony/options-resolver (v5.3.7 => v5.4.0)
  - Upgrading symfony/polyfill-ctype (v1.23.0 => v1.24.0)
  - Upgrading symfony/polyfill-iconv (v1.23.0 => v1.24.0)
  - Upgrading symfony/polyfill-intl-grapheme (v1.23.1 => v1.24.0)
  - Upgrading symfony/polyfill-intl-idn (v1.23.0 => v1.24.0)
  - Upgrading symfony/polyfill-intl-normalizer (v1.23.0 => v1.24.0)
  - Upgrading symfony/polyfill-mbstring (v1.23.1 => v1.24.0)
  - Upgrading symfony/polyfill-php72 (v1.23.0 => v1.24.0)
  - Upgrading symfony/polyfill-php73 (v1.23.0 => v1.24.0)
  - Upgrading symfony/polyfill-php80 (v1.23.1 => v1.24.0)
  - Upgrading symfony/polyfill-php81 (v1.23.0 => v1.24.0)
  - Upgrading symfony/process (v5.3.7 => v5.4.2)
  - Upgrading symfony/routing (v5.3.7 => v5.4.0)
  - Upgrading symfony/stopwatch (v5.3.4 => v5.4.0)
  - Upgrading symfony/string (v5.3.7 => v5.4.2)
  - Upgrading symfony/translation (v5.3.9 => v5.4.2)
  - Upgrading symfony/var-dumper (v5.4.0 => v5.4.2)
  - Upgrading symfony/yaml (v4.4.29 => v4.4.36)
  - Upgrading tecnickcom/tcpdf (6.4.2 => 6.4.4)
  - Upgrading tijsverkoyen/css-to-inline-styles (2.2.3 => 2.2.4)
  - Upgrading vlucas/phpdotenv (v5.3.1 => v5.4.1)

* Update debugbar facade path

* Update baseline
2022-01-23 19:43:48 +01:00
Tony Murray
e1908f26d6 Bump version to 22.1.0 22.1.0 2022-01-23 08:47:41 -06:00
Tony Murray
a42c0da9c5 Changelog for 22.1.0 2022-01-23 08:47:40 -06:00
ilGino
f1e436a55e Removing the colon symbol to the right of a control label (#13698)
In order to make the "Device setting" tab while Editing a device more consistent with other pages in the system, removed the colon simbol ":" to the very right of each control description, where present.
This because in no other HTML pages we find that the label with the control description is followed by a colon symbol.

Regards
GG
2022-01-22 13:28:37 +01:00
Peca Nesovanovic
2d24b2cf9d merge enviromux-micro in existing NTI (#13696)
* initial support for enviromux-micro

* merge MICRO to existing NTI
2022-01-21 15:33:42 +01:00
twelch24
3c75d87f53 update rrdcached link (#13692)
* update rrdcached link

* Update Applications.md
2022-01-20 17:41:29 +01:00
Jellyfrog
36d8d9102e Use PHP_BINARY directly instead of trying to build path to PHP binary (#13690) 2022-01-20 08:50:43 -06:00
Peca Nesovanovic
fb90b1813f added new sensors to mes23xx (#13671)
* added new sensors to mes23xx

* ci

* copy/paste error

* ci

* cleanup + testdata

* yaml

* yamlnew

* added [no_bulk] for PoE discovery

* fully qualified OID name
2022-01-20 08:41:47 -06:00
Andrea Beccaris
0fc2f9e4c9 Add API-routes for listing MPLS SAPs and services (#13561)
* add apis for mpsl services and saps

* updated docs

* removed dbFetch, orm instead

* changed queries

* Removed unused variables

* Update api_functions.inc.php

* Update api_functions.inc.php

* Update api_functions.inc.php

* Update api_functions.inc.php

Co-authored-by: laf <gh+n@laf.io>
2022-01-20 08:15:23 -06:00
Jellyfrog
7c2af16541 Update recommended PHP version to 8.0 (#13687)
In preparation for Laravel 9
2022-01-20 08:07:29 -06:00
tkjaer
407e6838bc Add missing python3-pip installation dependency for debian11 (#13691) 2022-01-19 20:13:01 +01:00
ilGino
5bc0da4c97 Small text change for misspelled Virtual (#13686)
Line 24, changed Virutal to Virtual.
2022-01-19 01:06:08 +01:00
Stefano Sasso
898aafcdd3 Gen RANCID host also for FS.com devices (#13682)
On the RANCID perspective, a FS.com switch behaves exactly as a Cisco switch,
and the RANCID modules for Cisco work well.
2022-01-18 21:27:35 +01:00
Heath Barnhart
2f2d43bab3 New OS: Adva XG 304 (#13668)
* initial commit

* adding snmpsim data

* update yaml and snmpsim

* fixed os tests

* Applied style changes

* Additional style change

* changed os discovery from php to yaml

* relaxing sysDescr regex
2022-01-16 18:27:27 +01:00
TechieDylan
15b0c2d665 changing the version variable for determining device devisor for determining the right mikrotik ups runtime (#13678) 2022-01-16 08:32:54 -06:00
Tony Murray
6aef4a8e62 VRP BGP fixes (#13675)
Fix SQL Invalid parameter number
Fix an undefined variable
2022-01-16 08:32:36 -06:00
Tony Murray
9f42abd6c6 snmp timeout is a float (#13676) 2022-01-15 10:00:16 -06:00
SourceDoctor
df288edbe3 remove unneccessary Section Description (#13677) 2022-01-15 09:59:56 -06:00
Peca Nesovanovic
592a0efa51 added oids.no_bulk os setting (#13666)
* forcewalk param

* [snmp][no_bulk]

* var names, test, schema

* Key off OIDs, not mibs

luminato is POC and needs to be reverted before merge.

* fix up os schema

* docs

* remove luminato arbitrary changes

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-01-15 09:59:23 -06:00