Skip to content

Commit bf06350

Browse files
MaheshGSLABpre-commit-ci[bot]laxmikantchintakindigmuloccarl-baillargeon
authored
Refactor(eos_designs): Inserting the dhcp accept default route when mgmt_ip is dhcp (#6627)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: laxmikantchintakindi <159624484+laxmikantchintakindi@users.noreply.github.com> Co-authored-by: Guillaume Mulocher <gmulocher@arista.com> Co-authored-by: Carl Baillargeon <carl.baillargeon@arista.com>
1 parent b096bb8 commit bf06350

32 files changed

Lines changed: 622 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
type: l3leaf
3+
4+
l3leaf:
5+
defaults:
6+
loopback_ipv4_pool: 10.44.0.0/24
7+
vtep_loopback_ipv4_pool: 10.45.0.0/24
8+
mlag_interfaces: [Ethernet5, Ethernet6]
9+
mlag_peer_ipv4_pool: 10.255.250.0/24
10+
mlag_peer_l3_ipv4_pool: 10.255.249.0/24
11+
mlag_dual_primary_detection: true
12+
13+
node_groups:
14+
- group: mlag-dhcp-mgmt-ip
15+
bgp_as: 65101
16+
nodes:
17+
- name: mlag-dhcp-mgmt-ip-1
18+
id: 101
19+
mgmt_ip: dhcp
20+
- name: mlag-dhcp-mgmt-ip-2
21+
id: 102
22+
mgmt_ip: dhcp
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
type: cvxserver
3+
4+
overlay_routing_protocol: CVX
5+
overlay_cvx_servers: [dhcp-mgmt-ip-cvx-server-1, dhcp-mgmt-ip-cvx-server-2]
6+
7+
node_type_keys:
8+
- key: cvxserver
9+
type: cvxserver
10+
underlay_router: false
11+
12+
cvxserver:
13+
nodes:
14+
- name: dhcp-mgmt-ip-cvx-server-1
15+
id: 3
16+
mgmt_ip: 192.168.201.118/24
17+
18+
expected_error_message: >-
19+
'mgmt_ip' for CVX Server 'dhcp-mgmt-ip-cvx-server-2' must be a static management IP address, 'dhcp' is not supported.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
# This host is present in the fabric only to provide peer facts for dhcp-mgmt-ip-cvx-server-1.
3+
# It is excluded from structured config testing via EOS_DESIGNS_FAILURES_EXCLUDED.
4+
type: cvxserver
5+
6+
overlay_routing_protocol: CVX
7+
overlay_cvx_servers: [dhcp-mgmt-ip-cvx-server-1, dhcp-mgmt-ip-cvx-server-2]
8+
9+
node_type_keys:
10+
- key: cvxserver
11+
type: cvxserver
12+
underlay_router: false
13+
14+
cvxserver:
15+
nodes:
16+
- name: dhcp-mgmt-ip-cvx-server-2
17+
id: 4
18+
mgmt_ip: dhcp
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
type: cvxserver
3+
4+
overlay_routing_protocol: CVX
5+
overlay_cvx_servers: [dhcp-mgmt-ip-overlay-cvx-servers]
6+
7+
node_type_keys:
8+
- key: cvxserver
9+
type: cvxserver
10+
network_services:
11+
l2: true
12+
l3: true
13+
vtep: true
14+
default_ptp_priority1: 30
15+
16+
cvxserver:
17+
defaults:
18+
loopback_ipv4_pool: 192.168.254.0/24
19+
vtep_loopback_ipv4_pool: 192.168.253.0/24
20+
nodes:
21+
- name: dhcp-mgmt-ip-overlay-cvx-servers
22+
bgp_as: 65001
23+
id: 2
24+
mgmt_ip: dhcp
25+
26+
expected_error_message: >-
27+
'mgmt_ip' for CVX Server 'dhcp-mgmt-ip-overlay-cvx-servers' must be a static management IP address, 'dhcp' is not supported.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
type: l2leaf
3+
4+
l2leaf:
5+
nodes:
6+
- name: digital-twin-act-dhcp-ip-addr
7+
platform: vEOS-lab
8+
mgmt_ip: dhcp
9+
10+
platform_settings:
11+
- platforms: [vEOS-lab]
12+
digital_twin:
13+
platform: vEOS-lab
14+
act_node_type: veos
15+
16+
avd_digital_twin_mode: true
17+
18+
expected_error_message: >-
19+
'mgmt_ip: dhcp' is not supported for Digital Twin. A static management IP address is required for host 'digital-twin-act-dhcp-ip-addr'.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
expected_error_message: >-
2+
'mgmt_ip: dhcp' is not supported for MLAG peer 'mlag-dhcp-mgmt-ip-2'.
3+
MLAG dual-primary detection heartbeat requires a static management IP address.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
expected_error_message: >-
2+
'mgmt_ip: dhcp' is not supported for MLAG peer 'mlag-dhcp-mgmt-ip-1'.
3+
MLAG dual-primary detection heartbeat requires a static management IP address.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
type: l2leaf
3+
4+
l2leaf:
5+
nodes:
6+
- name: snmp-settings-dhcp-mgmt-ip
7+
mgmt_ip: dhcp
8+
9+
snmp_settings:
10+
compute_local_engineid: true
11+
# mgmt_ip is dhcp which is not supported for engine ID computation via use_mgmt_interface
12+
expected_error_message: >-
13+
'snmp_settings.local_engineid_ip' is set to 'use_mgmt_interface' but 'mgmt_ip: dhcp' is not supported.
14+
A static management IP address is required for host 'snmp-settings-dhcp-mgmt-ip'.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
type: l2leaf
3+
4+
l2leaf:
5+
nodes:
6+
- name: snmp-settings-hostname-and-ip-dhcp-mgmt-ip
7+
mgmt_ip: dhcp
8+
9+
snmp_settings:
10+
compute_local_engineid: true
11+
compute_local_engineid_source: hostname_and_ip
12+
# mgmt_ip is dhcp which is not supported for engine ID computation with hostname_and_ip
13+
expected_error_message: >-
14+
'mgmt_ip: dhcp' is not supported for 'snmp_settings.compute_local_engineid_source: hostname_and_ip'.
15+
A static management IP address is required for host 'snmp-settings-hostname-and-ip-dhcp-mgmt-ip'.

ansible_collections/arista/avd/extensions/molecule/eos_designs_negative_unit_tests/inventory/hosts.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@ all:
246246
hosts:
247247
duplicate-ip-address-1:
248248
duplicate-ip-address-2:
249+
FABRIC_CVX_DHCP_PEER:
250+
hosts:
251+
dhcp-mgmt-ip-cvx-server-2:
249252
EOS_DESIGNS_FAILURES_INCLUDED:
250253
hosts:
251254
address-locking-missing-dhcp-server-ip-and-locked-address-ipv4-enforcement-disabled:
@@ -266,6 +269,9 @@ all:
266269
core-interfaces-ipv6-only-include-in-underlay-protocol:
267270
core-interfaces-missing-id-with-channel-id-algorithm:
268271
core-interfaces-p2p-links-as:
272+
dhcp-mgmt-ip-cvx-server-1:
273+
dhcp-mgmt-ip-overlay-cvx-servers:
274+
digital-twin-act-dhcp-ip-addr:
269275
digital-twin-act-missing-ip-addr:
270276
digital-twin-act-missing-node-type:
271277
dns-settings-missing-inband-mgmt:
@@ -456,6 +462,8 @@ all:
456462
sflow-settings-missing-destinations:
457463
sflow-settings-missing-inband-mgmt-interface:
458464
sflow-settings-missing-mgmt-ip:
465+
snmp-settings-dhcp-mgmt-ip:
466+
snmp-settings-hostname-and-ip-dhcp-mgmt-ip:
459467
snmp-settings-missing-inband-mgmt:
460468
snmp-settings-missing-ip:
461469
snmp-settings-missing-mgmt-ip:
@@ -481,6 +489,10 @@ all:
481489
hosts:
482490
missing-ip-address-on-uplink-used-as-wan-lan-ha:
483491
missing-ip-address-on-wan-lan-ha-uplink-for-peer:
492+
FABRIC_MLAG_DUAL_PRIMARY_DHCP_MGMT_IP:
493+
hosts:
494+
mlag-dhcp-mgmt-ip-1:
495+
mlag-dhcp-mgmt-ip-2:
484496
INVALID_DUAL_ROUTER_WAN_EVPN_GW:
485497
hosts:
486498
cv-pathfinder-edge-wan-use-evpn-on-lan-1:

0 commit comments

Comments
 (0)