Skip to content

Commit c66fef0

Browse files
Laxmikant ChintakindiLaxmikant Chintakindi
Laxmikant Chintakindi
authored and
Laxmikant Chintakindi
committed
Add next_hop key in static route and few changes in static route dict
1 parent 2449c46 commit c66fef0

31 files changed

+227
-68
lines changed

ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/configs/DC1-BL1A.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ ipv6 unicast-routing vrf TENANT_D_WAN_ZONE
314314
!
315315
ip route vrf MGMT 0.0.0.0/0 192.168.200.5
316316
ip route vrf Tenant_A_WAN_Zone 10.3.4.0/24 1.2.3.4
317-
ip route vrf Tenant_A_WAN_Zone 10.3.4.0/24 Vlan150 name SVI_static_route
317+
ip route vrf Tenant_A_WAN_Zone 10.3.5.0/24 1.2.3.4 name SVI_static_route
318318
!
319319
route-map RM-CONN-2-BGP permit 10
320320
match ip address prefix-list PL-LOOPBACKS-EVPN-OVERLAY

ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/configs/DC1-BL1B.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ ipv6 unicast-routing vrf TENANT_D_WAN_ZONE
282282
!
283283
ip route vrf MGMT 0.0.0.0/0 192.168.200.5
284284
ip route vrf Tenant_A_WAN_Zone 10.3.4.0/24 1.2.3.4
285-
ip route vrf Tenant_A_WAN_Zone 10.3.4.0/24 Vlan150 name SVI_static_route
285+
ip route vrf Tenant_A_WAN_Zone 10.3.5.0/24 1.2.3.4 name SVI_static_route
286286
!
287287
route-map RM-CONN-2-BGP permit 10
288288
match ip address prefix-list PL-LOOPBACKS-EVPN-OVERLAY

ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/configs/DC1-BL2A.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ ip prefix-list PL-LOOPBACKS-EVPN-OVERLAY
182182
ipv6 unicast-routing vrf TENANT_D_WAN_ZONE
183183
!
184184
ip route vrf MGMT 0.0.0.0/0 192.168.200.5
185-
ip route vrf Tenant_A_WAN_Zone 10.3.4.0/24 Vlan150 name SVI_static_route
185+
ip route vrf Tenant_A_WAN_Zone 10.3.5.0/24 1.2.3.4 name SVI_static_route
186186
!
187187
ntp local-interface vrf MGMT Management1
188188
ntp server vrf MGMT 192.168.200.5 prefer

ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/configs/DC1-BL2B.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ ip prefix-list PL-LOOPBACKS-EVPN-OVERLAY
180180
ipv6 unicast-routing vrf TENANT_D_WAN_ZONE
181181
!
182182
ip route vrf MGMT 0.0.0.0/0 192.168.200.5
183-
ip route vrf Tenant_A_WAN_Zone 10.3.4.0/24 Vlan150 name SVI_static_route
183+
ip route vrf Tenant_A_WAN_Zone 10.3.5.0/24 1.2.3.4 name SVI_static_route
184184
!
185185
ntp local-interface vrf MGMT Management1
186186
ntp server vrf MGMT 192.168.200.5 prefer

ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/configs/DC1-SVC3A.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ mlag configuration
946946
reload-delay non-mlag 330
947947
!
948948
ip route vrf MGMT 0.0.0.0/0 192.168.200.5
949-
ip route vrf Tenant_A_WAN_Zone 10.3.4.0/24 Vlan150 name SVI_static_route
949+
ip route vrf Tenant_A_WAN_Zone 10.3.5.0/24 1.2.3.4 name SVI_static_route
950950
!
951951
ntp local-interface vrf MGMT Management1
952952
ntp server vrf MGMT 192.168.200.5 prefer

ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/configs/DC1-SVC3B.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ mlag configuration
910910
reload-delay non-mlag 330
911911
!
912912
ip route vrf MGMT 0.0.0.0/0 192.168.200.5
913-
ip route vrf Tenant_A_WAN_Zone 10.3.4.0/24 Vlan150 name SVI_static_route
913+
ip route vrf Tenant_A_WAN_Zone 10.3.5.0/24 1.2.3.4 name SVI_static_route
914914
!
915915
ntp local-interface vrf MGMT Management1
916916
ntp server vrf MGMT 192.168.200.5 prefer

ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/configs/DC1_UNDEPLOYED_LEAF1A.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ mlag configuration
510510
reload-delay non-mlag 1020
511511
!
512512
ip route vrf MGMT 0.0.0.0/0 192.168.200.5
513-
ip route vrf Tenant_A_WAN_Zone 10.3.4.0/24 Vlan150 name SVI_static_route
513+
ip route vrf Tenant_A_WAN_Zone 10.3.5.0/24 1.2.3.4 name SVI_static_route
514514
!
515515
ntp local-interface vrf MGMT Management42
516516
ntp server vrf MGMT 192.168.200.5 prefer

ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/configs/DC1_UNDEPLOYED_LEAF1B.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ mlag configuration
510510
reload-delay non-mlag 1020
511511
!
512512
ip route vrf MGMT 0.0.0.0/0 192.168.200.5
513-
ip route vrf Tenant_A_WAN_Zone 10.3.4.0/24 Vlan150 name SVI_static_route
513+
ip route vrf Tenant_A_WAN_Zone 10.3.5.0/24 1.2.3.4 name SVI_static_route
514514
!
515515
ntp local-interface vrf MGMT Management42
516516
ntp server vrf MGMT 192.168.200.5 prefer

ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/configs/evpn_services_l2_only_false.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ ipv6 unicast-routing vrf Tenant_D_OP_Zone
506506
ipv6 unicast-routing vrf TENANT_D_WAN_ZONE
507507
!
508508
ip route vrf MGMT 0.0.0.0/0 192.168.200.5
509-
ip route vrf Tenant_A_WAN_Zone 10.3.4.0/24 Vlan150 name SVI_static_route
509+
ip route vrf Tenant_A_WAN_Zone 10.3.5.0/24 1.2.3.4 name SVI_static_route
510510
ip route vrf Tenant_D_OP_Zone 10.3.11.0/24 Vlan411 name VARP
511511
!
512512
ntp local-interface vrf MGMT Management1

ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/structured_configs/DC1-BL1A.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -688,8 +688,8 @@ static_routes:
688688
destination_address_prefix: 10.3.4.0/24
689689
gateway: 1.2.3.4
690690
- vrf: Tenant_A_WAN_Zone
691-
destination_address_prefix: 10.3.4.0/24
692-
interface: Vlan150
691+
destination_address_prefix: 10.3.5.0/24
692+
gateway: 1.2.3.4
693693
name: SVI_static_route
694694
tcam_profile:
695695
system: vxlan-routing

ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/structured_configs/DC1-BL1B.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -641,8 +641,8 @@ static_routes:
641641
destination_address_prefix: 10.3.4.0/24
642642
gateway: 1.2.3.4
643643
- vrf: Tenant_A_WAN_Zone
644-
destination_address_prefix: 10.3.4.0/24
645-
interface: Vlan150
644+
destination_address_prefix: 10.3.5.0/24
645+
gateway: 1.2.3.4
646646
name: SVI_static_route
647647
tcam_profile:
648648
system: vxlan-routing

ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/structured_configs/DC1-BL2A.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -464,8 +464,8 @@ static_routes:
464464
destination_address_prefix: 0.0.0.0/0
465465
gateway: 192.168.200.5
466466
- vrf: Tenant_A_WAN_Zone
467-
destination_address_prefix: 10.3.4.0/24
468-
interface: Vlan150
467+
destination_address_prefix: 10.3.5.0/24
468+
gateway: 1.2.3.4
469469
name: SVI_static_route
470470
tcam_profile:
471471
system: vxlan-routing

ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/structured_configs/DC1-BL2B.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,8 @@ static_routes:
466466
destination_address_prefix: 0.0.0.0/0
467467
gateway: 192.168.200.5
468468
- vrf: Tenant_A_WAN_Zone
469-
destination_address_prefix: 10.3.4.0/24
470-
interface: Vlan150
469+
destination_address_prefix: 10.3.5.0/24
470+
gateway: 1.2.3.4
471471
name: SVI_static_route
472472
tcam_profile:
473473
system: vxlan-routing

ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/structured_configs/DC1-SVC3A.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1331,8 +1331,8 @@ static_routes:
13311331
destination_address_prefix: 0.0.0.0/0
13321332
gateway: 192.168.200.5
13331333
- vrf: Tenant_A_WAN_Zone
1334-
destination_address_prefix: 10.3.4.0/24
1335-
interface: Vlan150
1334+
destination_address_prefix: 10.3.5.0/24
1335+
gateway: 1.2.3.4
13361336
name: SVI_static_route
13371337
transceiver_qsfp_default_mode_4x10: true
13381338
virtual_source_nat_vrfs:

ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/structured_configs/DC1-SVC3B.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1277,8 +1277,8 @@ static_routes:
12771277
destination_address_prefix: 0.0.0.0/0
12781278
gateway: 192.168.200.5
12791279
- vrf: Tenant_A_WAN_Zone
1280-
destination_address_prefix: 10.3.4.0/24
1281-
interface: Vlan150
1280+
destination_address_prefix: 10.3.5.0/24
1281+
gateway: 1.2.3.4
12821282
name: SVI_static_route
12831283
transceiver_qsfp_default_mode_4x10: true
12841284
virtual_source_nat_vrfs:

ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/structured_configs/DC1_UNDEPLOYED_LEAF1A.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -655,8 +655,8 @@ static_routes:
655655
destination_address_prefix: 0.0.0.0/0
656656
gateway: 192.168.200.5
657657
- vrf: Tenant_A_WAN_Zone
658-
destination_address_prefix: 10.3.4.0/24
659-
interface: Vlan150
658+
destination_address_prefix: 10.3.5.0/24
659+
gateway: 1.2.3.4
660660
name: SVI_static_route
661661
tcam_profile:
662662
system: vxlan-routing

ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/structured_configs/DC1_UNDEPLOYED_LEAF1B.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -655,8 +655,8 @@ static_routes:
655655
destination_address_prefix: 0.0.0.0/0
656656
gateway: 192.168.200.5
657657
- vrf: Tenant_A_WAN_Zone
658-
destination_address_prefix: 10.3.4.0/24
659-
interface: Vlan150
658+
destination_address_prefix: 10.3.5.0/24
659+
gateway: 1.2.3.4
660660
name: SVI_static_route
661661
tcam_profile:
662662
system: vxlan-routing

ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/structured_configs/evpn_services_l2_only_false.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -545,8 +545,8 @@ static_routes:
545545
destination_address_prefix: 0.0.0.0/0
546546
gateway: 192.168.200.5
547547
- vrf: Tenant_A_WAN_Zone
548-
destination_address_prefix: 10.3.4.0/24
549-
interface: Vlan150
548+
destination_address_prefix: 10.3.5.0/24
549+
gateway: 1.2.3.4
550550
name: SVI_static_route
551551
- vrf: Tenant_D_OP_Zone
552552
destination_address_prefix: 10.3.11.0/24

ansible_collections/arista/avd/molecule/eos_designs_unit_tests/inventory/group_vars/BGP_FROM_NETWORK_SERVICES.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ tenants:
3232
vrf_id: 100
3333
address_families: []
3434
static_routes:
35-
- destination_address_prefix: 0.0.0.0
36-
gateway: 10.10.1.1
35+
- prefix: 0.0.0.0
36+
next_hop: 10.10.1.1
3737
nodes: [bgp-from-network-services-1]
3838
l3_interfaces:
3939
- interfaces:

ansible_collections/arista/avd/molecule/eos_designs_unit_tests/inventory/group_vars/CV_PATHFINDER_TESTS.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -584,8 +584,8 @@ tenants:
584584
vrf_id: 1
585585
# Checking static route on VRF default is redistributed in a route-map
586586
static_routes:
587-
- destination_address_prefix: 66.66.66.0/24
588-
gateway: 172.17.0.0
587+
- prefix: 66.66.66.0/24
588+
next_hop: 172.17.0.0
589589
nodes: [cv-pathfinder-edge]
590590
- name: PROD
591591
# Showing that wan_vni and vrf_id can be different. `vrf_id` influences the subinterface id.

ansible_collections/arista/avd/molecule/eos_designs_unit_tests/inventory/group_vars/DC1_TENANTS_NETWORKS/Tenant_A.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ tenant_a:
170170
enabled: true
171171
description: "test"
172172
static_routes:
173-
- destination_address_prefix: 10.3.4.0/24
174-
gateway: 1.2.3.4
173+
- prefix: 10.3.4.0/24
174+
next_hop: 1.2.3.4
175175
nodes: [DC1-BL1A, DC1-BL1B]
176176
bgp_peers:
177177
- ip_address: 123.1.1.10
@@ -232,7 +232,8 @@ tenant_a:
232232
authentication: simple
233233
simple_auth_key: "AQQvKeimxJu+uGQ/yYvv9w=="
234234
static_routes:
235-
- destination_address_prefix: 10.3.4.0/24
235+
- prefix: 10.3.5.0/24
236+
next_hop: 1.2.3.4
236237
name: SVI_static_route
237238
- id: 151
238239
name: svi_with_no_tags

ansible_collections/arista/avd/molecule/eos_designs_unit_tests/inventory/group_vars/DC1_TENANTS_NETWORKS/Tenant_D.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -65,29 +65,29 @@ tenant_d:
6565
source_interface: lo102
6666
source_vrf: TEST
6767
static_routes:
68-
- destination_address_prefix: 0.0.0.0/0
69-
gateway: "10.3.11.4"
68+
- prefix: 0.0.0.0/0
69+
next_hop: "10.3.11.4"
7070
nodes: [ DC1-LEAF2A, DC1-LEAF2B ]
71-
- destination_address_prefix: 1.1.1.0/24
72-
gateway: "10.3.11.4"
71+
- prefix: 1.1.1.0/24
72+
next_hop: "10.3.11.4"
7373
nodes: [ DC1-LEAF2A, DC1-LEAF2B ]
7474
track_bfd: true
7575
name: Track-bfd-network-services
7676
ipv6_static_routes:
77-
- destination_address_prefix: ::/0
78-
gateway: 2001:db8:311::4
77+
- prefix: ::/0
78+
next_hop: 2001:db8:311::4
7979
name: IPv6-test-2
8080
nodes: [ DC1-LEAF2A, DC1-LEAF2B ]
81-
- destination_address_prefix: 2001:db8::/32
82-
gateway: 2001:db8:310::1
81+
- prefix: 2001:db8::/32
82+
next_hop: 2001:db8:310::1
8383
name: IPv6-test
8484
nodes: [ DC1-LEAF1A ]
85-
- destination_address_prefix: 2001:db9::/32
86-
gateway: 2001:db8:310::1
85+
- prefix: 2001:db9::/32
86+
next_hop: 2001:db8:310::1
8787
name: IPv6-test-1
8888
nodes: [ DC1-LEAF1A ]
89-
- destination_address_prefix: 2001:dba::/32
90-
gateway: 2001:db8:310::1
89+
- prefix: 2001:dba::/32
90+
next_hop: 2001:db8:310::1
9191
name: Track-bfd-network-services
9292
track_bfd: true
9393
nodes: [ DC1-LEAF2A ]

ansible_collections/arista/avd/molecule/eos_designs_unit_tests/inventory/group_vars/MH_TENANT_NETWORKS.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ tenants:
2828
enabled: true
2929
ip_address_virtual: 10.2.10.1/24
3030
static_routes:
31-
- destination_address_prefix: 10.0.0.0/8
32-
gateway: 10.2.10.100
31+
- prefix: 10.0.0.0/8
32+
next_hop: 10.2.10.100

ansible_collections/arista/avd/roles/eos_designs/docs/tables/network-services-vrfs-settings.md

+32-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)