Skip to content

Commit

Permalink
udp, l2, gw: Configure RA priodicity
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 23da66a commit 2cbd758
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion go-controller/pkg/ovn/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,10 @@ func (gw *GatewayManager) GatewayInit(
}
if gw.netInfo.IsPrimaryNetwork() && gw.netInfo.TopologyType() == types.Layer2Topology {
logicalRouterPort.Ipv6RaConfigs = map[string]string{
"address_mode": "dhcpv6_stateful",
"address_mode": "dhcpv6_stateful",
"send_periodic": "true",
"max_interval": "900", // 15 minutes
"min_interval": "300", // 5 minutes
}
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,8 +480,11 @@ 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",
"address_mode": "dhcpv6_stateful",
"mtu": "1400",
"send_periodic": "true",
"max_interval": "900",
"min_interval": "300",
}
return lrp
}
Expand Down

0 comments on commit 2cbd758

Please sign in to comment.