mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Fixes some NIC bugs (#39213)
* add loadbalancer * dict check nullable * add default vallue when get list * create backend addr pool * fix the set * fix to dict * fix ideponement * use param security group name when create * nic can has no nsg * add test * fix * fix * fix * fix idemponet * add document * fix test * add configuration * fix * fix * remove all resources * fix * fix test * add version added * fix lint * fix lint * fix lint * remove new feature and only submit bugfix * remove useless test * fix
This commit is contained in:
committed by
Zim Kalinowski
parent
72456711c3
commit
39ca41eb1b
@@ -814,8 +814,15 @@ class AzureRMModuleBase(object):
|
||||
priority += 1
|
||||
rule_name = "Rule_{0}".format(priority)
|
||||
parameters.security_rules.append(
|
||||
self.network_models.SecurityRule('Tcp', '*', '*', 'Allow', 'Inbound', source_port_range='*',
|
||||
destination_port_range=str(port), priority=priority, name=rule_name)
|
||||
self.network_models.SecurityRule(protocol='Tcp',
|
||||
source_address_prefix='*',
|
||||
destination_address_prefix='*',
|
||||
access='Allow',
|
||||
direction='Inbound',
|
||||
source_port_range='*',
|
||||
destination_port_range=str(port),
|
||||
priority=priority,
|
||||
name=rule_name)
|
||||
)
|
||||
|
||||
self.log('Creating default security group {0}'.format(security_group_name))
|
||||
|
||||
Reference in New Issue
Block a user