diff --git a/network/policy/policy_windows.go b/network/policy/policy_windows.go index b6d001b6a2..03055320e2 100644 --- a/network/policy/policy_windows.go +++ b/network/policy/policy_windows.go @@ -215,8 +215,11 @@ func GetPolicyType(policy Policy) CNIPolicyType { } // Check if the type is ACLPolicy - if policy.Type == ACLPolicy { - return ACLPolicy + var aclPolicy hcn.AclPolicySetting + if err := json.Unmarshal(policy.Data, &aclPolicy); err == nil { + if aclPolicy.Action != "" { + return ACLPolicy + } } // Return empty string if the policy type is invalid