NET-1509:add ingresspersistentkeepalive and ingressmtu for extClient/RAC config (#3107)

* add ingresspersistentkeepalive and ingressmtu for extClient/RAC config

* add ingressmtu and PKA in api response

* add pka and mtu in api/nodes PUT call

* add default value for PKA and mtu for extClients
This commit is contained in:
Max Ma
2024-09-12 10:19:27 +02:00
committed by GitHub
parent 8f7ed903b3
commit 189ac27527
5 changed files with 64 additions and 40 deletions

View File

@@ -164,6 +164,14 @@ func CreateIngressGateway(netid string, nodeid string, ingress models.IngressReq
node.IngressGatewayRange = network.AddressRange
node.IngressGatewayRange6 = network.AddressRange6
node.IngressDNS = ingress.ExtclientDNS
node.IngressPersistentKeepalive = 20
if ingress.PersistentKeepalive != 0 {
node.IngressPersistentKeepalive = ingress.PersistentKeepalive
}
node.IngressMTU = 1420
if ingress.MTU != 0 {
node.IngressMTU = ingress.MTU
}
if servercfg.IsPro {
if _, exists := FailOverExists(node.Network); exists {
ResetFailedOverPeer(&node)