Commit e81ad4f1 authored by Jonathon Duerig's avatar Jonathon Duerig
Browse files

Tweak vlan availability to respect the '-a' allnodes option.

parent 7dae8868
...@@ -478,7 +478,11 @@ while (my ($cnode, $ccard, $cport, $ciface, $enode, $ecard, $eport, $eiface, ...@@ -478,7 +478,11 @@ while (my ($cnode, $ccard, $cport, $ciface, $enode, $ecard, $eport, $eiface,
if (! defined($external_link_urn)) { if (! defined($external_link_urn)) {
$external_link_urn = $external_network_link_urn; $external_link_urn = $external_network_link_urn;
} }
if ($allnodes) {
$external_nodes{$enode} = $vlanList;
} else {
$external_nodes{$enode} = AvailableVlans($vlanList); $external_nodes{$enode} = AvailableVlans($vlanList);
}
$external_managers{"$cnode:$enode"} = $external_manager_urn; $external_managers{"$cnode:$enode"} = $external_manager_urn;
$external_ifaces{"$cnode:$enode"} = $external_iface_urn; $external_ifaces{"$cnode:$enode"} = $external_iface_urn;
$external_links{"$cnode:$enode"} = $external_link_urn; $external_links{"$cnode:$enode"} = $external_link_urn;
......
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