Fix undefined value error in Bridge.pm i_vlan

This commit is contained in:
Oliver Gorwits
2021-09-08 20:23:13 +01:00
parent fe39d38897
commit d8a532febe
2 changed files with 7 additions and 1 deletions

View File

@@ -366,7 +366,7 @@ sub i_vlan {
my $bridge = shift;
my $partial = shift;
my $index = $bridge->bp_index();
my $index = $bridge->bp_index() or return {};
# If given a partial it will be an ifIndex, we need to use dot1dBasePort
if ($partial) {