diff --git a/tbsetup/snmpit_lib.pm b/tbsetup/snmpit_lib.pm index 3348238757bc811b916dc5047de811babd14b577..773a3a11685833abbd66c175fa764652e69fada3 100644 --- a/tbsetup/snmpit_lib.pm +++ b/tbsetup/snmpit_lib.pm @@ -156,6 +156,12 @@ sub getVlanPorts (@) { my $members = $row[0]; # $members is a space-seprated list foreach my $port (split /\s+/,$members) { + # XXX: Temp hack - work around another bug which sometimes + # puts '(null)' in the table + if ($port eq "(null)") { + warn "WARNING: (null) found in VLANS table!\n"; + next; + } push @ports, $port; } }