How to get VLAN / VLAN Group with netbox.netbox.nb_inventory? #950
Closed
patrickpreuss
started this conversation in
General
Replies: 1 comment 1 reply
-
Usually I use the It'll be something like: - name: Obtain list of vlans from NetBox
debug:
msg: >
"{{ item }}"
loop: "{{ query('netbox.netbox.nb_lookup', 'vlans',
api_endpoint='http://localhost/',
api_filter='device=My-Device',
token='<redacted>') }}" You can add site, vlan group, and other filters to the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
How i do get the VLANs for a device via netbox.netbox.nb_inventory?
Currently the VLAN Groups has the Scope of Site.
What would be the preferred Way?
thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions