customizations
customizations copied to clipboard
WIP: DeviceTypes Library Integration
Allows:
- Import DeviceTypes Library from repo
- Update repo (via pull)
- Import by Manufacturer
- Import by Model (filename)
Inspiration (code base): https://github.com/netbox-community/reports/pull/34 Associated issues: #35
I would suggest updating the documentation section to reference that the pip install ...
should be done in the venv, and suggest adding GitPython to the local_requirements.txt
to make sure it gets reinstalled on upgrade.
So, I got the repo import to work, but the two import scripts don't seem quite right. The Manufacturer script only offers me "ALL" and not a list of specific manufacturers. Similarly, the Model gives a drop down with no choices.
@mmahacek are you using netbox-docker? If so, remember that scripts are executed on worker node. To sync worker node with master try using volumes. Also remember about permissions
Also, I fixed problem with git repo (it was pulling to an improper dir)
No, I am not using docker. Running right in CentOS 7. Python 3.7
Do you have any worker node, or it's a single node instance? Have you tried the newest version (today's fixes)?
Single server. I'm not in the office yet. Will try your update in a little bit.
Changes work beautifully.
I've changed status to work in progress, because I'm considering adding one last option: import by part id (manual input)
I think we can close this given there area few working scripts in the community for this and a few netbox-plugins.