customizations icon indicating copy to clipboard operation
customizations copied to clipboard

WIP: DeviceTypes Library Integration

Open Dzordzu opened this issue 4 years ago • 9 comments

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

Dzordzu avatar Sep 10 '20 10:09 Dzordzu

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.

mmahacek avatar Sep 11 '20 18:09 mmahacek

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 avatar Sep 11 '20 18:09 mmahacek

@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

Dzordzu avatar Sep 23 '20 07:09 Dzordzu

Also, I fixed problem with git repo (it was pulling to an improper dir)

Dzordzu avatar Sep 23 '20 07:09 Dzordzu

No, I am not using docker. Running right in CentOS 7. Python 3.7

mmahacek avatar Sep 23 '20 13:09 mmahacek

Do you have any worker node, or it's a single node instance? Have you tried the newest version (today's fixes)?

Dzordzu avatar Sep 23 '20 13:09 Dzordzu

Single server. I'm not in the office yet. Will try your update in a little bit.

mmahacek avatar Sep 23 '20 14:09 mmahacek

Changes work beautifully.

mmahacek avatar Sep 23 '20 15:09 mmahacek

I've changed status to work in progress, because I'm considering adding one last option: import by part id (manual input)

Dzordzu avatar Sep 23 '20 18:09 Dzordzu

I think we can close this given there area few working scripts in the community for this and a few netbox-plugins.

ryanmerolle avatar Oct 22 '22 17:10 ryanmerolle