0.17.2
new feature: configure default SNMP community (by jthurman)
- new feature: "$untagged" and "$masklen_NN" autotags
+ new feature: "$untagged" and "$masklen_OP_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)
case (mb_ereg_match ('^\$tovlan_[[:digit:]]+$', $expr['load'])):
case (mb_ereg_match ('^\$unmounted$', $expr['load'])):
case (mb_ereg_match ('^\$untagged$', $expr['load'])):
+ case (mb_ereg_match ('^\$masklen_(eq|le|ge)_[[:digit:]][[:digit:]]?$', $expr['load'])):
return array();
default:
return array (array
case 'ipv4net':
$ret[] = array ('tag' => '$ip4netid_' . $cell['id']);
$ret[] = array ('tag' => '$ip4net-' . str_replace ('.', '-', $cell['ip']) . '-' . $cell['mask']);
- $ret[] = array ('tag' => '$masklen_' . $cell['mask']);
+ for ($i = 8; $i < 32; $i++)
+ {
+ // these conditions hit 1 to 3 times per each i
+ if ($cell['mask'] >= $i)
+ $ret[] = array ('tag' => '$masklen_ge_' . $i);
+ if ($cell['mask'] <= $i)
+ $ret[] = array ('tag' => '$masklen_le_' . $i);
+ if ($cell['mask'] == $i)
+ $ret[] = array ('tag' => '$masklen_eq_' . $i);
+ }
$ret[] = array ('tag' => '$any_ip4net');
$ret[] = array ('tag' => '$any_net');
break;