Commit 25d6cc08 authored by Leigh B Stoller's avatar Leigh B Stoller

Kill off sliver_ids in interfaces in rspecs We should do the same for

nodes, but not necessary just yet.
parent 90dad75d
......@@ -1425,6 +1425,9 @@ sub Create()
my $hrn = "${PGENIDOMAIN}.$nodeid.$iface";
my $resource_id = "$nodeid//$iface";
# Do not allow rspec to specify this;
GeniXML::DeleteSliverId($rspec);
my $sliver = GeniSliver->Create($slice, $user, $interface_uuid,
"Interface", $resource_id,
$hrn, $nickname, $rspec);
......
......@@ -509,6 +509,13 @@ sub GetSliverId($)
return GetFirstText($node, "sliver_urn", "sliver_id");
}
sub DeleteSliverId($)
{
my ($node) = @_;
$node->removeAttribute("sliver_id");
$node->removeAttribute("sliver_urn");
}
sub GetManagerId($)
{
my ($node) = @_;
......
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