Skip to content

Commit

Permalink
udpn, l2, gw: Configure LOW router preference
Browse files Browse the repository at this point in the history
Signed-off-by: Enrique Llorente <ellorent@redhat.com>
  • Loading branch information
qinqon authored and oshoval committed Oct 13, 2024
1 parent 2cbd758 commit 2ef2dbc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
9 changes: 5 additions & 4 deletions go-controller/pkg/ovn/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 2ef2dbc

Please sign in to comment.