Commit ac367f7b authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Minor fix to vlan ordering; not sure this code is going to survive

cause of the cross-stack limitations.
parent 910ca952
......@@ -917,7 +917,9 @@ COMMAND: foreach my $command (@commands) {
foreach my $vlanid (@vlans) {
my $vlan = $vlans{$vlanid};
if (!$vlan->link() || exists($newvlans{$vlan->link()})) {
if (!$vlan->link() ||
exists($newvlans{$vlan->link()}) ||
!exists($vlans{$vlan->link()})) {
push(@newvlans, $vlanid);
$newvlans{$vlanid} = $vlanid;
}
......
......@@ -927,7 +927,9 @@ COMMAND: foreach my $command (@commands) {
foreach my $vlanid (@vlans) {
my $vlan = $vlans{$vlanid};
if (!$vlan->link() || exists($newvlans{$vlan->link()})) {
if (!$vlan->link() ||
exists($newvlans{$vlan->link()}) ||
!exists($vlans{$vlan->link()})) {
push(@newvlans, $vlanid);
$newvlans{$vlanid} = $vlanid;
}
......
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