Commit 5149d842 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Look for IP address on other side of stitch link, so hosts file is

correct.
parent b9e259ed
...@@ -1798,6 +1798,7 @@ sub GetTicketAuxAux($$$$$$$$$) ...@@ -1798,6 +1798,7 @@ sub GetTicketAuxAux($$$$$$$$$)
# the user has specified something impossible. # the user has specified something impossible.
# #
if (exists($external_nodemap{$node_nickname})) { if (exists($external_nodemap{$node_nickname})) {
my $external_noderef = $external_nodemap{$node_nickname};
my $stitchpath = GeniStitch->Lookup($lanname, $rspec); my $stitchpath = GeniStitch->Lookup($lanname, $rspec);
if (! defined($stitchpath)) { if (! defined($stitchpath)) {
$response = $response =
...@@ -1879,8 +1880,11 @@ sub GetTicketAuxAux($$$$$$$$$) ...@@ -1879,8 +1880,11 @@ sub GetTicketAuxAux($$$$$$$$$)
$iface_vport = $external_vportmap{$node_nickname}; $iface_vport = $external_vportmap{$node_nickname};
$external_vportmap{$node_nickname} += 1; $external_vportmap{$node_nickname} += 1;
$external_linkmap{$lanname} = $linkref; $external_linkmap{$lanname} = $linkref;
} else {
# Allow rspec to provide IP for other side.
$ip = GeniXML::GetIp($ref, $external_noderef);
}
else {
# #
# Sanity check the interface. # Sanity check the 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