'openstack ip availability list/show' in Python API

asked 2018-10-11 13:43:55 -0500

CheddarChiz gravatar image


I would like to use this openstack command using the Python API. Going through the Neutron documentation, I found this https://github.com/openstack/python-neutronclient/blob/15d99a7d68435132fd2fbd4ba604c3796802a83e/neutronclient/neutron/v2_0/network_ip_availability.py (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.

edit retag flag offensive close merge delete