Only remove gateways when managed
This commit is contained in:
parent
3ec09686d2
commit
deb4247e25
|
@ -716,6 +716,7 @@ add rule inet filter forward ip6 saddr {netaddr6} counter jump {vxlannic}-out
|
||||||
common.reload_firewall_rules(self.logger, nftables_base_filename)
|
common.reload_firewall_rules(self.logger, nftables_base_filename)
|
||||||
|
|
||||||
def removeGateways(self):
|
def removeGateways(self):
|
||||||
|
if self.nettype == 'managed':
|
||||||
if self.ip6_gateway != 'None':
|
if self.ip6_gateway != 'None':
|
||||||
self.removeGateway6Address()
|
self.removeGateway6Address()
|
||||||
if self.ip4_gateway != 'None':
|
if self.ip4_gateway != 'None':
|
||||||
|
|
Loading…
Reference in New Issue