Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions go-controller/pkg/node/bridgeconfig/bridgeflows.go
Original file line number Diff line number Diff line change
Expand Up @@ -632,12 +632,12 @@ func (b *BridgeConfiguration) commonFlows(hostSubnets []*net.IPNet) ([]string, e
}

if ofPortPhys != "" {
// table 0, packets coming from external or other localnet ports. Send it through conntrack and
// resubmit to table 1 to know the state and mark of the connection.
// table 0, packets coming from external or other localnet ports and destined to OVN or LOCAL.
// Send it through conntrack and resubmit to table 1 to know the state and mark of the connection.
// Note, there are higher priority rules that take care of traffic coming from LOCAL and OVN ports.
dftFlows = append(dftFlows,
fmt.Sprintf("cookie=%s, priority=50, ip, actions=ct(zone=%d, nat, table=1)",
nodetypes.DefaultOpenFlowCookie, config.Default.ConntrackZone))
fmt.Sprintf("cookie=%s, priority=50, ip, dl_dst=%s, actions=ct(zone=%d, nat, table=1)",
nodetypes.DefaultOpenFlowCookie, bridgeMacAddress, config.Default.ConntrackZone))
}
}

Expand Down Expand Up @@ -733,8 +733,8 @@ func (b *BridgeConfiguration) commonFlows(hostSubnets []*net.IPNet) ([]string, e
// table 0, packets coming from external. Send it through conntrack and
// resubmit to table 1 to know the state and mark of the connection.
dftFlows = append(dftFlows,
fmt.Sprintf("cookie=%s, priority=50, in_port=%s, ipv6, "+
"actions=ct(zone=%d, nat, table=1)", nodetypes.DefaultOpenFlowCookie, ofPortPhys, config.Default.ConntrackZone))
fmt.Sprintf("cookie=%s, priority=50, ipv6, dl_dst=%s, actions=ct(zone=%d, nat, table=1)",
nodetypes.DefaultOpenFlowCookie, bridgeMacAddress, config.Default.ConntrackZone))
}
}
if ofPortPhys != "" {
Expand Down