Anyone has any idea of how to add untagged/tagged vlans to an interface directly from a switch? #15690
Unanswered
rfreddy
asked this question in
Help Wanted!
Replies: 1 comment
-
You first have to search for the vlan by vlan_id (tag). Since Netbox allows you to re-use the same vlan_id, you may get more than one returned. If so, it's up to you to filter the responses or apply additional filters in the query - e.g. by site, by vlan group or whatever allows you to distinguish your broadcast domains. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Greetings, I'm trying to make an ansible playbook that runs this command "show interfaces switchport" that produces an output like this:
Name: GigabitEthernet 1/1
U 1641
T 1007
I'm quite close capture the data needed for the untagged_vlan and tagged_vlans fields but it seems they don't accept the vlan_id as an input, just the vlan_name. Any suggestion of how to achieve my goal? Any code or suggestion is greatly appreciated.
Thank you and have a great day.
Beta Was this translation helpful? Give feedback.
All reactions