Commit 050d4acf authored by Jonathon Duerig's avatar Jonathon Duerig

Make virtual_interface_id parsing more lenient.

parent 50d9cc56
......@@ -1212,12 +1212,14 @@ sub GetTicketAuxAux($$$$$$$$)
my $virtual_node_id = GeniXML::GetText("virtual_node_id",
$iface_ref);
my $virtual_port_id = GeniXML::GetText("virtual_interface_id",
$iface_ref) ||
GeniXML::GetText("virtual_port_id",
$iface_ref);
my $component_id = GeniXML::GetText("component_id",
$iface_ref);
if (!defined($virtual_node_id) || !defined($virtual_port_id)) {
$response = GeniResponse->Create(GENIRESPONSE_ERROR, undef,
"Virtual port ID or virtual interface ID missing on interface");
"Virtual node ID or virtual interface ID missing on interface");
goto bad;
}
my $linkref = $vportmap{"$virtual_node_id:$virtual_port_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