bigip_firewall_rule -- missing port_range (#47077)

port_range was missing from bigip_firewall_rule
pull/47099/merge
Wholeshoot 6 years ago committed by Tim Rupp
parent 69e1088ec1
commit 96db9a55e2

@ -485,6 +485,8 @@ class ModuleParameters(Parameters):
result += [('vlan', fq_name(self.partition, x['vlan']))] result += [('vlan', fq_name(self.partition, x['vlan']))]
elif 'port' in x and x['port'] is not None: elif 'port' in x and x['port'] is not None:
result += [('port', str(x['port']))] result += [('port', str(x['port']))]
elif 'port_range' in x and x['port_range'] is not None:
result += [('port', x['port_range'])]
elif 'port_list' in x and x['port_list'] is not None: elif 'port_list' in x and x['port_list'] is not None:
result += [('port_list', fq_name(self.partition, x['port_list']))] result += [('port_list', fq_name(self.partition, x['port_list']))]
if result: if result:
@ -507,6 +509,8 @@ class ModuleParameters(Parameters):
result += [('geo', x['country'])] result += [('geo', x['country'])]
elif 'port' in x and x['port'] is not None: elif 'port' in x and x['port'] is not None:
result += [('port', str(x['port']))] result += [('port', str(x['port']))]
elif 'port_range' in x and x['port_range'] is not None:
result += [('port', x['port_range'])]
elif 'port_list' in x and x['port_list'] is not None: elif 'port_list' in x and x['port_list'] is not None:
result += [('port_list', fq_name(self.partition, x['port_list']))] result += [('port_list', fq_name(self.partition, x['port_list']))]
if result: if result:

Loading…
Cancel
Save