|
|
@ -239,6 +239,8 @@ class AnsibleCloudStackPortforwarding(AnsibleCloudStack):
|
|
|
|
|
|
|
|
|
|
|
|
args = {}
|
|
|
|
args = {}
|
|
|
|
args['ipaddressid'] = self.get_ip_address(key='id')
|
|
|
|
args['ipaddressid'] = self.get_ip_address(key='id')
|
|
|
|
|
|
|
|
args['account'] = self.get_account(key='name')
|
|
|
|
|
|
|
|
args['domainid'] = self.get_domain(key='id')
|
|
|
|
args['projectid'] = self.get_project(key='id')
|
|
|
|
args['projectid'] = self.get_project(key='id')
|
|
|
|
portforwarding_rules = self.cs.listPortForwardingRules(**args)
|
|
|
|
portforwarding_rules = self.cs.listPortForwardingRules(**args)
|
|
|
|
|
|
|
|
|
|
|
@ -271,6 +273,8 @@ class AnsibleCloudStackPortforwarding(AnsibleCloudStack):
|
|
|
|
args['vmguestip'] = self.get_vm_guest_ip()
|
|
|
|
args['vmguestip'] = self.get_vm_guest_ip()
|
|
|
|
args['ipaddressid'] = self.get_ip_address(key='id')
|
|
|
|
args['ipaddressid'] = self.get_ip_address(key='id')
|
|
|
|
args['virtualmachineid'] = self.get_vm(key='id')
|
|
|
|
args['virtualmachineid'] = self.get_vm(key='id')
|
|
|
|
|
|
|
|
args['account'] = self.get_account(key='name')
|
|
|
|
|
|
|
|
args['domainid'] = self.get_domain(key='id')
|
|
|
|
|
|
|
|
|
|
|
|
portforwarding_rule = None
|
|
|
|
portforwarding_rule = None
|
|
|
|
self.result['changed'] = True
|
|
|
|
self.result['changed'] = True
|
|
|
|