Skip to content

Commit

Permalink
[agent] and one more fix for acl actual state load
Browse files Browse the repository at this point in the history
  • Loading branch information
Frostman committed Dec 15, 2023
1 parent 02e5b59 commit c9e0f88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/agent/dozer/bcm/spec_acl.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ func unmarshalOCACLInterfaces(ocVal *oc.OpenconfigAcl_Acl) (map[string]*dozer.Sp
var ingress *string
var egress *string

if iface.IngressAclSets == nil {
if iface.IngressAclSets != nil {
for key, value := range iface.IngressAclSets.IngressAclSet {
if key.Type != oc.OpenconfigAcl_ACL_TYPE_ACL_IPV4 {
continue
Expand All @@ -335,7 +335,7 @@ func unmarshalOCACLInterfaces(ocVal *oc.OpenconfigAcl_Acl) (map[string]*dozer.Sp
}
}

if iface.EgressAclSets == nil {
if iface.EgressAclSets != nil {
for key, value := range iface.EgressAclSets.EgressAclSet {
if key.Type != oc.OpenconfigAcl_ACL_TYPE_ACL_IPV4 {
continue
Expand Down

0 comments on commit c9e0f88

Please sign in to comment.