From ed2c11d8d0228c66fada80e9a5f6b98e8fa3baf4 Mon Sep 17 00:00:00 2001 From: Robert Ricci <ricci@cs.utah.edu> Date: Wed, 4 May 2005 12:21:58 +0000 Subject: [PATCH] Hack to mask a tesbed bug elsewhere - skipt (null)s found in the vlans table. --- tbsetup/snmpit_lib.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tbsetup/snmpit_lib.pm b/tbsetup/snmpit_lib.pm index 3348238757..773a3a1168 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; } } -- GitLab