Skip to content

Config Rendering with VLAN Ports in VLAN Interface #12573

Answered by v0tti
v0tti asked this question in Help Wanted!
Discussion options

You must be logged in to vote

For now I found a pretty hacky solution by assigning the VLAN to the virtual interface as untagged:

fixed "{{ (vlan.untagged_vlan.interfaces_as_tagged.exclude(type="virtual").filter(device=device)|list + vlan.untagged_vlan.interfaces_as_untagged.exclude(type="virtual").filter(device=device)|list)|unique|join(",") }}"
forbidden "{{ device.interfaces.exclude(type="virtual")|list|reject("in", (vlan.untagged_vlan.interfaces_as_tagged.exclude(type="virtual").filter(device=device)|list + vlan.untagged_vlan.interfaces_as_untagged.exclude(type="virtual").filter(device=device)|list))|unique|join(",") }}"
untagged "{{ vlan.untagged_vlan.interfaces_as_untagged.exclude(type="virtual").filter(device=d…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@candlerb
Comment options

@v0tti
Comment options

@candlerb
Comment options

Answer selected by v0tti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants