Missing 'use LibreNMS\Config' in route discovery (#10844)

* missing 'use LibreNMS\Config'

* Update route.inc.php

force test re-run
This commit is contained in:
PipoCanaja
2019-11-19 21:38:21 +01:00
committed by Tony Murray
parent a28a17d963
commit fd932b4066

View File

@@ -1,6 +1,8 @@
<?php
/* Copyright (C) 2014 Nicolas Armando <nicearma@yahoo.com> and Mathieu Millet <htam-net@github.net>
/* Copyright (C) 2014 Nicolas Armando <nicearma@yahoo.com>
* Copyright (C) 2014 Mathieu Millet <htam-net@github.net>
* Copyright (C) 2019 PipoCanaja <pipocanaja@github.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -12,12 +14,14 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. */
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
//We can use RFC1213 or IP-FORWARD-MIB or MPLS-L3VPN-STD-MIB
use App\Models\Device;
use LibreNMS\Util\IPv4;
use LibreNMS\Config;
$ipForwardMibRoutesNumber = snmp_get($device, 'IP-FORWARD-MIB::inetCidrRouteNumber.0', '-Osqn');