0.17.2
new feature: configure default SNMP community (by jthurman)
- new feature: "$untagged" autotag
+ new feature: "$untagged" and "$masklen_NN" autotags
update: show appropriate message, if a record cannot be found
update: add Cisco dictionary entry for WS-CBS3030-DEL. closes ticket 225 (by jthurman)
update: add OS, router, fibre switch dictionary entries for ticket 238 (by Aaron)
$ret[] = array ('tag' => '$rackid_' . $cell['id']);
$ret[] = array ('tag' => '$any_rack');
break;
- case 'object': // during transition bypass is already the whole structure
+ case 'object':
$ret[] = array ('tag' => '$id_' . $cell['id']);
$ret[] = array ('tag' => '$typeid_' . $cell['objtype_id']);
$ret[] = array ('tag' => '$any_object');
if (!strlen ($cell['rack_id']))
$ret[] = array ('tag' => '$unmounted');
break;
- case 'ipv4net': // during transition bypass is already the whole structure
+ case 'ipv4net':
$ret[] = array ('tag' => '$ip4netid_' . $cell['id']);
$ret[] = array ('tag' => '$ip4net-' . str_replace ('.', '-', $cell['ip']) . '-' . $cell['mask']);
+ $ret[] = array ('tag' => '$masklen_' . $cell['mask']);
$ret[] = array ('tag' => '$any_ip4net');
$ret[] = array ('tag' => '$any_net');
break;
default: // HCF!
break;
}
- if (!count ($cell['etags']))
- $ret[] = array ('tag' => '$untagged');
+ // {$tagless} doesn't apply to users
+ switch ($cell['realm'])
+ {
+ case 'rack':
+ case 'object':
+ case 'ipv4net':
+ case 'ipv4vs':
+ case 'ipv4rspool':
+ case 'file':
+ if (!count ($cell['etags']))
+ $ret[] = array ('tag' => '$untagged');
+ break;
+ default:
+ break;
+ }
return $ret;
}