mirror of
https://github.com/gravitl/netmaker.git
synced 2025-11-02 13:04:11 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user