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
eef173c0
Commit
eef173c0
authored
Jul 31, 2013
by
Kirk Webb
Browse files
Return MLNX_DEF_VLAN when "default" is queried in snmpit_mellanox
parent
b0e6e24b
Changes
1
Show whitespace changes
Inline
Side-by-side
tbsetup/snmpit_test/snmpit_mellanox.pm
View file @
eef173c0
...
...
@@ -725,7 +725,9 @@ sub findVlans($@) {
# talking to the switch), should we return undef, or just a null
# mapping? I'm thinking the former...
foreach
my
$vlid
(
@vlan_ids
)
{
if
(
exists
(
$all
{
$vlid
}))
{
if
(
$vlid
eq
"
default
")
{
$mps
{
$vlid
}
=
$MLNX_DEF_VLAN
;
}
elsif
(
exists
(
$all
{
$vlid
}))
{
$mps
{
$vlid
}
=
$all
{
$vlid
};
}
else
{
$mps
{
$vlid
}
=
undef
;
...
...
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