mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add a generic way to allow empty ifDescr on ports for an OS.
This commit is contained in:
@@ -316,6 +316,7 @@ $os = 'calix';
|
||||
$config['os'][$os]['text'] = 'Calix E7';
|
||||
$config['os'][$os]['type'] = 'network';
|
||||
$config['os'][$os]['ifname'] = 1;
|
||||
$config['os'][$os]['empty_ifdescr'] = 1;
|
||||
$config['os'][$os]['icon'] = 'calix';
|
||||
$config['os'][$os]['over'][0]['graph'] = 'device_bits';
|
||||
$config['os'][$os]['over'][0]['text'] = 'Device Traffic';
|
||||
|
||||
@@ -895,7 +895,7 @@ function is_port_valid($port, $device) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (empty($port['ifDescr']) && !$device['os'] == "calix") {
|
||||
if (empty($port['ifDescr']) && !$config['os'][$device['os']]['empty_ifdescr']) {
|
||||
$valid = 0;
|
||||
}
|
||||
if ($device['os'] == "catos" && strstr($if, "vlan")) {
|
||||
|
||||
Reference in New Issue
Block a user