Commit 08f71970 authored by Kirk Webb's avatar Kirk Webb
Browse files

Fix listVlans() in snmpit_mellanox

.. to be consistent with the convention that inter-switch port members are
listed from the "local" switch side, and "node" or "endpoints" are listed
from the "node" side.
parent 8a959b8e
......@@ -1213,7 +1213,7 @@ sub listVlans($) {
push @vlifindexes, $ifindex;
}
}
my @ports = map {$_->getOtherEndPort()}
my @ports = map {$_->is_trunk_port() ? $_ : $_->getOtherEndPort()}
$self->convertPortFormat($PORT_FORMAT_PORT, @vlifindexes);
push @list, [$vlname, $vlnum, \@ports];
}
......
Markdown is supported
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