Commit eef173c0 authored by Kirk Webb's avatar Kirk Webb
Browse files

Return MLNX_DEF_VLAN when "default" is queried in snmpit_mellanox

parent b0e6e24b
...@@ -725,7 +725,9 @@ sub findVlans($@) { ...@@ -725,7 +725,9 @@ sub findVlans($@) {
# talking to the switch), should we return undef, or just a null # talking to the switch), should we return undef, or just a null
# mapping? I'm thinking the former... # mapping? I'm thinking the former...
foreach my $vlid (@vlan_ids) { 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}; $mps{$vlid} = $all{$vlid};
} else { } else {
$mps{$vlid} = undef; $mps{$vlid} = undef;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment