Skip to content

Commit 8326b8f

Browse files
authored
cs_ip_address: Implement assosiate with given IP address (#31)
1 parent f6ee8d5 commit 8326b8f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
minor_changes:
2+
- cs_ip_address - allow to pick a particular IP address for a network, available since CloudStack v4.13 (https://github.com/ngine-io/ansible-collection-cloudstack/issues/30).

plugins/modules/cs_ip_address.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ def present_ip_address(self):
197197
def associate_ip_address(self, ip_address):
198198
self.result['changed'] = True
199199
args = {
200+
# ipaddress only works with CloudStack >=v4.13
201+
'ipaddress': self.module.params.get('ip_address'),
200202
'account': self.get_account(key='name'),
201203
'domainid': self.get_domain(key='id'),
202204
'projectid': self.get_project(key='id'),

0 commit comments

Comments
 (0)