Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and Laxmikant Chintakindi committed Dec 2, 2024
1 parent 2919683 commit 37daa62
Show file tree
Hide file tree
Showing 3 changed files with 119 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,16 +279,16 @@ monitor server radius
probe method access-request username arista password 7 141600021F102B
!
ip name-server group mynameserver0
name-server vrf default 1.1.1.1
name-server vrf default 8.8.8.8
name-server vrf default 1.1.1.1 priority 0
name-server vrf default 8.8.8.8 priority 0
name-server vrf default 2.2.2.2 priority 1
dns domain arista.avd.com
ip domain-list domain-list1
!
ip name-server group mynameserver1
name-server vrf default 1.1.1.1
name-server vrf vrf1 2.2.2.1
name-server vrf vrf1 8.8.8.8
name-server vrf default 1.1.1.1 priority 0
name-server vrf vrf1 2.2.2.1 priority 0
name-server vrf vrf1 8.8.8.8 priority 0
name-server vrf vrf1 2.2.2.2 priority 1
name-server vrf a_vrf 2.2.2.5 priority 3
name-server vrf vrf1 2.2.2.4 priority 4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ ip name-server group {{ name_server_group.name }}
{% do all_server_groups.append(server) %}
{% endfor %}
{% for server in all_server_groups | arista.avd.natural_sort("ip_address") | arista.avd.natural_sort("vrf") | arista.avd.natural_sort("priority") %}
{% if server["priority"] == "0" %}
{% set priority = "" %}
{% else %}
{% set priority = " priority " ~ server["priority"] %}
{% endif %}
{% set name_server_cli = "name-server vrf " ~ server["vrf"] ~ " " ~ server["ip_address"] ~ priority %}
{% set name_server_cli = "name-server vrf " ~ server["vrf"] ~ " " ~ server["ip_address"] ~ " priority " ~ server["priority"] %}
{{ name_server_cli }}
{% endfor %}
{% if name_server_group.dns_domain is arista.avd.defined %}
Expand Down
113 changes: 113 additions & 0 deletions python-avd/pyavd/_eos_cli_config_gen/schema/__init__.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 37daa62

Please sign in to comment.