Skip to content

Commit

Permalink
Merge pull request #4624 from tssurya/udn-remove-GR-conntrack-zone
Browse files Browse the repository at this point in the history
Don't use zone 0 for UDN Networks
  • Loading branch information
tssurya authored Aug 15, 2024
2 parents afe2d22 + c5285ab commit c30af9a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
6 changes: 5 additions & 1 deletion go-controller/pkg/ovn/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,13 @@ func (gw *GatewayManager) GatewayInit(
"dynamic_neigh_routers": "true",
"chassis": l3GatewayConfig.ChassisID,
"lb_force_snat_ip": "router_ip",
"snat-ct-zone": "0",
"mac_binding_age_threshold": types.GRMACBindingAgeThreshold,
}
// set the snat-ct-zone only for the default network
// for UDN's OVN will pick a random one
if gw.netInfo.GetNetworkName() == types.DefaultNetworkName {
logicalRouterOptions["snat-ct-zone"] = "0"
}
logicalRouterExternalIDs := map[string]string{
"physical_ip": physicalIPs[0],
"physical_ips": strings.Join(physicalIPs, ","),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -453,12 +453,8 @@ func expectedGWEntities(nodeName string, netInfo util.NetInfo, gwConfig util.L3G
expectedGatewayChassis(nodeName, netInfo, gwConfig),
expectedStaticMACBinding(gwRouterName, nextHopMasqueradeIP()),
)
for _, entity := range expectedExternalSwitchAndLSPs(netInfo, gwConfig, nodeName) {
expectedEntities = append(expectedEntities, entity)
}
for _, entity := range expectedJoinSwitchAndLSPs(netInfo, nodeName) {
expectedEntities = append(expectedEntities, entity)
}
expectedEntities = append(expectedEntities, expectedExternalSwitchAndLSPs(netInfo, gwConfig, nodeName)...)
expectedEntities = append(expectedEntities, expectedJoinSwitchAndLSPs(netInfo, nodeName)...)
return expectedEntities
}

Expand Down Expand Up @@ -757,7 +753,6 @@ func networkSubnet(netInfo util.NetInfo) string {
func gwRouterOptions(gwConfig util.L3GatewayConfig) map[string]string {
return map[string]string{
"lb_force_snat_ip": "router_ip",
"snat-ct-zone": "0",
"mac_binding_age_threshold": "300",
"chassis": gwConfig.ChassisID,
"always_learn_from_arp_request": "false",
Expand Down

0 comments on commit c30af9a

Please sign in to comment.