Replies: 4 comments 1 reply
-
I found the API endpoint ipam.vlans/?available_on_device= But how can I use this in a jinja config template? |
Beta Was this translation helpful? Give feedback.
-
Hi, ich have the same problem, that we have organized the vlan in groups. Alternative it is possible to become alle vlans from a group that a linked to a site or sitegroup and get this via a variable like device.site.vlans.all() |
Beta Was this translation helpful? Give feedback.
-
You can retrieve all VLANs available on a device using:
|
Beta Was this translation helpful? Give feedback.
-
Is this applicable to already assigned VLANs to device? if i want to get all assigned VLANs per specific device |
Beta Was this translation helpful? Give feedback.
-
I want to assign vlans to devices via jinja config templates.
The function device.site.vlans.all() work and gives me a VLANs for a specific device if VLANs are assigned to a site where the device is located.
BUT: we also have VLANs organized in vlan groups. These groups are assigned to site groups. So device.site.vlans.all() will not find it. any ideas how to solve the problem?
Beta Was this translation helpful? Give feedback.
All reactions