Commit 246875b5 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Fix another UpdateTicket() bug.

parent cf33555d
......@@ -1548,6 +1548,20 @@ sub SliverWork($$)
!GeniHRN::Equal( $manager_uuid, $ENV{'MYURN'} ) &&
$manager_uuid ne $ENV{'MYUUID'});
#
# For a map of the interfaces.
#
foreach my $linkref (@{$ref->{'interface'}}) {
my $component_id = $linkref->{"component_id"};
my $virtual_iface_id = $linkref->{"virtual_id"};
$ifacemap{$virtual_id} = {}
if (!exists($ifacemap{$virtual_id}));
# Store reference so we can munge it below.
$ifacemap{$virtual_id}->{$virtual_iface_id} = $component_id;
}
# Already in the aggregate?
next
if (grep {$_ eq $virtual_id} keys(%nodemap));
......@@ -1587,20 +1601,6 @@ sub SliverWork($$)
}
push(@plabnodes, $vnode);
}
#
# For a map of the interfaces.
#
foreach my $linkref (@{$ref->{'interface'}}) {
my $component_id = $linkref->{"component_id"};
my $virtual_iface_id = $linkref->{"virtual_id"};
$ifacemap{$virtual_id} = {}
if (!exists($ifacemap{$virtual_id}));
# Store reference so we can munge it below.
$ifacemap{$virtual_id}->{$virtual_iface_id} = $component_id;
}
}
#
......
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