Commit b3dd9217 authored by Ad Schellevis's avatar Ad Schellevis

(menu) hide "virtual" interfaces

parent 17dad5a7
......@@ -106,7 +106,9 @@ class MenuSystem
// add interfaces to "Interfaces" menu tab... kind of a hack, may need some improvement.
$ifarr = array();
foreach (Config::getInstance()->object()->interfaces->children() as $key => $node) {
$ifarr[$key] = !empty($node->descr) ? $node->descr->__toString() : strtoupper($key);
if (empty($node->virtual)) {
$ifarr[$key] = !empty($node->descr) ? (string)$node->descr : strtoupper($key);
}
}
natcasesort($ifarr);
$ordid = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment