added check for undef port in fw_mac
This commit is contained in:
@@ -110,6 +110,7 @@ sub fw_mac {
|
|||||||
# remove port 0 forwarding table entries, only port 0 static entries
|
# remove port 0 forwarding table entries, only port 0 static entries
|
||||||
foreach my $fw (keys %$fw_mac){
|
foreach my $fw (keys %$fw_mac){
|
||||||
my $port = $fw_port->{$fw};
|
my $port = $fw_port->{$fw};
|
||||||
|
next unless defined $port;
|
||||||
delete $fw_mac->{$fw} if $port == 0;
|
delete $fw_mac->{$fw} if $port == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user