Don't create gateways or rules unless managed

This commit is contained in:
Joshua Boniface 2019-03-17 12:33:54 -04:00
parent aee130f65f
commit c52a1845e3
1 changed files with 8 additions and 6 deletions

View File

@ -499,10 +499,12 @@ add rule inet filter forward ip6 saddr {netaddr6} counter jump {vxlannic}-out
) )
def createFirewall(self): def createFirewall(self):
if self.nettype == 'managed':
# For future use # For future use
self.updateFirewallRules() self.updateFirewallRules()
def createGateways(self): def createGateways(self):
if self.nettype == 'managed':
if self.ip6_gateway != 'None': if self.ip6_gateway != 'None':
self.createGateway6Address() self.createGateway6Address()
if self.ip4_gateway != 'None': if self.ip4_gateway != 'None':