Add a generic way to allow empty ifDescr on ports for an OS.

This commit is contained in:
Tony Murray
2016-02-08 13:58:03 -06:00
parent 799bb4dc5d
commit 1d796fecfe
2 changed files with 2 additions and 1 deletions

View File

@@ -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';

View File

@@ -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")) {