Skip to content

Commit

Permalink
Small change in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Laxmikant Chintakindi authored and Laxmikant Chintakindi committed Nov 29, 2024
1 parent 33961f6 commit 4c907a0
Showing 1 changed file with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,18 @@
| ---- | --- | ---------- | --------------- |
{% set all_vlans = vxlan_config.vxlan.vlans | map(attribute='id') | map('arista.avd.range_expand') | sum(start=[]) %}
{% for all_vlans_item in all_vlans | arista.avd.natural_sort | unique %}
{% set vlan_namespace = namespace(vlan_vni = "-", flood_list = "-", multicast_group = "-", valid=true) %}
{% set vlan_namespace = namespace(vlan_vni = "-", flood_list = "-", multicast_group = "-") %}
{% for vxlan_vlans in vxlan_config.vxlan.vlans %}
{% set vlans = vxlan_vlans.id | arista.avd.range_expand %}
{% if all_vlans_item in vlans %}
{% if vxlan_vlans.vni is arista.avd.defined %}
{% set vlan_vnis = vxlan_vlans.vni | arista.avd.range_expand %}
{% if vlans | length != vlan_vnis | length %}
{% set vlan_namespace.valid = false %}
{% continue %}
{% endif %}
{% set vlan_namespace.valid = true %}
{% set vlan_idx = vlans.index(all_vlans_item) %}
{% set vlan_namespace.vlan_vni = vlan_vnis[vlan_idx] %}
{% if vlans | length == vlan_vnis | length %}
{% set vlan_namespace.vlan_vni = vlan_vnis[vlan_idx] %}
{% else %}
{% set vlan_namespace.vlan_vni = "-" %}
{% endif %}
{% endif %}
{% if vxlan_vlans.multicast_group is arista.avd.defined %}
{% set vlan_namespace.multicast_group = vxlan_vlans.multicast_group %}
Expand All @@ -99,9 +98,7 @@
{% endif %}
{% endif %}
{% endfor %}
{% if vlan_namespace.valid %}
| {{ all_vlans_item }} | {{ vlan_namespace.vlan_vni }} | {{ vlan_namespace.flood_list }} | {{ vlan_namespace.multicast_group }} |
{% endif %}
{% endfor %}
{% endif %}
{% if vxlan_config.vxlan.vrfs is arista.avd.defined %}
Expand Down

0 comments on commit 4c907a0

Please sign in to comment.