Skip to content

Inventory: Fetch VLANs, and attach to interfaces VLANs #205

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

Closed
DouglasHeriot opened this issue May 13, 2020 · 2 comments
Closed

Inventory: Fetch VLANs, and attach to interfaces VLANs #205

DouglasHeriot opened this issue May 13, 2020 · 2 comments
Labels
help wanted Extra attention is needed PR Required

Comments

@DouglasHeriot
Copy link
Contributor

ISSUE TYPE
  • Feature Idea
SOFTWARE VERSIONS
Ansible:

v2.9.7

Netbox:

v2.8.3

Collection:

v0.2.0

SUMMARY

NetBox can track the untagged and tagged VLANs of an interface. A VLAN may have custom fields and useful attributes to have as part of the inventory. Fetching interfaces only returns the brief details of an interface and not all these extra fields. It would like to fetch a lookup of VLANs, and insert the full VLAN object instead of the brief one into interfaces.

@nahun
Copy link
Contributor

nahun commented Nov 3, 2021

Hi @DouglasHeriot. Adding detailed VLAN information to every interface will duplicate a lot of information across all interfaces. It could be thousands of times when pulling an inventory.

While its more work for the user, a separate lookup for the VLANs outside of the inventory will need to be done to get that information. This makes sense from a data structure point of view.

@rodvand rodvand closed this as completed Nov 3, 2021
@sc68cal
Copy link
Contributor

sc68cal commented Nov 4, 2021

I think this is an excellent use case for the new GraphQL support that NetBox provides.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed PR Required
Projects
None yet
Development

No branches or pull requests

5 participants