diff --git a/go-controller/pkg/ovn/gateway.go b/go-controller/pkg/ovn/gateway.go index 5a0fb0c506..85b7ba23a3 100644 --- a/go-controller/pkg/ovn/gateway.go +++ b/go-controller/pkg/ovn/gateway.go @@ -388,10 +388,11 @@ func (gw *GatewayManager) GatewayInit( } if gw.netInfo.IsPrimaryNetwork() && gw.netInfo.TopologyType() == types.Layer2Topology { logicalRouterPort.Ipv6RaConfigs = map[string]string{ - "address_mode": "dhcpv6_stateful", - "send_periodic": "true", - "max_interval": "900", // 15 minutes - "min_interval": "300", // 5 minutes + "address_mode": "dhcpv6_stateful", + "send_periodic": "true", + "max_interval": "900", // 15 minutes + "min_interval": "300", // 5 minutes + "router_preference": "LOW", } if gw.netInfo.MTU() > 0 { logicalRouterPort.Ipv6RaConfigs["mtu"] = fmt.Sprintf("%d", gw.netInfo.MTU()) diff --git a/go-controller/pkg/ovn/secondary_layer2_network_controller_test.go b/go-controller/pkg/ovn/secondary_layer2_network_controller_test.go index c91485c0d8..0d18a1bb72 100644 --- a/go-controller/pkg/ovn/secondary_layer2_network_controller_test.go +++ b/go-controller/pkg/ovn/secondary_layer2_network_controller_test.go @@ -480,11 +480,12 @@ func expectedGWToNetworkSwitchRouterPort(name string, netInfo util.NetInfo, netw options := map[string]string{"gateway_mtu": fmt.Sprintf("%d", 1400)} lrp := expectedLogicalRouterPort(name, netInfo, options, networks...) lrp.Ipv6RaConfigs = map[string]string{ - "address_mode": "dhcpv6_stateful", - "mtu": "1400", - "send_periodic": "true", - "max_interval": "900", - "min_interval": "300", + "address_mode": "dhcpv6_stateful", + "mtu": "1400", + "send_periodic": "true", + "max_interval": "900", + "min_interval": "300", + "router_preference": "LOW", } return lrp }