Skip to content

Commit

Permalink
CI(eos_cli_config_gen): Restructured the eos_cli_config_gen `router_b…
Browse files Browse the repository at this point in the history
…gp` host_vars (#4708)
  • Loading branch information
MaheshGSLAB authored Nov 21, 2024
1 parent 71a101e commit 8f95f4e
Show file tree
Hide file tree
Showing 62 changed files with 5,598 additions and 7,537 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
- [Service Routing Protocols Model](#service-routing-protocols-model)
- [ARP](#arp)
- [Router Adaptive Virtual Topology](#router-adaptive-virtual-topology)
- [Router BGP](#router-bgp)
- [PBR Policy Maps](#pbr-policy-maps)
- [BFD](#bfd)
- [Router BFD](#router-bfd)
Expand Down Expand Up @@ -464,6 +465,137 @@ router adaptive-virtual-topology
topology role edge gateway vxlan
```

### Router BGP

ASN Notation: asplain

#### Router BGP Summary

| BGP AS | Router ID |
| ------ | --------- |
| 65101 | - |

| BGP Tuning |
| ---------- |
| graceful-restart |
| no graceful-restart-helper |
| no bgp additional-paths receive |
| no bgp additional-paths send |
| no bgp default ipv4-unicast |
| no bgp default ipv4-unicast transport ipv6 |
| bgp route-reflector preserve-attributes |

#### Router BGP EVPN Address Family

##### EVPN Peer Groups

| Peer Group | Activate | Route-map In | Route-map Out | Encapsulation |
| ---------- | -------- | ------------ | ------------- | ------------- |
| EVPN-OVERLAY-PEERS | True | - | - | default |
| MLAG-IPv4-UNDERLAY-PEER | False | - | - | default |

##### EVPN Neighbor Default Encapsulation

| Neighbor Default Encapsulation | Next-hop-self Source Interface |
| ------------------------------ | ------------------------------ |
| path-selection | - |

##### EVPN Host Flapping Settings

| State | Window | Threshold | Expiry Timeout |
| ----- | ------ | --------- | -------------- |
| Enabled | - | - | 20 Seconds |

##### EVPN DCI Gateway Summary

| Settings | Value |
| -------- | ----- |
| L3 Gateway Configured | True |
| L3 Gateway Inter-domain | True |

#### Router BGP IPv4 Labeled Unicast

##### General Settings

| Settings | Value |
| -------- | ----- |

#### Router BGP Path-Selection Address Family

#### Router BGP Device Configuration

```eos
!
router bgp 65101
no bgp default ipv4-unicast
no bgp default ipv4-unicast transport ipv6
graceful-restart
no graceful-restart-helper
bgp route-reflector preserve-attributes
no bgp additional-paths receive
no bgp additional-paths send
bgp redistribute-internal
redistribute connected include leaked route-map RM-CONN-2-BGP
redistribute isis level-2 include leaked rcf RCF_CONN_2_BGP()
redistribute ospf match internal include leaked route-map RM_BGP_EVPN
redistribute ospf match external include leaked route-map RM_BGP_EVPN
redistribute ospfv3 match internal include leaked route-map RM-CONN-2-BGP
redistribute static route-map RM-STATIC-2-BGP
redistribute dynamic rcf RCF_CONN_2_BGP()
!
address-family evpn
no bgp additional-paths send
neighbor default encapsulation path-selection
neighbor EVPN-OVERLAY-PEERS activate
no neighbor MLAG-IPv4-UNDERLAY-PEER activate
neighbor default next-hop-self received-evpn-routes route-type ip-prefix inter-domain
host-flap detection expiry timeout 20 seconds
!
address-family ipv4
bgp additional-paths install ecmp-primary
no bgp additional-paths send
bgp redistribute-internal
redistribute bgp leaked
redistribute connected route-map RM_BGP_EVPN_IPV4
redistribute dynamic rcf RCF_BGP_EVPN_IPV4()
redistribute isis level-1 include leaked rcf Address_Family_IPV4_ISIS()
redistribute ospf include leaked route-map RM_BGP_EVPN_IPV4
redistribute ospfv3 match internal include leaked route-map RM_BGP_EVPN_IPV4
redistribute ospf match external include leaked route-map RM_BGP_EVPN_IPV4
redistribute ospf match nssa-external 1 include leaked route-map RM_BGP_EVPN_IPV4
redistribute static include leaked route-map RM_BGP_EVPN_IPV4
!
address-family ipv4 labeled-unicast
bgp additional-paths send any
!
address-family ipv4 multicast
redistribute ospfv3 route-map AFIPV4M_OSPFV3
redistribute ospf match external route-map AFIPV4M_OSPF_EXTERNAL
!
address-family ipv6
bgp additional-paths install
bgp additional-paths send ecmp limit 8
no bgp redistribute-internal
redistribute attached-host route-map RM-Address_Family_IPV6_Attached-Host
redistribute dhcp route-map RM-Address_Family_IPV6_DHCP
redistribute connected route-map RM-Address_Family_IPV6_Connected
redistribute dynamic rcf RCF_Address_Family_IPV6_Dynamic()
redistribute user rcf RCF_Address_Family_IPV6_User()
redistribute isis include leaked route-map RM-Address_Family_IPV6_ISIS
redistribute ospfv3 match internal include leaked route-map RM-REDISTRIBUTE-OSPF-INTERNAL
redistribute ospfv3 match external include leaked
redistribute ospfv3 match nssa-external 1 include leaked route-map RM-REDISTRIBUTE-OSPF-NSSA-EXTERNAL
redistribute static include leaked rcf RCF_IPV6_STATIC_TO_BGP()
!
address-family ipv6 multicast
redistribute isis rcf Router_BGP_Isis()
redistribute ospf match internal route-map RM-address_family_ipv6_multicast-OSPF
redistribute ospfv3 match internal route-map RM-address_family_ipv6_multicast-OSPFv3
!
address-family path-selection
no bgp additional-paths send
```

### PBR Policy Maps

#### PBR Policy Maps Summary
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# router-bgp-vpws
# host3

## Table of Contents

Expand Down Expand Up @@ -45,53 +45,46 @@ ASN Notation: asplain

| BGP AS | Router ID |
| ------ | --------- |
| 65101 | 192.168.255.3 |
| 65101.0001 | 192.168.255.3 |

| BGP Tuning |
| ---------- |
| no bgp default ipv4-unicast |
| update wait-install |
| distance bgp 20 200 200 |
| graceful-restart restart-time 300 |
| graceful-restart |
| maximum-paths 2 ecmp 2 |

#### Router BGP VPWS Instances

| Instance | Route-Distinguisher | Both Route-Target | MPLS Control Word | Label Flow | MTU | Pseudowire | Local ID | Remote ID |
| -------- | ------------------- | ----------------- | ----------------- | -----------| --- | ---------- | -------- | --------- |
| TENANT_A | 100.70.0.2:1000 | 65000:1000 | True | True | 1600 | TEN_A_site1_site3_pw | 15 | 35 |
| TENANT_A | 100.70.0.2:1000 | 65000:1000 | True | True | 1600 | TEN_A_site2_site5_pw | 25 | 57 |
| TENANT_B | 100.70.0.2:2000 | 65000:2000 | False | False | - | TEN_B_site2_site5_pw | 26 | 58 |
| graceful-restart-helper long-lived |
| bgp additional-paths send limit 5 |

#### Router BGP Device Configuration

```eos
!
router bgp 65101
router bgp 65101.0001
router-id 192.168.255.3
graceful-restart-helper long-lived
no bgp default ipv4-unicast
update wait-install
distance bgp 20 200 200
graceful-restart restart-time 300
graceful-restart
maximum-paths 2 ecmp 2
bgp additional-paths send limit 5
redistribute ospf include leaked route-map RM-OSPF-TO-BGP
redistribute static
!
vpws TENANT_A
rd 100.70.0.2:1000
route-target import export evpn 65000:1000
mpls control-word
label flow
mtu 1600
!
pseudowire TEN_A_site1_site3_pw
evpn vpws id local 15 remote 35
!
pseudowire TEN_A_site2_site5_pw
evpn vpws id local 25 remote 57
address-family ipv4 multicast
redistribute attached-host
redistribute connected
redistribute isis rcf Router_BGP_Isis()
redistribute ospf match internal
redistribute ospfv3 match internal
redistribute ospfv3 match external
redistribute ospfv3 match nssa-external 2
redistribute ospf match external
redistribute ospf match nssa-external 2
!
vpws TENANT_B
rd 100.70.0.2:2000
route-target import export evpn 65000:2000
!
pseudowire TEN_B_site2_site5_pw
evpn vpws id local 26 remote 58
address-family ipv6
redistribute ospfv3 include leaked route-map RM-REDISTRIBUTE-OSPFV3
redistribute ospfv3 match external include leaked route-map RM-REDISTRIBUTE-OSPFV3-EXTERNAL
```
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,24 @@ dynamic prefix-list DYNAMIC_PREFIX_LIST_NAME_3

#### Prefix-lists Summary

##### PL-BGP-DEFAULT-BLUE-C1

| Sequence | Action |
| -------- | ------ |
| 10 | permit 0.0.0.0/0 le 1 |

##### PL-BGP-DEFAULT-RED-IN-C1

| Sequence | Action |
| -------- | ------ |
| 10 | permit 0.0.0.0/0 |

##### PL-BGP-DEFAULT-RED-OUT-C1

| Sequence | Action |
| -------- | ------ |
| 10 | permit 10.0.0.0/8 |

##### PL-IPV4-LOOPBACKS

| Sequence | Action |
Expand All @@ -87,6 +105,15 @@ dynamic prefix-list DYNAMIC_PREFIX_LIST_NAME_3

```eos
!
ip prefix-list PL-BGP-DEFAULT-BLUE-C1
seq 10 permit 0.0.0.0/0 le 1
!
ip prefix-list PL-BGP-DEFAULT-RED-IN-C1
seq 10 permit 0.0.0.0/0
!
ip prefix-list PL-BGP-DEFAULT-RED-OUT-C1
seq 10 permit 10.0.0.0/8
!
ip prefix-list PL-IPV4-LOOPBACKS
!
ip prefix-list PL-LOOPBACKS-EVPN-OVERLAY
Expand Down

This file was deleted.

Loading

0 comments on commit 8f95f4e

Please sign in to comment.