Commit b67f5f15 authored by Jonathon Duerig's avatar Jonathon Duerig

Sometimes interfaces are URNs, sometimes they're not. Fixed to do the right thing regardless.

parent 050d4acf
......@@ -2127,9 +2127,11 @@ sub SliverWorkAux($$$$$$$)
my $interface;
if ($iface_name ne "lo0") {
my ($authority, $short_node, $short_iface) =
GeniHRN::ParseInterface($iface_name);
$iface_name = $short_iface;
if (GeniHRN::IsValid($iface_name)) {
my ($authority, $short_node, $short_iface) =
GeniHRN::ParseInterface($iface_name);
$iface_name = $short_iface;
}
$interface = Interface->LookupByIface($nodeobject,$iface_name);
if (!defined($interface)) {
$message = "No such interface ".
......
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