Skip to content

Commit b096bb8

Browse files
MaheshGSLABgmulocVibhu-gslab
authored
Feat(eos_designs): Added BGP vpws settings under network_services (#6726)
Co-authored-by: Guillaume Mulocher <gmulocher@arista.com> Co-authored-by: Vibhu-gslab <109593615+Vibhu-gslab@users.noreply.github.com>
1 parent 0862161 commit b096bb8

15 files changed

Lines changed: 370 additions & 6 deletions

File tree

ansible_collections/arista/avd/extensions/molecule/eos_designs-mpls-isis-sr-ldp/documentation/devices/SITE1-LER1.md

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ vlan internal order ascending range 1006 1199
150150
| ------- | ---- | ------------ |
151151
| 10 | TENANT_A_L2_SERVICE | - |
152152
| 20 | TENANT_A_L2_SERVICE | - |
153+
| 110 | TENANT_C_L2_SERVICE | - |
154+
| 210 | TENANT_C_L2_SERVICE | - |
153155
| 2020 | TENANT_B_INSIDE_FW | - |
154156

155157
### VLANs Device Configuration
@@ -162,6 +164,12 @@ vlan 10
162164
vlan 20
163165
name TENANT_A_L2_SERVICE
164166
!
167+
vlan 110
168+
name TENANT_C_L2_SERVICE
169+
!
170+
vlan 210
171+
name TENANT_C_L2_SERVICE
172+
!
165173
vlan 2020
166174
name TENANT_B_INSIDE_FW
167175
```
@@ -728,15 +736,17 @@ ASN Notation: asplain
728736
| ---- | ------------------- | ----------------- | ------------------- | ------------------- | ------------ |
729737
| 10 | 100.70.0.5:10010 | 65000:10010 | - | - | learned |
730738
| 20 | 100.70.0.5:123456 | 65000:123456 | - | - | learned |
739+
| 110 | 100.70.0.5:10110 | 65000:10110 | - | - | learned |
740+
| 210 | 100.70.0.5:123456 | 65000:123456 | - | - | learned |
731741
| 2020 | 100.70.0.5:22020 | 65000:22020 | - | - | learned |
732742

733743
#### Router BGP VPWS Instances
734744

735745
| Instance | Route-Distinguisher | Both Route-Target | MPLS Control Word | Label Flow | MTU | Pseudowire | Local ID | Remote ID |
736746
| -------- | ------------------- | ----------------- | ----------------- | ---------- | --- | ---------- | -------- | --------- |
737-
| TENANT_A | 100.70.0.5:1000 | 65000:1000 | False | False | - | TEN_A_site1_site2_eline_port_based | 16 | 27 |
738-
| TENANT_A | 100.70.0.5:1000 | 65000:1000 | False | False | - | TEN_A_site1_site2_eline_with_subinterfaces_100 | 119 | 129 |
739-
| TENANT_A | 100.70.0.5:1000 | 65000:1000 | False | False | - | TEN_A_site1_site2_eline_with_subinterfaces_101 | 120 | 130 |
747+
| TENANT_A | 100.70.0.5:1000 | 65000:1000 | True | True | 1500 | TEN_A_site1_site2_eline_port_based | 16 | 27 |
748+
| TENANT_A | 100.70.0.5:1000 | 65000:1000 | True | True | 1500 | TEN_A_site1_site2_eline_with_subinterfaces_100 | 119 | 129 |
749+
| TENANT_A | 100.70.0.5:1000 | 65000:1000 | True | True | 1500 | TEN_A_site1_site2_eline_with_subinterfaces_101 | 120 | 130 |
740750
| TENANT_B | 100.70.0.5:2000 | 65000:2000 | False | False | - | TEN_B_site3_site5_eline_vlan_based_1000 | 31000 | 51000 |
741751
| TENANT_B | 100.70.0.5:2000 | 65000:2000 | False | False | - | TEN_B_site3_site5_eline_vlan_based_1001 | 31001 | 51001 |
742752
| TENANT_B | 100.70.0.5:2000 | 65000:2000 | False | False | - | TEN_B_site3_site5_eline_vlan_based_1002 | 31002 | 51002 |
@@ -781,6 +791,16 @@ router bgp 65000
781791
route-target both 65000:123456
782792
redistribute learned
783793
!
794+
vlan 110
795+
rd 100.70.0.5:10110
796+
route-target both 65000:10110
797+
redistribute learned
798+
!
799+
vlan 210
800+
rd 100.70.0.5:123456
801+
route-target both 65000:123456
802+
redistribute learned
803+
!
784804
vlan 2020
785805
rd 100.70.0.5:22020
786806
route-target both 65000:22020
@@ -789,6 +809,9 @@ router bgp 65000
789809
vpws TENANT_A
790810
rd 100.70.0.5:1000
791811
route-target import export evpn 65000:1000
812+
mpls control-word
813+
label flow
814+
mtu 1500
792815
!
793816
pseudowire TEN_A_site1_site2_eline_port_based
794817
evpn vpws id local 16 remote 27

ansible_collections/arista/avd/extensions/molecule/eos_designs-mpls-isis-sr-ldp/documentation/devices/SITE1-LER2.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ vlan internal order ascending range 1006 1199
149149
| ------- | ---- | ------------ |
150150
| 10 | TENANT_A_L2_SERVICE | - |
151151
| 20 | TENANT_A_L2_SERVICE | - |
152+
| 110 | TENANT_C_L2_SERVICE | - |
153+
| 210 | TENANT_C_L2_SERVICE | - |
152154
| 2020 | TENANT_B_INSIDE_FW | - |
153155

154156
### VLANs Device Configuration
@@ -161,6 +163,12 @@ vlan 10
161163
vlan 20
162164
name TENANT_A_L2_SERVICE
163165
!
166+
vlan 110
167+
name TENANT_C_L2_SERVICE
168+
!
169+
vlan 210
170+
name TENANT_C_L2_SERVICE
171+
!
164172
vlan 2020
165173
name TENANT_B_INSIDE_FW
166174
```
@@ -689,6 +697,8 @@ ASN Notation: asplain
689697
| ---- | ------------------- | ----------------- | ------------------- | ------------------- | ------------ |
690698
| 10 | 100.70.0.6:10010 | 65000:10010 | - | - | learned |
691699
| 20 | 100.70.0.6:123456 | 65000:123456 | - | - | learned |
700+
| 110 | 100.70.0.6:10110 | 65000:10110 | - | - | learned |
701+
| 210 | 100.70.0.6:123456 | 65000:123456 | - | - | learned |
692702
| 2020 | 100.70.0.6:22020 | 65000:22020 | - | - | learned |
693703

694704
#### Router BGP VPWS Instances
@@ -744,6 +754,16 @@ router bgp 65000
744754
route-target both 65000:123456
745755
redistribute learned
746756
!
757+
vlan 110
758+
rd 100.70.0.6:10110
759+
route-target both 65000:10110
760+
redistribute learned
761+
!
762+
vlan 210
763+
rd 100.70.0.6:123456
764+
route-target both 65000:123456
765+
redistribute learned
766+
!
747767
vlan 2020
748768
rd 100.70.0.6:22020
749769
route-target both 65000:22020

ansible_collections/arista/avd/extensions/molecule/eos_designs-mpls-isis-sr-ldp/documentation/devices/SITE2-LER1.md

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ vlan internal order ascending range 1006 1199
150150
| ------- | ---- | ------------ |
151151
| 10 | TENANT_A_L2_SERVICE | - |
152152
| 20 | TENANT_A_L2_SERVICE | - |
153+
| 110 | TENANT_C_L2_SERVICE | - |
154+
| 210 | TENANT_C_L2_SERVICE | - |
153155
| 2020 | TENANT_B_INSIDE_FW | - |
154156

155157
### VLANs Device Configuration
@@ -162,6 +164,12 @@ vlan 10
162164
vlan 20
163165
name TENANT_A_L2_SERVICE
164166
!
167+
vlan 110
168+
name TENANT_C_L2_SERVICE
169+
!
170+
vlan 210
171+
name TENANT_C_L2_SERVICE
172+
!
165173
vlan 2020
166174
name TENANT_B_INSIDE_FW
167175
```
@@ -791,15 +799,17 @@ ASN Notation: asplain
791799
| ---- | ------------------- | ----------------- | ------------------- | ------------------- | ------------ |
792800
| 10 | 100.70.0.7:10010 | 65000:10010 | - | - | learned |
793801
| 20 | 100.70.0.7:123456 | 65000:123456 | - | - | learned |
802+
| 110 | 100.70.0.7:10110 | 65000:10110 | - | - | learned |
803+
| 210 | 100.70.0.7:123456 | 65000:123456 | - | - | learned |
794804
| 2020 | 100.70.0.7:22020 | 65000:22020 | - | - | learned |
795805

796806
#### Router BGP VPWS Instances
797807

798808
| Instance | Route-Distinguisher | Both Route-Target | MPLS Control Word | Label Flow | MTU | Pseudowire | Local ID | Remote ID |
799809
| -------- | ------------------- | ----------------- | ----------------- | ---------- | --- | ---------- | -------- | --------- |
800-
| TENANT_A | 100.70.0.7:1000 | 65000:1000 | False | False | - | TEN_A_site1_site2_eline_port_based | 27 | 16 |
801-
| TENANT_A | 100.70.0.7:1000 | 65000:1000 | False | False | - | TEN_A_site1_site2_eline_with_subinterfaces_100 | 129 | 119 |
802-
| TENANT_A | 100.70.0.7:1000 | 65000:1000 | False | False | - | TEN_A_site1_site2_eline_with_subinterfaces_101 | 130 | 120 |
810+
| TENANT_A | 100.70.0.7:1000 | 65000:1000 | True | True | 1500 | TEN_A_site1_site2_eline_port_based | 27 | 16 |
811+
| TENANT_A | 100.70.0.7:1000 | 65000:1000 | True | True | 1500 | TEN_A_site1_site2_eline_with_subinterfaces_100 | 129 | 119 |
812+
| TENANT_A | 100.70.0.7:1000 | 65000:1000 | True | True | 1500 | TEN_A_site1_site2_eline_with_subinterfaces_101 | 130 | 120 |
803813
| TENANT_B | 100.70.0.7:2000 | 65000:2000 | False | False | - | TEN_B_site3_site5_eline_vlan_based_1000 | 51000 | 31000 |
804814
| TENANT_B | 100.70.0.7:2000 | 65000:2000 | False | False | - | TEN_B_site3_site5_eline_vlan_based_1001 | 51001 | 31001 |
805815
| TENANT_B | 100.70.0.7:2000 | 65000:2000 | False | False | - | TEN_B_site3_site5_eline_vlan_based_1002 | 51002 | 31002 |
@@ -845,6 +855,16 @@ router bgp 65000
845855
route-target both 65000:123456
846856
redistribute learned
847857
!
858+
vlan 110
859+
rd 100.70.0.7:10110
860+
route-target both 65000:10110
861+
redistribute learned
862+
!
863+
vlan 210
864+
rd 100.70.0.7:123456
865+
route-target both 65000:123456
866+
redistribute learned
867+
!
848868
vlan 2020
849869
rd 100.70.0.7:22020
850870
route-target both 65000:22020
@@ -853,6 +873,9 @@ router bgp 65000
853873
vpws TENANT_A
854874
rd 100.70.0.7:1000
855875
route-target import export evpn 65000:1000
876+
mpls control-word
877+
label flow
878+
mtu 1500
856879
!
857880
pseudowire TEN_A_site1_site2_eline_port_based
858881
evpn vpws id local 27 remote 16

ansible_collections/arista/avd/extensions/molecule/eos_designs-mpls-isis-sr-ldp/intended/configs/SITE1-LER1.cfg

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ vlan 10
1919
vlan 20
2020
name TENANT_A_L2_SERVICE
2121
!
22+
vlan 110
23+
name TENANT_C_L2_SERVICE
24+
!
25+
vlan 210
26+
name TENANT_C_L2_SERVICE
27+
!
2228
vlan 2020
2329
name TENANT_B_INSIDE_FW
2430
!
@@ -314,6 +320,16 @@ router bgp 65000
314320
route-target both 65000:123456
315321
redistribute learned
316322
!
323+
vlan 110
324+
rd 100.70.0.5:10110
325+
route-target both 65000:10110
326+
redistribute learned
327+
!
328+
vlan 210
329+
rd 100.70.0.5:123456
330+
route-target both 65000:123456
331+
redistribute learned
332+
!
317333
vlan 2020
318334
rd 100.70.0.5:22020
319335
route-target both 65000:22020
@@ -322,6 +338,9 @@ router bgp 65000
322338
vpws TENANT_A
323339
rd 100.70.0.5:1000
324340
route-target import export evpn 65000:1000
341+
mpls control-word
342+
label flow
343+
mtu 1500
325344
!
326345
pseudowire TEN_A_site1_site2_eline_port_based
327346
evpn vpws id local 16 remote 27

ansible_collections/arista/avd/extensions/molecule/eos_designs-mpls-isis-sr-ldp/intended/configs/SITE1-LER2.cfg

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ vlan 10
1919
vlan 20
2020
name TENANT_A_L2_SERVICE
2121
!
22+
vlan 110
23+
name TENANT_C_L2_SERVICE
24+
!
25+
vlan 210
26+
name TENANT_C_L2_SERVICE
27+
!
2228
vlan 2020
2329
name TENANT_B_INSIDE_FW
2430
!
@@ -285,6 +291,16 @@ router bgp 65000
285291
route-target both 65000:123456
286292
redistribute learned
287293
!
294+
vlan 110
295+
rd 100.70.0.6:10110
296+
route-target both 65000:10110
297+
redistribute learned
298+
!
299+
vlan 210
300+
rd 100.70.0.6:123456
301+
route-target both 65000:123456
302+
redistribute learned
303+
!
288304
vlan 2020
289305
rd 100.70.0.6:22020
290306
route-target both 65000:22020

ansible_collections/arista/avd/extensions/molecule/eos_designs-mpls-isis-sr-ldp/intended/configs/SITE2-LER1.cfg

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ vlan 10
1919
vlan 20
2020
name TENANT_A_L2_SERVICE
2121
!
22+
vlan 110
23+
name TENANT_C_L2_SERVICE
24+
!
25+
vlan 210
26+
name TENANT_C_L2_SERVICE
27+
!
2228
vlan 2020
2329
name TENANT_B_INSIDE_FW
2430
!
@@ -340,6 +346,16 @@ router bgp 65000
340346
route-target both 65000:123456
341347
redistribute learned
342348
!
349+
vlan 110
350+
rd 100.70.0.7:10110
351+
route-target both 65000:10110
352+
redistribute learned
353+
!
354+
vlan 210
355+
rd 100.70.0.7:123456
356+
route-target both 65000:123456
357+
redistribute learned
358+
!
343359
vlan 2020
344360
rd 100.70.0.7:22020
345361
route-target both 65000:22020
@@ -348,6 +364,9 @@ router bgp 65000
348364
vpws TENANT_A
349365
rd 100.70.0.7:1000
350366
route-target import export evpn 65000:1000
367+
mpls control-word
368+
label flow
369+
mtu 1500
351370
!
352371
pseudowire TEN_A_site1_site2_eline_port_based
353372
evpn vpws id local 27 remote 16

ansible_collections/arista/avd/extensions/molecule/eos_designs-mpls-isis-sr-ldp/intended/structured_configs/SITE1-LER1.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,11 +434,34 @@ router_bgp:
434434
- 65000:22020
435435
redistribute_routes:
436436
- learned
437+
- id: 110
438+
metadata:
439+
tenants:
440+
- TENANT_C
441+
rd: 100.70.0.5:10110
442+
route_targets:
443+
both:
444+
- 65000:10110
445+
redistribute_routes:
446+
- learned
447+
- id: 210
448+
metadata:
449+
tenants:
450+
- TENANT_C
451+
rd: 100.70.0.5:123456
452+
route_targets:
453+
both:
454+
- 65000:123456
455+
redistribute_routes:
456+
- learned
437457
vpws:
438458
- name: TENANT_A
439459
rd: 100.70.0.5:1000
440460
route_targets:
441461
import_export: 65000:1000
462+
mpls_control_word: true
463+
label_flow: true
464+
mtu: 1500
442465
pseudowires:
443466
- name: TEN_A_site1_site2_eline_port_based
444467
id_local: 16
@@ -578,6 +601,16 @@ vlans:
578601
metadata:
579602
tenants:
580603
- TENANT_B
604+
- id: 110
605+
name: TENANT_C_L2_SERVICE
606+
metadata:
607+
tenants:
608+
- TENANT_C
609+
- id: 210
610+
name: TENANT_C_L2_SERVICE
611+
metadata:
612+
tenants:
613+
- TENANT_C
581614
vrfs:
582615
- name: MGMT
583616
ip_routing: false

ansible_collections/arista/avd/extensions/molecule/eos_designs-mpls-isis-sr-ldp/intended/structured_configs/SITE1-LER2.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,26 @@ router_bgp:
383383
- 65000:22020
384384
redistribute_routes:
385385
- learned
386+
- id: 110
387+
metadata:
388+
tenants:
389+
- TENANT_C
390+
rd: 100.70.0.6:10110
391+
route_targets:
392+
both:
393+
- 65000:10110
394+
redistribute_routes:
395+
- learned
396+
- id: 210
397+
metadata:
398+
tenants:
399+
- TENANT_C
400+
rd: 100.70.0.6:123456
401+
route_targets:
402+
both:
403+
- 65000:123456
404+
redistribute_routes:
405+
- learned
386406
vpws:
387407
- name: TENANT_B
388408
rd: 100.70.0.6:2000
@@ -547,6 +567,16 @@ vlans:
547567
metadata:
548568
tenants:
549569
- TENANT_B
570+
- id: 110
571+
name: TENANT_C_L2_SERVICE
572+
metadata:
573+
tenants:
574+
- TENANT_C
575+
- id: 210
576+
name: TENANT_C_L2_SERVICE
577+
metadata:
578+
tenants:
579+
- TENANT_C
550580
vrfs:
551581
- name: MGMT
552582
ip_routing: false

0 commit comments

Comments
 (0)