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,14 +499,16 @@ add rule inet filter forward ip6 saddr {netaddr6} counter jump {vxlannic}-out
) )
def createFirewall(self): def createFirewall(self):
# For future use if self.nettype == 'managed':
self.updateFirewallRules() # For future use
self.updateFirewallRules()
def createGateways(self): def createGateways(self):
if self.ip6_gateway != 'None': if self.nettype == 'managed':
self.createGateway6Address() if self.ip6_gateway != 'None':
if self.ip4_gateway != 'None': self.createGateway6Address()
self.createGateway4Address() if self.ip4_gateway != 'None':
self.createGateway4Address()
def createGateway6Address(self): def createGateway6Address(self):
if self.this_node.router_state == 'primary': if self.this_node.router_state == 'primary':