I would like to use this openstack command using the Python API. Going through the Neutron documentation, I found this page.
I tried executing 'network_ip_availability.ListIpAvailability(neutron.list_networks())' but it I get a 'TypeError: __init__() takes at least 3 arguments (2 given)'.
I cannot figure out what else does it need aside from a list of networks to display its IPs.
Any help in understanding on how to use these commands in Python API will be appreciated. Thank you.
I wouldn't use that internal API, but use the public one here. You'll need:
pip install openstacksdk