Commit 11201729 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

When resolving a node, resolve the physical node if it is a virtual

node. This happens when building a tunnel on a virtual node using a
0.2 rspec; the old manifest put the URN of the virtual node in, while
the V2 manifest puts in the physical node. Since resolving a virtual
node returns nothing useful even now, I figure this is safe.
parent a0a8b1b2
......@@ -141,6 +141,11 @@ sub Resolve($)
if ($type eq "node") {
my $node = $object;
# Not sure about this, but I do know that Resolving a virtnode
# is not useful right now.
if ($node->isvirtnode()) {
$node = Node->Lookup($node->phys_nodeid());
my $rspec = GeniCM::GetAdvertisement(0, $node->node_id(), "0.1", undef);
if (! defined($rspec)) {
print STDERR "Could not get advertisement for $node!\n";
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