diff --git a/lib/pf/cidr_role.pm b/lib/pf/cidr_role.pm index 97c3a6b9db0..b1194dde8da 100644 --- a/lib/pf/cidr_role.pm +++ b/lib/pf/cidr_role.pm @@ -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'});