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

Fix for one of the three failure modes we are seeing lately.

mapVlansToSwitches to was dropping a switch when the "path" consisted
of a single switch. This solves the problem with createVlan trying
to access a switch that is not in the stack (undefined value in
dereference).
parent 3984a270
......@@ -1210,6 +1210,13 @@ sub mapVlansToSwitches(@)
getExperimentVlanPorts($vlan_id));
my %map = mapPortsToDevices(@ports);
#
# Initial set of switches.
#
foreach my $switch (keys(%map)) {
$switches{$switch} = 1;
}
#
# We want to use the DB path if it exists.
#
......
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