Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat(eos_cli_config_gen): Add support for ip name server groups #4763

Open
wants to merge 30 commits into
base: devel
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
8df912a
Feat(eos_cli_config_gen): Add support for ip name server groups
Nov 26, 2024
40c190f
add default:default
Nov 27, 2024
7bb225b
Fixing the sequence of commands
Nov 30, 2024
a9d9178
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 2, 2024
3c9861e
update tests
Dec 2, 2024
e5f8096
Minor change in input
Dec 3, 2024
e08f5ca
Remove priority 0 if it priority is undefined
Dec 5, 2024
df8fa74
Minor fix
Dec 5, 2024
de0f95c
Update doc template
Dec 9, 2024
8bac26c
Rewording a condition in template
Dec 10, 2024
50f506e
Address comments
Dec 10, 2024
fa2b1e6
minor change in template and inputs
Dec 10, 2024
9ac87af
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 2, 2025
81bdf98
Make ip address primary key and allow duplicate
Jan 2, 2025
6b59756
Merge branch 'devel' into feat/eos_cli/ip-name-server-group
gmuloc Jan 2, 2025
d4704bf
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 2, 2025
20090f1
Making vrf required and update the template
Jan 10, 2025
c682e5c
Added todo
Jan 10, 2025
ab5a379
Merge branch 'devel' into feat/eos_cli/ip-name-server-group
laxmikantchintakindi Jan 10, 2025
9062122
update todo comment
Jan 10, 2025
344be67
Update eos template
Jan 13, 2025
a83e342
Merge branch 'devel' into feat/eos_cli/ip-name-server-group
MaheshGSLAB Jan 13, 2025
eef11b1
Merge branch 'devel' into feat/eos_cli/ip-name-server-group
Vibhu-gslab Jan 13, 2025
507fe1a
Merge branch 'devel' into feat/eos_cli/ip-name-server-group
laxmikantchintakindi Jan 17, 2025
8a8319c
Merge branch 'devel' into feat/eos_cli/ip-name-server-group
gmuloc Jan 20, 2025
489038d
Use natural sort with strict and remove default value on priority
Jan 20, 2025
5240c9f
Remove extra spaces
Jan 20, 2025
b1d9c44
Merge branch 'devel' into feat/eos_cli/ip-name-server-group
gmuloc Jan 20, 2025
e6bf155
Adding a test case for 0 priority
Jan 20, 2025
170cbb3
Merge branch 'devel' into feat/eos_cli/ip-name-server-group
laxmikantchintakindi Jan 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/generate_release.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python
# Copyright (c) 2023-2024 Arista Networks, Inc.
# Copyright (c) 2023-2025 Arista Networks, Inc.
# Use of this source code is governed by the Apache License 2.0
# that can be found in the LICENSE file.
"""
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
~ Copyright (c) 2023-2024 Arista Networks, Inc.
~ Copyright (c) 2023-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
2 changes: 1 addition & 1 deletion ansible_collections/arista/avd/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
~ Copyright (c) 2023-2024 Arista Networks, Inc.
~ Copyright (c) 2023-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
2 changes: 1 addition & 1 deletion ansible_collections/arista/avd/changelogs/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
~ Copyright (c) 2023-2024 Arista Networks, Inc.
~ Copyright (c) 2023-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
2 changes: 1 addition & 1 deletion ansible_collections/arista/avd/docs/containers/overview.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
~ Copyright (c) 2023-2024 Arista Networks, Inc.
~ Copyright (c) 2023-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
~ Copyright (c) 2023-2024 Arista Networks, Inc.
~ Copyright (c) 2023-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
~ Copyright (c) 2023-2024 Arista Networks, Inc.
~ Copyright (c) 2023-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
~ Copyright (c) 2023-2024 Arista Networks, Inc.
~ Copyright (c) 2023-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
~ Copyright (c) 2023-2024 Arista Networks, Inc.
~ Copyright (c) 2023-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
~ Copyright (c) 2023-2024 Arista Networks, Inc.
~ Copyright (c) 2023-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
~ Copyright (c) 2023-2024 Arista Networks, Inc.
~ Copyright (c) 2023-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
~ Copyright (c) 2023-2024 Arista Networks, Inc.
~ Copyright (c) 2023-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
~ Copyright (c) 2023-2024 Arista Networks, Inc.
~ Copyright (c) 2023-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
title: Porting Guide for Ansible AVD 4.x.x
---
<!--
~ Copyright (c) 2023-2024 Arista Networks, Inc.
~ Copyright (c) 2023-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
title: Porting Guide for Ansible AVD 5.x.x
---
<!--
~ Copyright (c) 2024 Arista Networks, Inc.
~ Copyright (c) 2024-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
2 changes: 1 addition & 1 deletion ansible_collections/arista/avd/docs/pyavd.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
~ Copyright (c) 2023-2024 Arista Networks, Inc.
~ Copyright (c) 2023-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
2 changes: 1 addition & 1 deletion ansible_collections/arista/avd/docs/release-notes/1.0.x.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
~ Copyright (c) 2023-2024 Arista Networks, Inc.
~ Copyright (c) 2023-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
2 changes: 1 addition & 1 deletion ansible_collections/arista/avd/docs/release-notes/1.1.x.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
~ Copyright (c) 2023-2024 Arista Networks, Inc.
~ Copyright (c) 2023-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
2 changes: 1 addition & 1 deletion ansible_collections/arista/avd/docs/release-notes/2.x.x.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
~ Copyright (c) 2023-2024 Arista Networks, Inc.
~ Copyright (c) 2023-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
2 changes: 1 addition & 1 deletion ansible_collections/arista/avd/docs/release-notes/3.x.x.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
~ Copyright (c) 2023-2024 Arista Networks, Inc.
~ Copyright (c) 2023-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
2 changes: 1 addition & 1 deletion ansible_collections/arista/avd/docs/release-notes/4.x.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
title: Release Notes for AVD 4.x.x
---
<!--
~ Copyright (c) 2023-2024 Arista Networks, Inc.
~ Copyright (c) 2023-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
2 changes: 1 addition & 1 deletion ansible_collections/arista/avd/docs/release-notes/5.x.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
title: Release Notes for AVD 5.x.x
---
<!--
~ Copyright (c) 2024 Arista Networks, Inc.
~ Copyright (c) 2024-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
2 changes: 1 addition & 1 deletion ansible_collections/arista/avd/docs/semantic-versioning.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
~ Copyright (c) 2023-2024 Arista Networks, Inc.
~ Copyright (c) 2023-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{#
Copyright (c) 2023-2024 Arista Networks, Inc.
Copyright (c) 2023-2025 Arista Networks, Inc.
Use of this source code is governed by the Apache License 2.0
that can be found in the LICENSE file.
#}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{#
Copyright (c) 2023-2024 Arista Networks, Inc.
Copyright (c) 2023-2025 Arista Networks, Inc.
Use of this source code is governed by the Apache License 2.0
that can be found in the LICENSE file.
#}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
title: Example for Campus Fabric
---
<!--
~ Copyright (c) 2023-2024 Arista Networks, Inc.
~ Copyright (c) 2023-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
~ Copyright (c) 2024 Arista Networks, Inc.
~ Copyright (c) 2024-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
title: AVD example for CV Pathfinder
---
<!--
~ Copyright (c) 2023-2024 Arista Networks, Inc.
~ Copyright (c) 2023-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
title: AVD example for a dual data center using L3LS
---
<!--
~ Copyright (c) 2023-2024 Arista Networks, Inc.
~ Copyright (c) 2023-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
title: AVD example for a MPLS-VPN based WAN Network
---
<!--
~ Copyright (c) 2023-2024 Arista Networks, Inc.
~ Copyright (c) 2023-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
title: Example for L2LS Fabric
---
<!--
~ Copyright (c) 2023-2024 Arista Networks, Inc.
~ Copyright (c) 2023-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
title: AVD example for a single data center using L3LS
---
<!--
~ Copyright (c) 2023-2024 Arista Networks, Inc.
~ Copyright (c) 2023-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
2 changes: 1 addition & 1 deletion ansible_collections/arista/avd/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
~ Copyright (c) 2023-2024 Arista Networks, Inc.
~ Copyright (c) 2023-2025 Arista Networks, Inc.
~ Use of this source code is governed by the Apache License 2.0
~ that can be found in the LICENSE file.
-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- [DNS Domain](#dns-domain)
- [IP Domain-list](#ip-domain-list)
- [IP Name Servers](#ip-name-servers)
- [IP Name Server Groups](#ip-name-server-groups)
- [Domain Lookup](#domain-lookup)
- [Clock Settings](#clock-settings)
- [NTP](#ntp)
Expand Down Expand Up @@ -401,6 +402,68 @@ ip name-server 2001:db8::2 priority 0
ip name-server vrf TEST 2001:db8::2 priority 3
```

### IP Name Server Groups

#### IP Name Server Groups Summary

##### mynameserver0

DNS Domain : arista.avd.com

IP Domain List : domain-list0

| IP Address | VRF | Priority |
| ---------- | --- | -------- |
| 1.1.1.1 | - | - |
| 2.2.2.2 | - | 1 |
| 8.8.8.8 | - | - |

##### mynameserver1

DNS Domain : arista.avd.com

IP Domain List : domain-list1

| IP Address | VRF | Priority |
| ---------- | --- | -------- |
| 1.1.1.1 | - | - |
| 2.2.2.1 | vrf1 | - |
| 2.2.2.2 | vrf1 | 1 |
| 2.2.2.4 | vrf1 | 4 |
| 2.2.2.6 | b_vrf | 3 |
| 2.2.2.7 | a_vrf | 3 |
| 8.8.8.8 | vrf1 | - |

##### mynameserver2

DNS Domain : anta.avd.com

#### IP Name Server Groups Device Configuration

```eos
!
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 2.2.2.2 priority 1
dns domain arista.avd.com
ip domain-list domain-list0
!
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 vrf1 2.2.2.2 priority 1
name-server vrf a_vrf 2.2.2.7 priority 3
name-server vrf b_vrf 2.2.2.6 priority 3
name-server vrf vrf1 2.2.2.4 priority 4
dns domain arista.avd.com
ip domain-list domain-list1
!
ip name-server group mynameserver2
dns domain anta.avd.com
```

### Domain Lookup

#### DNS Domain Lookup Summary
Expand Down Expand Up @@ -2806,6 +2869,10 @@ monitor server radius
| Name | Interfaces |
| ---- | ---------- |

##### Name-server

Name-server Group: mynameserver1

### Monitor Connectivity Device Configuration

```eos
Expand Down Expand Up @@ -2846,6 +2913,7 @@ monitor connectivity
url https://server2.local.com
!
vrf yellow
name-server group mynameserver1
interval 5
no shutdown
interface set GLOBAL_SET Ethernet1-4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,27 @@ monitor server radius
probe threshold failure 100
probe method access-request username arista password 7 141600021F102B
!
ip name-server group mynameserver0
Vibhu-gslab marked this conversation as resolved.
Show resolved Hide resolved
name-server vrf default 1.1.1.1
name-server vrf default 8.8.8.8
name-server vrf default 2.2.2.2 priority 1
dns domain arista.avd.com
ip domain-list domain-list0
!
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 vrf1 2.2.2.2 priority 1
name-server vrf a_vrf 2.2.2.7 priority 3
name-server vrf b_vrf 2.2.2.6 priority 3
name-server vrf vrf1 2.2.2.4 priority 4
dns domain arista.avd.com
ip domain-list domain-list1
!
ip name-server group mynameserver2
dns domain anta.avd.com
!
platform trident mmu queue profile mc_example_profile
egress unicast queue 1 reserved bytes 0
egress unicast queue 2 reserved cells 0
Expand Down Expand Up @@ -3938,6 +3959,7 @@ monitor connectivity
url https://server2.local.com
!
vrf yellow
name-server group mynameserver1
interval 5
no shutdown
interface set GLOBAL_SET Ethernet1-4
Expand Down
Loading
Loading