Commit 96016751 authored by Weibin Sun's avatar Weibin Sun
Browse files

getVlanIfaces returns actual ports for the vlan implemented by a layer 1 path

parent 196dc611
...@@ -216,6 +216,13 @@ sub getVlanIfaces($) { ...@@ -216,6 +216,13 @@ sub getVlanIfaces($) {
die("*** $0:\n". die("*** $0:\n".
" Unable to load members for $vlan\n"); " Unable to load members for $vlan\n");
} }
my %pathifaces = ();
if (!getPathVlanIfaces($vlanid, \%pathifaces)) {
foreach my $k (keys %pathifaces) {
push(@ports, $pathifaces{$k});
}
}
else {
foreach my $member (@members) { foreach my $member (@members) {
my $nodeid; my $nodeid;
my $iface; my $iface;
...@@ -227,6 +234,7 @@ sub getVlanIfaces($) { ...@@ -227,6 +234,7 @@ sub getVlanIfaces($) {
} }
push(@ports, "$nodeid:$iface"); push(@ports, "$nodeid:$iface");
} }
}
return @ports; return @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