Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function .ipam.get_next_available_ip(prefix=prefix) does not work. #51

Open
oceans1908 opened this issue Jan 27, 2022 · 1 comment
Open

Comments

@oceans1908
Copy link

oceans1908 commented Jan 27, 2022

netbox.ipam.get_next_available_ip(prefix='x.x.x.x/xx')

File "/usr/local/lib/python3.9/site-packages/netbox/ipam.py", line 178, in get_next_available_ip
return self.netbox_con.get(param, limit=1)[0]['address']
File "/usr/local/lib/python3.9/site-packages/netbox/connection.py", line 96, in get
return resp_data['results']
TypeError: list indices must be integers or slices, not str

@jagter
Copy link
Owner

jagter commented Sep 4, 2022

It's not working with the fix in #52 yet. Needs to be fix in a new release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants