Commit d3d86a10 authored by Leigh B Stoller's avatar Leigh B Stoller

Minor bug fix.

parent 4cf3fffe
...@@ -3155,14 +3155,6 @@ sub SliverWorkAux($$$$$$$$) ...@@ -3155,14 +3155,6 @@ sub SliverWorkAux($$$$$$$$)
my $manager_id = GeniXML::GetManagerId($ref); my $manager_id = GeniXML::GetManagerId($ref);
my $virt_subtype = GeniXML::GetVirtualizationSubtype($ref); my $virt_subtype = GeniXML::GetVirtualizationSubtype($ref);
#
# Keep track of mapping between component_id and client_id to
# reject requests that change the client_id bound to a
# component_id.
if ($virt_subtype eq "raw" || $virt_subtype eq "raw-pc") {
$phys2nickname{$resource_id} = $node_nickname;
}
# Always populate iface2node mapping, even if we let the node # Always populate iface2node mapping, even if we let the node
# pass through. # pass through.
foreach my $iface (GeniXML::FindNodes("n:interface", foreach my $iface (GeniXML::FindNodes("n:interface",
...@@ -3179,6 +3171,14 @@ sub SliverWorkAux($$$$$$$$) ...@@ -3179,6 +3171,14 @@ sub SliverWorkAux($$$$$$$$)
next; next;
} }
#
# Keep track of mapping between component_id and client_id to
# reject requests that change the client_id bound to a
# component_id.
if ($virt_subtype eq "raw" || $virt_subtype eq "raw-pc") {
$phys2nickname{$resource_id} = $node_nickname;
}
# #
# Lan nodes are fake and do not go into the virt topo. Need # Lan nodes are fake and do not go into the virt topo. Need
# to remember them though, for when we do the links below. # to remember them though, for when we do the links below.
......
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