Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
0786c685
Commit
0786c685
authored
Jan 22, 2002
by
Robert Ricci
Browse files
In listVlans(), ignore the System VLAN, to be consistent with the way
we treat Ciscos (in which we ignore VLAN
#1
)
parent
2edf2943
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/snmpit_intel.pm
View file @
0786c685
...
...
@@ -863,6 +863,13 @@ sub listVlans($) {
my
@list
=
();
foreach
my
$vlan_id
(
sort
{
$a
<=>
$b
}
keys
%Names
)
{
#
# Special case - we don't want to list the System VLAN, as that's
# where ports that are not in use go. (This is the same as ignoring
# VLAN #1 on Cisco's
#
next
if
(
$Names
{
$vlan_id
}
eq
"
System
");
#
# Check for members to avoid pushing an undefined value into
# the array (which causes warnings elsewhere)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment