ansible-collection-cloudstack icon indicating copy to clipboard operation
ansible-collection-cloudstack copied to clipboard

Get Source NAT IP on Network Create or add Network Info

Open loth opened this issue 2 years ago • 2 comments

When creating a isolated network with source nat, I don't see any way to get the source nat IP it snags when it creates it. I think the workaround is to create another public address then register that. This of course wastes an IP so it would be better if I was able to just get the source nat IP.

Thanks!

loth avatar May 02 '23 01:05 loth

I encountered this same issue. I've put some preliminary code to get it working for my needs. If you have better suggestions for naming and behaviour I can update it. Python is not my native language so consider this very experimental proof of concept level work.

https://github.com/yyzkevin/ansible-collection-cloudstack/commit/357d24eca3129b30f9ac952797cc06806072aaf5

yyzkevin avatar Dec 14 '24 05:12 yyzkevin

Thanks for sharing.

@yyzkevin would you mind creating a PR?

resmo avatar Dec 14 '24 08:12 resmo