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

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