mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-01 13:59:09 -07:00
azure_rm_networkinterface: support the multiple ip configuration (#32882)
* support the mutilple ip configuration * Update azure_rm_networkinterface.py * add test * fix spell * make the virtual network name more flexiable * add test * fix * fix lint * add test * fix parameter * deprecate the flatten ip configuration * fix lint * fix encoding * fix mirror * fix * load model from common
This commit is contained in:
parent
e970ae102c
commit
6f67d68f5a
6 changed files with 416 additions and 213 deletions
|
@ -1648,10 +1648,10 @@ class AzureRMVirtualMachine(AzureRMModuleBase):
|
|||
self.fail(no_subnets_msg)
|
||||
|
||||
self.results['actions'].append('Created default public IP {0}'.format(self.name + '01'))
|
||||
pip = self.create_default_pip(self.resource_group, self.location, self.name, self.public_ip_allocation_method)
|
||||
pip = self.create_default_pip(self.resource_group, self.location, self.name + '01', self.public_ip_allocation_method)
|
||||
|
||||
self.results['actions'].append('Created default security group {0}'.format(self.name + '01'))
|
||||
group = self.create_default_securitygroup(self.resource_group, self.location, self.name, self.os_type,
|
||||
group = self.create_default_securitygroup(self.resource_group, self.location, self.name + '01', self.os_type,
|
||||
self.open_ports)
|
||||
|
||||
parameters = self.network_models.NetworkInterface(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue