From 97951a3ad91ace66a9fa685e7e3a8569fa18cb43 Mon Sep 17 00:00:00 2001 From: Durand Fabrice Date: Mon, 30 Sep 2024 17:12:25 -0400 Subject: [PATCH] Fixes test --- lib/pf/cidr_role.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pf/cidr_role.pm b/lib/pf/cidr_role.pm index 97c3a6b9db02..b1194dde8dab 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'});