r1752 + don't check non-existent VLAN IDs
authorDenis Ovsienko <infrastation@yandex.ru>
Tue, 4 Mar 2008 16:49:16 +0000 (16:49 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Tue, 4 Mar 2008 16:49:16 +0000 (16:49 +0000)
gateways/switchvlans/main

index 38e88f8..5e82a4d 100755 (executable)
@@ -135,7 +135,7 @@ do_set()
                fi
                echo "$portname $newvlan" >> "$REQUESTS"
                cmembers=`grep -c ",$newvlan$" "$PORTINFO"`
-               if [ "$cmembers" = "0" ]; then
+               if [ "$cmembers" = "0" -a $newvlan -lt 4096 ]; then
                        echo "W!Port $portname seems to be the first in VLAN $newvlan at this switch." >> "$REPLIES"
                        echo "W!Check uplink/downlink configuration for proper operation." >> "$REPLIES"
                fi