r2879 - pull {$untagged} into trunk
authorDenis Ovsienko <infrastation@yandex.ru>
Tue, 16 Jun 2009 12:38:35 +0000 (12:38 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Tue, 16 Jun 2009 12:38:35 +0000 (12:38 +0000)
ChangeLog
inc/code.php
inc/functions.php

index 5d35bfb..62feeff 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 0.17.2
        new feature: configure default SNMP community (by jthurman)
+       new feature: "$untagged" autotag
        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)
index 6ca9b18..1aae7ef 100644 (file)
@@ -1231,6 +1231,7 @@ function findAutoTagWarnings ($expr)
                                case (mb_ereg_match ('^\$fromvlan_[[:digit:]]+$', $expr['load'])):
                                case (mb_ereg_match ('^\$tovlan_[[:digit:]]+$', $expr['load'])):
                                case (mb_ereg_match ('^\$unmounted$', $expr['load'])):
+                               case (mb_ereg_match ('^\$untagged$', $expr['load'])):
                                        return array();
                                default:
                                        return array (array
index caeddff..ef157b2 100644 (file)
@@ -996,6 +996,8 @@ function generateEntityAutoTags ($cell)
                default: // HCF!
                        break;
        }
+       if (!count ($cell['etags']))
+               $ret[] = array ('tag' => '$untagged');
        return $ret;
 }