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

Return virtual MAC in manifest when allocating virtual nodes.

parent 3b6324ca
......@@ -3391,6 +3391,7 @@ sub SliverWorkAux($$$$$$$)
my $outref;
my $sliverName = "sliver_urn";
my $macName = "MAC";
my $macAddress = $interface->mac();
my $ipAddress;
if (defined($vinterface)) {
$ipAddress = $vinterface->IP();
......@@ -3426,11 +3427,14 @@ sub SliverWorkAux($$$$$$$)
$sliver->component_urn());
GeniXML::SetText("component_id", $ifaceref,
$sliver->component_urn());
if (defined($vinterface)) {
$macAddress = $vinterface->mac();
}
}
if (defined($outref)) {
GeniXML::SetText($sliverName, $outref,
$sliver->sliver_urn());
GeniXML::SetText($macName, $outref, $interface->mac())
GeniXML::SetText($macName, $outref, $macAddress)
if (defined($interface));
}
......
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