mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
feature: Include adsl stats for vdsl ports (#8670)
* also include adsl stats for vdsl ports * Update ports.inc.php
This commit is contained in:
@@ -246,10 +246,10 @@ if ($device['os'] == 'procera') {
|
||||
}
|
||||
|
||||
if ($config['enable_ports_adsl']) {
|
||||
$device['adsl_count'] = dbFetchCell("SELECT COUNT(*) FROM `ports` WHERE `device_id` = ? AND `ifType` = 'adsl'", array($device['device_id']));
|
||||
$device['xdsl_count'] = dbFetchCell("SELECT COUNT(*) FROM `ports` WHERE `device_id` = ? AND `ifType` in ('adsl','vdsl')", [$device['device_id']]);
|
||||
}
|
||||
|
||||
if ($device['adsl_count'] > '0') {
|
||||
if ($device['xdsl_count'] > '0') {
|
||||
echo 'ADSL ';
|
||||
$port_stats = snmpwalk_cache_oid($device, '.1.3.6.1.2.1.10.94.1.1.1.1', $port_stats, 'ADSL-LINE-MIB');
|
||||
$port_stats = snmpwalk_cache_oid($device, '.1.3.6.1.2.1.10.94.1.1.2.1', $port_stats, 'ADSL-LINE-MIB');
|
||||
|
Reference in New Issue
Block a user