Open haukened opened 2 years ago
Came for the same error, traced to _choice API removed. It seems this project is abandoned since years, so don't hold your breath... See https://github.com/scaleway/netbox-netprod-importer/issues/39
This has worked for me in the past, but haven't tried it for a while:
source /opt/netbox/venv/bin/activate
pip uninstall netbox-netprod-importer netboxapi
pip install git+https://github.com/scaleway/python-netboxapi.git
pip install git+https://github.com/nahun/netbox-netprod-importer.git@options_choices
Thank you @ecoutinho it worked on a fresh installation!
Came for the same error, traced to _choice API removed. It seems this project is abandoned since years, so don't hold your breath... See #39
To give some details: I used to work on this project when I was working for Scaleway in the network team. This project was useful to move to Netbox by doing a discovery of the entire fleet. I pushed to opensource it as I found it to be useful for other infrastructures.
I don't work for Scaleway since 2019. The network team, from what I understood, doesn't have someone to dedicate to this project (I don't know if it's still used, from what I heard they did a few quick patches that they kept internal, but I don't know their current usage).
So yes, the approach you should have with this project is to take it as a base that you'll need to adapt for the devices models that you have in your infrastructure, and fix the API changes that happened in Netbox in the last 3 years. I can't really change the README to make it clear and the major things to fix/adapt, as I gave the ownership to Scaleway so I let the decision on them.
Thank you @aruhier for the details. Generally speaking a discover/map feature should be one of the basic parts of Netbox. Mapping the existing is the base for doing any useful action.
Hello, while trying to import my Nexus device, i get the following error when the importer hits the netbox API:
404 Client Error: Not Found for url: https://ipam.xxxx.com/api/dcim/_choices/?limit=50 --
it doesn't appear that the
/api/dcim/
endpoint has a_choices
option anymore: