Skip to content

Commit

Permalink
Cut(eos_cli_config_gen): Remove the deprecated keys for name-server (#…
Browse files Browse the repository at this point in the history
…4290)

Co-authored-by: gmuloc <[email protected]>
  • Loading branch information
MaheshGSLAB and gmuloc authored Aug 2, 2024
1 parent 5e100db commit b9759d1
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 105 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ The following data model keys have been removed from `eos_cli_config_gen` in v5.
| old key 4.1(management_api_gnmi) | new key(TODO) |
| old key 4.2(management_api_gnmi) | new key(TODO) |
| management_security.entropy_source | management_security.entropy_sources |
| old key 6(name_server) | new key(TODO) |
| name_server | ip_name_servers |
| old key 7.1(port_channel_interfaces) | new key(TODO) |
| old key 7.2(port_channel_interfaces) | new key(TODO) |
| old key 8(radius_servers) | new key(TODO) |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

- [Management](#management)
- [Management Interfaces](#management-interfaces)
- [IP Name Servers](#ip-name-servers)
- [Domain Lookup](#domain-lookup)
- [Management SSH](#management-ssh)
- [Management API gNMI](#management-api-gnmi)
Expand Down Expand Up @@ -113,22 +112,6 @@ interface Management1
ip address 10.73.255.122/24
```

### IP Name Servers

#### IP Name Servers Summary

| Name Server | VRF | Priority |
| ----------- | --- | -------- |
| 10.10.128.10 | mgt | - |
| 10.10.129.10 | mgt | - |

#### IP Name Servers Device Configuration

```eos
ip name-server vrf mgt 10.10.128.10
ip name-server vrf mgt 10.10.129.10
```

### Domain Lookup

#### DNS Domain Lookup Summary
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ mac security
hostname host1
ip domain lookup source-interface Loopback0
ip domain lookup vrf mgt source-interface Management0
ip name-server vrf mgt 10.10.128.10
ip name-server vrf mgt 10.10.129.10
!
radius-server host 10.10.10.157 vrf mgt key 7 071B245F5A
radius-server host 10.10.10.249 key 7 071B245F5A
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -529,12 +529,6 @@ roles/eos_cli_config_gen/docs/tables/management-ssh.md
roles/eos_cli_config_gen/docs/tables/management-tech-support.md
--8<--

### Name server

--8<--
roles/eos_cli_config_gen/docs/tables/name-server.md
--8<--

### NTP

--8<--
Expand Down

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

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
that can be found in the LICENSE file.
#}
{# doc - ip name servers #}
{% if ip_name_servers is arista.avd.defined or name_server is arista.avd.defined %}
{% if ip_name_servers is arista.avd.defined %}

### IP Name Servers

Expand All @@ -15,10 +15,6 @@
{% for name_server in ip_name_servers | arista.avd.default([]) %}
| {{ name_server.ip_address }} | {{ name_server.vrf | arista.avd.default('-') }} | {{ name_server.priority | arista.avd.default('-') }} |
{% endfor %}
{# legacy data model to be removed in AVD 5.0.0 #}
{% for node in name_server.nodes | arista.avd.default([]) %}
| {{ node }} | {{ name_server.source.vrf | arista.avd.default('-') }} | - |
{% endfor %}

#### IP Name Servers Device Configuration

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
Use of this source code is governed by the Apache License 2.0
that can be found in the LICENSE file.
#}
{# Remove name_server from the list below in AVD v5.0.0 #}
{% if management_interfaces is arista.avd.defined
or dns_domain is arista.avd.defined
or domain_list is arista.avd.defined
or ip_name_servers is arista.avd.defined
or name_server is arista.avd.defined
or ip_domain_lookup is arista.avd.defined
or clock is arista.avd.defined
or ntp is arista.avd.defined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,3 @@
{% endif %}
{{ name_server_cli }}
{% endfor %}
{# legacy data model to be removed in AVD v5.0.0 #}
{% for node in name_server.nodes | arista.avd.natural_sort %}
{% if name_server.source.vrf is arista.avd.defined %}
ip name-server vrf {{ name_server.source.vrf }} {{ node }}
{% else %}
ip name-server {{ node }}
{% endif %}
{% endfor %}

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

Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,11 @@
type: dict
keys:
name_server:
documentation_options:
table: ip-name-servers
deprecation:
removed: true
warning: true
new_key: ip_name_servers
remove_in_version: v5.0.0
type: dict
keys:
source:
type: dict
keys:
vrf:
description: VRF Name.
type: str
convert_types:
- int
nodes:
type: list
items:
type: str

0 comments on commit b9759d1

Please sign in to comment.