From 11665819b5157e7237359a994cc7732a7dbd5e6b Mon Sep 17 00:00:00 2001 From: zcq98 Date: Fri, 2 Feb 2024 09:20:00 +0800 Subject: [PATCH] fix: security group base acl direction Signed-off-by: zcq98 --- pkg/ovs/ovn-nb-acl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ovs/ovn-nb-acl.go b/pkg/ovs/ovn-nb-acl.go index 30b214a1a9b8..45574ee76edd 100644 --- a/pkg/ovs/ovn-nb-acl.go +++ b/pkg/ovs/ovn-nb-acl.go @@ -303,7 +303,7 @@ func (c *OVNNbClient) CreateSgBaseACL(sgName, direction string) error { acls := make([]*ovnnb.ACL, 0) newACL := func(match string) { - acl, err := c.newACL(pgName, ovnnb.ACLDirectionToLport, util.SecurityGroupBasePriority, match, ovnnb.ACLActionAllowRelated) + acl, err := c.newACL(pgName, direction, util.SecurityGroupBasePriority, match, ovnnb.ACLActionAllowRelated) if err != nil { klog.Error(err) klog.Errorf("new base ingress acl for security group %s: %v", sgName, err)