Skip to content

Commit

Permalink
Fix template
Browse files Browse the repository at this point in the history
  • Loading branch information
Laxmikant Chintakindi authored and Laxmikant Chintakindi committed Nov 27, 2024
1 parent 6a51d1f commit 90e23ed
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,20 @@
that can be found in the LICENSE file.
#}
{# eos - aaa server groups ldap #}
{% if aaa_server_groups is arista.avd.defined %}
{% set aaa_server_groups = aaa_server_groups | selectattr('type', 'arista.avd.defined') | list %}
{% for aaa_server_group in aaa_server_groups | arista.avd.natural_sort('name') %}
{% if aaa_server_group.type | arista.avd.default == 'ldap' %}
{% for aaa_server_group in aaa_server_groups | arista.avd.natural_sort('name') %}
{% if aaa_server_group.type is arista.avd.defined('ldap') %}
!
aaa group server {{ aaa_server_group.type }} {{ aaa_server_group.name }}
{% if aaa_server_group.servers is arista.avd.defined %}
{% for server in aaa_server_group.servers %}
{% if server.server is arista.avd.defined %}
{% set server_cli = "server " ~ server.server %}
{% if server.vrf is arista.avd.defined %}
{% set server_cli = server_cli ~ " vrf " ~ server.vrf %}
{% endif %}
{{ server_cli }}
{% if aaa_server_group.servers is arista.avd.defined %}
{% for server in aaa_server_group.servers %}
{% if server.server is arista.avd.defined %}
{% set server_cli = "server " ~ server.server %}
{% if server.vrf is arista.avd.defined %}
{% set server_cli = server_cli ~ " vrf " ~ server.vrf %}
{% endif %}
{% endfor %}
{% endif %}
{{ server_cli }}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,20 @@
that can be found in the LICENSE file.
#}
{# eos - aaa server groups #}
{% if aaa_server_groups is arista.avd.defined %}
{% set aaa_server_groups = aaa_server_groups | selectattr('type', 'arista.avd.defined') | list %}
{% for aaa_server_group in aaa_server_groups | arista.avd.natural_sort('name') %}
{% if aaa_server_group.type | arista.avd.default == 'radius' %}
{% for aaa_server_group in aaa_server_groups | arista.avd.natural_sort('name') %}
{% if aaa_server_group.type is arista.avd.defined('radius') %}
!
aaa group server {{ aaa_server_group.type }} {{ aaa_server_group.name }}
{% if aaa_server_group.servers is arista.avd.defined %}
{% for server in aaa_server_group.servers %}
{% if server.server is arista.avd.defined %}
{% set server_cli = "server " ~ server.server %}
{% if server.vrf is arista.avd.defined %}
{% set server_cli = server_cli ~ " vrf " ~ server.vrf %}
{% endif %}
{{ server_cli }}
{% if aaa_server_group.servers is arista.avd.defined %}
{% for server in aaa_server_group.servers %}
{% if server.server is arista.avd.defined %}
{% set server_cli = "server " ~ server.server %}
{% if server.vrf is arista.avd.defined %}
{% set server_cli = server_cli ~ " vrf " ~ server.vrf %}
{% endif %}
{% endfor %}
{% endif %}
{{ server_cli }}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,20 @@
that can be found in the LICENSE file.
#}
{# eos - aaa server groups #}
{% if aaa_server_groups is arista.avd.defined %}
{% set aaa_server_groups = aaa_server_groups | selectattr('type', 'arista.avd.defined') | list %}
{% for aaa_server_group in aaa_server_groups | arista.avd.natural_sort('name') %}
{% if aaa_server_group.type is arista.avd.defined('tacacs+') %}
{% for aaa_server_group in aaa_server_groups | arista.avd.natural_sort('name') %}
{% if aaa_server_group.type is arista.avd.defined('tacacs+') %}
!
aaa group server {{ aaa_server_group.type }} {{ aaa_server_group.name }}
{% if aaa_server_group.servers is arista.avd.defined %}
{% for server in aaa_server_group.servers %}
{% if server.server is arista.avd.defined %}
{% set server_cli = "server " ~ server.server %}
{% if server.vrf is arista.avd.defined %}
{% set server_cli = server_cli ~ " vrf " ~ server.vrf %}
{% endif %}
{{ server_cli }}
{% if aaa_server_group.servers is arista.avd.defined %}
{% for server in aaa_server_group.servers %}
{% if server.server is arista.avd.defined %}
{% set server_cli = "server " ~ server.server %}
{% if server.vrf is arista.avd.defined %}
{% set server_cli = server_cli ~ " vrf " ~ server.vrf %}
{% endif %}
{% endfor %}
{% endif %}
{{ server_cli }}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}

0 comments on commit 90e23ed

Please sign in to comment.