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

Do not worry about interface_state records for management interfaces.

parent 481a8b39
...@@ -201,8 +201,11 @@ sub Lookup($$$$) ...@@ -201,8 +201,11 @@ sub Lookup($$$$)
return undef return undef
if (!$query_result); if (!$query_result);
# If a management interface, the lack of an interface_state
# record is not a big deal, so let it slide.
return undef return undef
if (!$query_result->numrows); if (!$query_result->numrows &&
$iface_row->{'role'} ne TBDB_IFACEROLE_MANAGEMENT());
my $state_row = $query_result->fetchrow_hashref(); my $state_row = $query_result->fetchrow_hashref();
......
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