Skip to content

Commit

Permalink
Fixes test
Browse files Browse the repository at this point in the history
  • Loading branch information
fdurand committed Sep 30, 2024
1 parent 692b17e commit 97951a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pf/cidr_role.pm
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ sub update_switch_role_with_mask {
my $switch = pf::SwitchFactory->instantiate({ switch_mac => $locationlog->{'switch_mac'}, switch_ip => $locationlog->{'switch_ip'}, switch_id => $locationlog->{'switch'}});
return undef unless ($switch);
return undef unless (pf::util::isenabled($switch->{'_NetworkMap'}));
return undef unless $switch->{"_".$locationlog->{'role'}."NetworkFrom"} ne "dynamic";
return undef unless $switch->{"_".$locationlog->{'role'}."NetworkFrom"} eq "dynamic";

my $networks = $switch->cache_distributed->get($locationlog->{'switch'}.".".$locationlog->{'role'});

Expand Down

0 comments on commit 97951a3

Please sign in to comment.