diff --git a/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/configs/ptp-tests-l2leaf5.cfg b/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/configs/ptp-tests-l2leaf5.cfg new file mode 100644 index 00000000000..a1f54f9d1ee --- /dev/null +++ b/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/configs/ptp-tests-l2leaf5.cfg @@ -0,0 +1,151 @@ +! +no enable password +no aaa root +! +vlan internal order ascending range 1006 1199 +! +transceiver qsfp default-mode 4x10G +! +service routing protocols model multi-agent +! +hostname ptp-tests-l2leaf5 +! +ptp clock-identity 00:1C:73:1e:00:03 +ptp domain 127 +ptp mode boundary +ptp priority1 30 +ptp priority2 3 +ptp monitor threshold offset-from-master 250 +ptp monitor threshold mean-path-delay 1500 +ptp monitor sequence-id +ptp monitor threshold missing-message sync 3 sequence-ids +ptp monitor threshold missing-message follow-up 3 sequence-ids +ptp monitor threshold missing-message delay-resp 3 sequence-ids +ptp monitor threshold missing-message announce 3 sequence-ids +! +vlan 11 + name VLAN11 +! +vrf instance MGMT +! +vrf instance VRF1 +! +management api http-commands + protocol https + no shutdown + ! + vrf MGMT + no shutdown +! +interface Ethernet1 + description P2P_ptp-tests-spine1_Ethernet17 + no shutdown + mtu 9214 + no switchport + ip address 192.168.1.9/31 + ptp enable + ptp announce interval 0 + ptp announce timeout 3 + ptp delay-req interval -3 + ptp sync-message interval -3 + ptp transport ipv4 +! +interface Ethernet2 + description P2P_ptp-tests-spine2_Ethernet17 + no shutdown + mtu 9214 + no switchport + ip address 192.168.1.11/31 + ptp enable + ptp announce interval 0 + ptp announce timeout 3 + ptp delay-req interval -3 + ptp sync-message interval -3 + ptp transport ipv4 +! +interface Loopback0 + description ROUTER_ID + no shutdown + ip address 192.168.3.3/32 +! +interface Loopback1 + description VXLAN_TUNNEL_SOURCE + no shutdown + ip address 192.168.2.3/32 +! +interface Vlan11 + description VLAN11 + no shutdown + vrf VRF1 +! +interface Vxlan1 + description ptp-tests-l2leaf5_VTEP + vxlan source-interface Loopback1 + vxlan udp-port 4789 + vxlan vlan 11 vni 10011 + vxlan vrf VRF1 vni 1 +! +ip routing +no ip routing vrf MGMT +ip routing vrf VRF1 +! +ip prefix-list PL-LOOPBACKS-EVPN-OVERLAY + seq 10 permit 192.168.3.0/24 eq 32 + seq 20 permit 192.168.2.0/24 eq 32 +! +ip route vrf MGMT 0.0.0.0/0 192.168.0.1 +! +route-map RM-CONN-2-BGP permit 10 + match ip address prefix-list PL-LOOPBACKS-EVPN-OVERLAY +! +router bfd + multihop interval 300 min-rx 300 multiplier 3 +! +router bgp 65010 + router-id 192.168.3.3 + update wait-install + no bgp default ipv4-unicast + maximum-paths 4 ecmp 4 + neighbor EVPN-OVERLAY-PEERS peer group + neighbor EVPN-OVERLAY-PEERS update-source Loopback0 + neighbor EVPN-OVERLAY-PEERS bfd + neighbor EVPN-OVERLAY-PEERS ebgp-multihop 3 + neighbor EVPN-OVERLAY-PEERS send-community + neighbor EVPN-OVERLAY-PEERS maximum-routes 0 + neighbor IPv4-UNDERLAY-PEERS peer group + neighbor IPv4-UNDERLAY-PEERS send-community + neighbor IPv4-UNDERLAY-PEERS maximum-routes 12000 + neighbor 10.255.0.1 peer group EVPN-OVERLAY-PEERS + neighbor 10.255.0.1 remote-as 65200 + neighbor 10.255.0.1 description ptp-tests-spine1_Loopback0 + neighbor 10.255.0.2 peer group EVPN-OVERLAY-PEERS + neighbor 10.255.0.2 remote-as 65200 + neighbor 10.255.0.2 description ptp-tests-spine2_Loopback0 + neighbor 192.168.1.8 peer group IPv4-UNDERLAY-PEERS + neighbor 192.168.1.8 remote-as 65200 + neighbor 192.168.1.8 description ptp-tests-spine1_Ethernet17 + neighbor 192.168.1.10 peer group IPv4-UNDERLAY-PEERS + neighbor 192.168.1.10 remote-as 65200 + neighbor 192.168.1.10 description ptp-tests-spine2_Ethernet17 + redistribute connected route-map RM-CONN-2-BGP + ! + vlan 11 + rd 192.168.3.3:10011 + route-target both 10011:10011 + redistribute learned + ! + address-family evpn + neighbor EVPN-OVERLAY-PEERS activate + ! + address-family ipv4 + no neighbor EVPN-OVERLAY-PEERS activate + neighbor IPv4-UNDERLAY-PEERS activate + ! + vrf VRF1 + rd 192.168.3.3:1 + route-target import evpn 1:1 + route-target export evpn 1:1 + router-id 192.168.3.3 + redistribute connected +! +end diff --git a/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/configs/ptp-tests-spine1.cfg b/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/configs/ptp-tests-spine1.cfg index fe2fc2788e9..dfa31c934f3 100644 --- a/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/configs/ptp-tests-spine1.cfg +++ b/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/configs/ptp-tests-spine1.cfg @@ -161,6 +161,19 @@ interface Ethernet16 ptp sync-message interval -3 ptp transport ipv4 ! +interface Ethernet17 + description P2P_ptp-tests-l2leaf5_Ethernet1 + no shutdown + mtu 9214 + no switchport + ip address 192.168.1.8/31 + ptp enable + ptp announce interval 0 + ptp announce timeout 3 + ptp delay-req interval -3 + ptp sync-message interval -3 + ptp transport ipv4 +! interface Loopback0 description ROUTER_ID no shutdown @@ -225,12 +238,18 @@ router bgp 65200 neighbor 192.168.1.5 peer group IPv4-UNDERLAY-PEERS neighbor 192.168.1.5 remote-as 65010 neighbor 192.168.1.5 description ptp-tests-l2leaf4_Ethernet1 + neighbor 192.168.1.9 peer group IPv4-UNDERLAY-PEERS + neighbor 192.168.1.9 remote-as 65010 + neighbor 192.168.1.9 description ptp-tests-l2leaf5_Ethernet1 neighbor 192.168.3.1 peer group EVPN-OVERLAY-PEERS neighbor 192.168.3.1 remote-as 65010 neighbor 192.168.3.1 description ptp-tests-l2leaf3_Loopback0 neighbor 192.168.3.2 peer group EVPN-OVERLAY-PEERS neighbor 192.168.3.2 remote-as 65010 neighbor 192.168.3.2 description ptp-tests-l2leaf4_Loopback0 + neighbor 192.168.3.3 peer group EVPN-OVERLAY-PEERS + neighbor 192.168.3.3 remote-as 65010 + neighbor 192.168.3.3 description ptp-tests-l2leaf5_Loopback0 redistribute connected route-map RM-CONN-2-BGP ! address-family evpn diff --git a/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/configs/ptp-tests-spine2.cfg b/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/configs/ptp-tests-spine2.cfg index abc550d2f89..34fb0437548 100644 --- a/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/configs/ptp-tests-spine2.cfg +++ b/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/configs/ptp-tests-spine2.cfg @@ -110,6 +110,19 @@ interface Ethernet16 ptp sync-message interval -3 ptp transport ipv4 ! +interface Ethernet17 + description P2P_ptp-tests-l2leaf5_Ethernet2 + no shutdown + mtu 9214 + no switchport + ip address 192.168.1.10/31 + ptp enable + ptp announce interval 0 + ptp announce timeout 3 + ptp delay-req interval -3 + ptp sync-message interval -3 + ptp transport ipv4 +! interface Loopback0 description ROUTER_ID no shutdown @@ -156,12 +169,18 @@ router bgp 65200 neighbor 192.168.1.7 peer group IPv4-UNDERLAY-PEERS neighbor 192.168.1.7 remote-as 65010 neighbor 192.168.1.7 description ptp-tests-l2leaf4_Ethernet2 + neighbor 192.168.1.11 peer group IPv4-UNDERLAY-PEERS + neighbor 192.168.1.11 remote-as 65010 + neighbor 192.168.1.11 description ptp-tests-l2leaf5_Ethernet2 neighbor 192.168.3.1 peer group EVPN-OVERLAY-PEERS neighbor 192.168.3.1 remote-as 65010 neighbor 192.168.3.1 description ptp-tests-l2leaf3_Loopback0 neighbor 192.168.3.2 peer group EVPN-OVERLAY-PEERS neighbor 192.168.3.2 remote-as 65010 neighbor 192.168.3.2 description ptp-tests-l2leaf4_Loopback0 + neighbor 192.168.3.3 peer group EVPN-OVERLAY-PEERS + neighbor 192.168.3.3 remote-as 65010 + neighbor 192.168.3.3 description ptp-tests-l2leaf5_Loopback0 redistribute connected route-map RM-CONN-2-BGP ! address-family evpn diff --git a/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/structured_configs/ptp-tests-l2leaf5.yml b/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/structured_configs/ptp-tests-l2leaf5.yml new file mode 100644 index 00000000000..7bc24095418 --- /dev/null +++ b/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/structured_configs/ptp-tests-l2leaf5.yml @@ -0,0 +1,221 @@ +hostname: ptp-tests-l2leaf5 +is_deployed: true +router_bgp: + as: '65010' + router_id: 192.168.3.3 + bgp: + default: + ipv4_unicast: false + maximum_paths: + paths: 4 + ecmp: 4 + redistribute: + connected: + enabled: true + route_map: RM-CONN-2-BGP + updates: + wait_install: true + peer_groups: + - name: IPv4-UNDERLAY-PEERS + type: ipv4 + maximum_routes: 12000 + send_community: all + - name: EVPN-OVERLAY-PEERS + type: evpn + update_source: Loopback0 + bfd: true + send_community: all + maximum_routes: 0 + ebgp_multihop: 3 + address_family_ipv4: + peer_groups: + - name: IPv4-UNDERLAY-PEERS + activate: true + - name: EVPN-OVERLAY-PEERS + activate: false + neighbors: + - ip_address: 192.168.1.8 + peer_group: IPv4-UNDERLAY-PEERS + remote_as: '65200' + peer: ptp-tests-spine1 + description: ptp-tests-spine1_Ethernet17 + - ip_address: 192.168.1.10 + peer_group: IPv4-UNDERLAY-PEERS + remote_as: '65200' + peer: ptp-tests-spine2 + description: ptp-tests-spine2_Ethernet17 + - ip_address: 10.255.0.1 + peer_group: EVPN-OVERLAY-PEERS + peer: ptp-tests-spine1 + description: ptp-tests-spine1_Loopback0 + remote_as: '65200' + - ip_address: 10.255.0.2 + peer_group: EVPN-OVERLAY-PEERS + peer: ptp-tests-spine2 + description: ptp-tests-spine2_Loopback0 + remote_as: '65200' + address_family_evpn: + peer_groups: + - name: EVPN-OVERLAY-PEERS + activate: true + vrfs: + - name: VRF1 + rd: 192.168.3.3:1 + route_targets: + import: + - address_family: evpn + route_targets: + - '1:1' + export: + - address_family: evpn + route_targets: + - '1:1' + router_id: 192.168.3.3 + redistribute: + connected: + enabled: true + vlans: + - id: 11 + tenant: PTP + rd: 192.168.3.3:10011 + route_targets: + both: + - 10011:10011 + redistribute_routes: + - learned +static_routes: +- vrf: MGMT + destination_address_prefix: 0.0.0.0/0 + gateway: 192.168.0.1 +service_routing_protocols_model: multi-agent +ip_routing: true +vlan_internal_order: + allocation: ascending + range: + beginning: 1006 + ending: 1199 +aaa_root: + disabled: true +config_end: true +enable_password: + disabled: true +transceiver_qsfp_default_mode_4x10: true +vrfs: +- name: MGMT + ip_routing: false +- name: VRF1 + tenant: PTP + ip_routing: true +management_api_http: + enable_vrfs: + - name: MGMT + enable_https: true +ptp: + mode: boundary + clock_identity: 00:1C:73:1e:00:03 + priority1: 30 + priority2: 3 + domain: 127 + monitor: + enabled: true + threshold: + offset_from_master: 250 + mean_path_delay: 1500 + missing_message: + sequence_ids: + enabled: true + announce: 3 + delay_resp: 3 + follow_up: 3 + sync: 3 +ethernet_interfaces: +- name: Ethernet1 + peer: ptp-tests-spine1 + peer_interface: Ethernet17 + peer_type: spine + description: P2P_ptp-tests-spine1_Ethernet17 + shutdown: false + mtu: 9214 + switchport: + enabled: false + ptp: + announce: + interval: 0 + timeout: 3 + delay_req: -3 + sync_message: + interval: -3 + transport: ipv4 + enable: true + ip_address: 192.168.1.9/31 +- name: Ethernet2 + peer: ptp-tests-spine2 + peer_interface: Ethernet17 + peer_type: spine + description: P2P_ptp-tests-spine2_Ethernet17 + shutdown: false + mtu: 9214 + switchport: + enabled: false + ptp: + announce: + interval: 0 + timeout: 3 + delay_req: -3 + sync_message: + interval: -3 + transport: ipv4 + enable: true + ip_address: 192.168.1.11/31 +loopback_interfaces: +- name: Loopback0 + description: ROUTER_ID + shutdown: false + ip_address: 192.168.3.3/32 +- name: Loopback1 + description: VXLAN_TUNNEL_SOURCE + shutdown: false + ip_address: 192.168.2.3/32 +prefix_lists: +- name: PL-LOOPBACKS-EVPN-OVERLAY + sequence_numbers: + - sequence: 10 + action: permit 192.168.3.0/24 eq 32 + - sequence: 20 + action: permit 192.168.2.0/24 eq 32 +route_maps: +- name: RM-CONN-2-BGP + sequence_numbers: + - sequence: 10 + type: permit + match: + - ip address prefix-list PL-LOOPBACKS-EVPN-OVERLAY +router_bfd: + multihop: + interval: 300 + min_rx: 300 + multiplier: 3 +vlans: +- id: 11 + name: VLAN11 + tenant: PTP +ip_igmp_snooping: + globally_enabled: true +vlan_interfaces: +- name: Vlan11 + tenant: PTP + description: VLAN11 + shutdown: false + vrf: VRF1 +vxlan_interface: + vxlan1: + description: ptp-tests-l2leaf5_VTEP + vxlan: + udp_port: 4789 + source_interface: Loopback1 + vlans: + - id: 11 + vni: 10011 + vrfs: + - name: VRF1 + vni: 1 diff --git a/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/structured_configs/ptp-tests-spine1.yml b/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/structured_configs/ptp-tests-spine1.yml index 6817f5bfa8a..61caa6af9c8 100644 --- a/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/structured_configs/ptp-tests-spine1.yml +++ b/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/structured_configs/ptp-tests-spine1.yml @@ -65,6 +65,11 @@ router_bgp: remote_as: '65010' peer: ptp-tests-l2leaf4 description: ptp-tests-l2leaf4_Ethernet1 + - ip_address: 192.168.1.9 + peer_group: IPv4-UNDERLAY-PEERS + remote_as: '65010' + peer: ptp-tests-l2leaf5 + description: ptp-tests-l2leaf5_Ethernet1 - ip_address: 192.168.3.1 peer_group: EVPN-OVERLAY-PEERS peer: ptp-tests-l2leaf3 @@ -75,6 +80,11 @@ router_bgp: peer: ptp-tests-l2leaf4 description: ptp-tests-l2leaf4_Loopback0 remote_as: '65010' + - ip_address: 192.168.3.3 + peer_group: EVPN-OVERLAY-PEERS + peer: ptp-tests-l2leaf5 + description: ptp-tests-l2leaf5_Loopback0 + remote_as: '65010' - ip_address: 10.254.1.1 peer_group: EVPN-OVERLAY-PEERS peer: ptp-tests-leaf1 @@ -257,6 +267,25 @@ ethernet_interfaces: transport: ipv4 enable: true ip_address: 192.168.1.4/31 +- name: Ethernet17 + peer: ptp-tests-l2leaf5 + peer_interface: Ethernet1 + peer_type: l3leaf + description: P2P_ptp-tests-l2leaf5_Ethernet1 + shutdown: false + mtu: 9214 + switchport: + enabled: false + ptp: + announce: + interval: 0 + timeout: 3 + delay_req: -3 + sync_message: + interval: -3 + transport: ipv4 + enable: true + ip_address: 192.168.1.8/31 - name: Ethernet6 peer: ptp-tests-spine2 peer_interface: Ethernet6 diff --git a/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/structured_configs/ptp-tests-spine2.yml b/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/structured_configs/ptp-tests-spine2.yml index 2c4f34e962d..d51ca1f83a1 100644 --- a/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/structured_configs/ptp-tests-spine2.yml +++ b/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/structured_configs/ptp-tests-spine2.yml @@ -45,6 +45,11 @@ router_bgp: remote_as: '65010' peer: ptp-tests-l2leaf4 description: ptp-tests-l2leaf4_Ethernet2 + - ip_address: 192.168.1.11 + peer_group: IPv4-UNDERLAY-PEERS + remote_as: '65010' + peer: ptp-tests-l2leaf5 + description: ptp-tests-l2leaf5_Ethernet2 - ip_address: 192.168.3.1 peer_group: EVPN-OVERLAY-PEERS peer: ptp-tests-l2leaf3 @@ -55,6 +60,11 @@ router_bgp: peer: ptp-tests-l2leaf4 description: ptp-tests-l2leaf4_Loopback0 remote_as: '65010' + - ip_address: 192.168.3.3 + peer_group: EVPN-OVERLAY-PEERS + peer: ptp-tests-l2leaf5 + description: ptp-tests-l2leaf5_Loopback0 + remote_as: '65010' address_family_evpn: peer_groups: - name: EVPN-OVERLAY-PEERS @@ -155,6 +165,25 @@ ethernet_interfaces: transport: ipv4 enable: true ip_address: 192.168.1.6/31 +- name: Ethernet17 + peer: ptp-tests-l2leaf5 + peer_interface: Ethernet2 + peer_type: l3leaf + description: P2P_ptp-tests-l2leaf5_Ethernet2 + shutdown: false + mtu: 9214 + switchport: + enabled: false + ptp: + announce: + interval: 0 + timeout: 3 + delay_req: -3 + sync_message: + interval: -3 + transport: ipv4 + enable: true + ip_address: 192.168.1.10/31 - name: Ethernet6 peer: ptp-tests-spine1 peer_interface: Ethernet6 diff --git a/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/inventory/group_vars/PTP_TESTS_UPLINKS.yml b/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/inventory/group_vars/PTP_TESTS_UPLINKS.yml index b78e9f62a74..25c2e5e516a 100644 --- a/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/inventory/group_vars/PTP_TESTS_UPLINKS.yml +++ b/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/inventory/group_vars/PTP_TESTS_UPLINKS.yml @@ -18,3 +18,8 @@ l3leaf: - name: ptp-tests-l2leaf4 id: 2 uplink_switch_interfaces: [Ethernet16, Ethernet16] + ptp: + uplinks: ['Ethernet1','Ethernet2'] + - name: ptp-tests-l2leaf5 + id: 3 + uplink_switch_interfaces: [Ethernet17, Ethernet17] diff --git a/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/inventory/hosts.yml b/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/inventory/hosts.yml index 705226748e0..95af0c42222 100644 --- a/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/inventory/hosts.yml +++ b/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/inventory/hosts.yml @@ -277,6 +277,7 @@ all: hosts: ptp-tests-l2leaf3: ptp-tests-l2leaf4: + ptp-tests-l2leaf5: SFLOW_TESTS: children: SFLOW_TESTS_SPINES: