Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Laxmikant Chintakindi authored and Laxmikant Chintakindi committed Nov 25, 2024
1 parent 232bdf8 commit 8b1eb8d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,8 @@
#}
{# eos - aaa server groups ldap #}
{% if aaa_server_groups is arista.avd.defined %}
{% set filtered_groups = [] %}
{% for aaa_server_group in aaa_server_groups %}
{% if aaa_server_group.type is arista.avd.defined %}
{% do filtered_groups.append(aaa_server_group) %}
{% endif %}
{% endfor %}
{% for aaa_server_group in filtered_groups | arista.avd.natural_sort('name') | arista.avd.natural_sort("type") %}
{% set filtered_groups = aaa_server_groups | selectattr("type") %}
{% for aaa_server_group in filtered_groups | arista.avd.natural_sort('name') %}
{% if aaa_server_group.type | arista.avd.default == 'ldap' %}
!
aaa group server {{ aaa_server_group.type }} {{ aaa_server_group.name }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,9 @@
#}
{# eos - aaa server groups #}
{% if aaa_server_groups is arista.avd.defined %}
{% set filtered_groups = [] %}
{% for aaa_server_group in aaa_server_groups %}
{% if aaa_server_group.type is arista.avd.defined %}
{% do filtered_groups.append(aaa_server_group) %}
{% endif %}
{% endfor %}
{% for aaa_server_group in filtered_groups | arista.avd.natural_sort('name') | arista.avd.natural_sort('type') %}
{% if aaa_server_group.type | arista.avd.default("") == 'radius' %}
{% set filtered_groups = aaa_server_groups | selectattr("type") %}
{% for aaa_server_group in filtered_groups | arista.avd.natural_sort('name') %}
{% if aaa_server_group.type | arista.avd.default == 'radius' %}
!
aaa group server {{ aaa_server_group.type }} {{ aaa_server_group.name }}
{% if aaa_server_group.servers is arista.avd.defined %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,8 @@
#}
{# eos - aaa server groups #}
{% if aaa_server_groups is arista.avd.defined %}
{% set filtered_groups = [] %}
{% for aaa_server_group in aaa_server_groups %}
{% if aaa_server_group.type is arista.avd.defined %}
{% do filtered_groups.append(aaa_server_group) %}
{% endif %}
{% endfor %}
{% for aaa_server_group in filtered_groups | arista.avd.natural_sort('name') | arista.avd.natural_sort("type") %}
{% set filtered_groups = aaa_server_groups | selectattr("type") %}
{% for aaa_server_group in filtered_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 }}
Expand Down

0 comments on commit 8b1eb8d

Please sign in to comment.