Skip to content

Commit 9216651

Browse files
fix(netpol): lax dhcp must be after lb for egress (kubeovn#5810)
Signed-off-by: SkalaNetworks <contact@skala.network>
1 parent 2bf5327 commit 9216651

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/ovs/ovn-nb-acl.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@ func (c *OVNNbClient) UpdateDefaultBlockExceptionsACLOps(npName, pgName, npNames
128128
newACL := func(match string) {
129129
options := func(acl *ovnnb.ACL) {
130130
setACLName(acl, npName)
131+
if direction == ovnnb.ACLDirectionFromLport {
132+
if acl.Options == nil {
133+
acl.Options = make(map[string]string)
134+
}
135+
acl.Options["apply-after-lb"] = "true"
136+
}
131137
}
132138

133139
acl, err := c.newACLWithoutCheck(pgName, direction, priority, match, ovnnb.ACLActionAllowRelated, util.NetpolACLTier, options)

0 commit comments

Comments
 (0)