bigip_firewall_rule -- missing port_range (#47077)

port_range was missing from bigip_firewall_rule
This commit is contained in:
Wholeshoot 2018-10-15 19:16:39 -04:00 committed by Tim Rupp
parent 69e1088ec1
commit 96db9a55e2

View file

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