Skip to content

Commit

Permalink
Revert "Fix(eos_designs): eBGP rfc5549 creates invalid configuration …
Browse files Browse the repository at this point in the history
…for MLAG scenarios (#3051)"

This reverts commit 4fc7dd3.
  • Loading branch information
carlbuchmann authored Aug 11, 2023
1 parent 4fc7dd3 commit 9478844
Show file tree
Hide file tree
Showing 49 changed files with 267 additions and 1,515 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,6 @@ router bgp 65101
neighbor 10.2.3.4 route-map RM-10.2.3.4-SET-NEXT-HOP-OUT out
neighbor 10.2.3.5 activate
neighbor 10.2.3.5 route-map RM-10.2.3.5-SET-NEXT-HOP-IN in
neighbor 10.2.3.6 next-hop address-family ipv6
neighbor 10.2.3.7 next-hop address-family ipv6 originate
no neighbor 10.2.3.8 next-hop address-family ipv6
network 10.0.0.0/8
network 100.64.0.0/10 route-map RM-10.2.3.4
!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ router bgp 65101
neighbor 10.2.3.4 route-map RM-10.2.3.4-SET-NEXT-HOP-OUT out
neighbor 10.2.3.5 activate
neighbor 10.2.3.5 route-map RM-10.2.3.5-SET-NEXT-HOP-IN in
neighbor 10.2.3.6 next-hop address-family ipv6
neighbor 10.2.3.7 next-hop address-family ipv6 originate
no neighbor 10.2.3.8 next-hop address-family ipv6
network 10.0.0.0/8
network 100.64.0.0/10 route-map RM-10.2.3.4
!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,48 +150,32 @@ router_bgp:
always: true
route_map: RM-10.2.3.4-SET-NEXT-HOP-OUT
route_map_out: RM-10.2.3.4-SET-NEXT-HOP-OUT
address_family_ipv4:
bgp:
missing_policy:
direction_in_action: permit
direction_out_action: deny
additional_paths:
install: true
receive: true
send:
ecmp: true
neighbors:
10.2.3.4:
activate: true
route_map_out: RM-10.2.3.4-SET-NEXT-HOP-OUT
10.2.3.5:
activate: true
route_map_in: RM-10.2.3.5-SET-NEXT-HOP-IN
10.2.3.6:
next_hop:
address_family_ipv6:
enabled: true
10.2.3.7:
next_hop:
address_family_ipv6:
enabled: true
originate: true
10.2.3.8:
next_hop:
address_family_ipv6:
enabled: false
originate: true # this should not get added to the configuration
networks:
10.0.0.0/8:
100.64.0.0/10:
route_map: RM-10.2.3.4
peer_groups:
TEST_PEER_GRP:
activate: true
next_hop:
address_family_ipv6:
enabled: true
originate: true
address_families:
ipv4:
bgp:
missing_policy:
direction_in_action: permit
direction_out_action: deny
additional_paths:
- install
- receive
- send ecmp
neighbors:
10.2.3.4:
activate: true
route_map_out: RM-10.2.3.4-SET-NEXT-HOP-OUT
10.2.3.5:
activate: true
route_map_in: RM-10.2.3.5-SET-NEXT-HOP-IN
networks:
10.0.0.0/8:
100.64.0.0/10:
route_map: RM-10.2.3.4
peer_groups:
TEST_PEER_GRP:
activate: true
next_hop:
address_family_ipv6_originate: true
redistribute_routes:
- connected
- static
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ interface Loopback100

| Interface | VRF | IP Address | IP Address Virtual | IP Router Virtual Address | VRRP | ACL In | ACL Out |
| --------- | --- | ---------- | ------------------ | ------------------------- | ---- | ------ | ------- |
| Vlan2 | Tenant_C_OP_Zone | 10.255.251.2/31 | - | - | - | - | - |
| Vlan2 | Tenant_C_OP_Zone | - | - | - | - | - | - |
| Vlan110 | Tenant_A_OP_Zone | - | 10.1.10.1/24 | - | - | - | - |
| Vlan111 | Tenant_A_OP_Zone | - | 10.1.11.1/24 | - | - | - | - |
| Vlan120 | Tenant_A_WEB_Zone | - | 10.1.20.1/24 | - | - | - | - |
Expand All @@ -608,11 +608,11 @@ interface Loopback100
| Vlan211 | Tenant_B_OP_Zone | - | 10.2.11.1/24 | - | - | - | - |
| Vlan310 | Tenant_C_OP_Zone | - | 10.3.10.1/24 | - | - | - | - |
| Vlan311 | Tenant_C_OP_Zone | - | 10.3.11.1/24 | - | - | - | - |
| Vlan3009 | Tenant_A_OP_Zone | 10.255.251.2/31 | - | - | - | - | - |
| Vlan3010 | Tenant_A_WEB_Zone | 10.255.251.2/31 | - | - | - | - | - |
| Vlan3011 | Tenant_A_APP_Zone | 10.255.251.2/31 | - | - | - | - | - |
| Vlan3012 | Tenant_A_DB_Zone | 10.255.251.2/31 | - | - | - | - | - |
| Vlan3019 | Tenant_B_OP_Zone | 10.255.251.2/31 | - | - | - | - | - |
| Vlan3009 | Tenant_A_OP_Zone | - | - | - | - | - | - |
| Vlan3010 | Tenant_A_WEB_Zone | - | - | - | - | - | - |
| Vlan3011 | Tenant_A_APP_Zone | - | - | - | - | - | - |
| Vlan3012 | Tenant_A_DB_Zone | - | - | - | - | - | - |
| Vlan3019 | Tenant_B_OP_Zone | - | - | - | - | - | - |
| Vlan4093 | default | - | - | - | - | - | - |
| Vlan4094 | default | 10.255.252.2/31 | - | - | - | - | - |

Expand All @@ -625,7 +625,7 @@ interface Vlan2
no shutdown
mtu 1500
vrf Tenant_C_OP_Zone
ip address 10.255.251.2/31
ipv6 enable
!
interface Vlan110
description Tenant_A_OP_Zone_1
Expand Down Expand Up @@ -707,35 +707,35 @@ interface Vlan3009
no shutdown
mtu 1500
vrf Tenant_A_OP_Zone
ip address 10.255.251.2/31
ipv6 enable
!
interface Vlan3010
description MLAG_PEER_L3_iBGP: vrf Tenant_A_WEB_Zone
no shutdown
mtu 1500
vrf Tenant_A_WEB_Zone
ip address 10.255.251.2/31
ipv6 enable
!
interface Vlan3011
description MLAG_PEER_L3_iBGP: vrf Tenant_A_APP_Zone
no shutdown
mtu 1500
vrf Tenant_A_APP_Zone
ip address 10.255.251.2/31
ipv6 enable
!
interface Vlan3012
description MLAG_PEER_L3_iBGP: vrf Tenant_A_DB_Zone
no shutdown
mtu 1500
vrf Tenant_A_DB_Zone
ip address 10.255.251.2/31
ipv6 enable
!
interface Vlan3019
description MLAG_PEER_L3_iBGP: vrf Tenant_B_OP_Zone
no shutdown
mtu 1500
vrf Tenant_B_OP_Zone
ip address 10.255.251.2/31
ipv6 enable
!
interface Vlan4093
description MLAG_PEER_L3_PEERING
Expand Down Expand Up @@ -853,25 +853,25 @@ ip virtual-router mac-address 00:dc:00:00:00:0a
| --- | --------------- |
| default | True (ipv6 interfaces) |
| MGMT | False |
| Tenant_A_APP_Zone | True |
| Tenant_A_DB_Zone | True |
| Tenant_A_OP_Zone | True |
| Tenant_A_WEB_Zone | True |
| Tenant_B_OP_Zone | True |
| Tenant_C_OP_Zone | True |
| Tenant_A_APP_Zone | True (ipv6 interfaces) |
| Tenant_A_DB_Zone | True (ipv6 interfaces) |
| Tenant_A_OP_Zone | True (ipv6 interfaces) |
| Tenant_A_WEB_Zone | True (ipv6 interfaces) |
| Tenant_B_OP_Zone | True (ipv6 interfaces) |
| Tenant_C_OP_Zone | True (ipv6 interfaces) |

### IP Routing Device Configuration

```eos
!
ip routing ipv6 interfaces
no ip routing vrf MGMT
ip routing vrf Tenant_A_APP_Zone
ip routing vrf Tenant_A_DB_Zone
ip routing vrf Tenant_A_OP_Zone
ip routing vrf Tenant_A_WEB_Zone
ip routing vrf Tenant_B_OP_Zone
ip routing vrf Tenant_C_OP_Zone
ip routing ipv6 interfaces vrf Tenant_A_APP_Zone
ip routing ipv6 interfaces vrf Tenant_A_DB_Zone
ip routing ipv6 interfaces vrf Tenant_A_OP_Zone
ip routing ipv6 interfaces vrf Tenant_A_WEB_Zone
ip routing ipv6 interfaces vrf Tenant_B_OP_Zone
ip routing ipv6 interfaces vrf Tenant_C_OP_Zone
```
## IPv6 Routing

Expand Down Expand Up @@ -963,12 +963,6 @@ ip route vrf MGMT 0.0.0.0/0 192.168.200.5
| 192.168.255.2 | 65001 | default | - | Inherited from peer group EVPN-OVERLAY-PEERS | Inherited from peer group EVPN-OVERLAY-PEERS | - | Inherited from peer group EVPN-OVERLAY-PEERS | - | - |
| 192.168.255.3 | 65001 | default | - | Inherited from peer group EVPN-OVERLAY-PEERS | Inherited from peer group EVPN-OVERLAY-PEERS | - | Inherited from peer group EVPN-OVERLAY-PEERS | - | - |
| 192.168.255.4 | 65001 | default | - | Inherited from peer group EVPN-OVERLAY-PEERS | Inherited from peer group EVPN-OVERLAY-PEERS | - | Inherited from peer group EVPN-OVERLAY-PEERS | - | - |
| 10.255.251.3 | Inherited from peer group MLAG_PEER | Tenant_A_APP_Zone | - | Inherited from peer group MLAG_PEER | Inherited from peer group MLAG_PEER | - | - | - | - |
| 10.255.251.3 | Inherited from peer group MLAG_PEER | Tenant_A_DB_Zone | - | Inherited from peer group MLAG_PEER | Inherited from peer group MLAG_PEER | - | - | - | - |
| 10.255.251.3 | Inherited from peer group MLAG_PEER | Tenant_A_OP_Zone | - | Inherited from peer group MLAG_PEER | Inherited from peer group MLAG_PEER | - | - | - | - |
| 10.255.251.3 | Inherited from peer group MLAG_PEER | Tenant_A_WEB_Zone | - | Inherited from peer group MLAG_PEER | Inherited from peer group MLAG_PEER | - | - | - | - |
| 10.255.251.3 | Inherited from peer group MLAG_PEER | Tenant_B_OP_Zone | - | Inherited from peer group MLAG_PEER | Inherited from peer group MLAG_PEER | - | - | - | - |
| 10.255.251.3 | Inherited from peer group MLAG_PEER | Tenant_C_OP_Zone | - | Inherited from peer group MLAG_PEER | Inherited from peer group MLAG_PEER | - | - | - | - |

### BGP Neighbor Interfaces

Expand All @@ -979,6 +973,12 @@ ip route vrf MGMT 0.0.0.0/0 192.168.200.5
| Ethernet3 | default | UNDERLAY_PEERS | 65001 | - |
| Ethernet4 | default | UNDERLAY_PEERS | 65001 | - |
| Vlan4093 | default | MLAG_PEER | 65102 | - |
| Vlan3011 | Tenant_A_APP_Zone | MLAG_PEER | 65102 | - |
| Vlan3012 | Tenant_A_DB_Zone | MLAG_PEER | 65102 | - |
| Vlan3009 | Tenant_A_OP_Zone | MLAG_PEER | 65102 | - |
| Vlan3010 | Tenant_A_WEB_Zone | MLAG_PEER | 65102 | - |
| Vlan3019 | Tenant_B_OP_Zone | MLAG_PEER | 65102 | - |
| Vlan2 | Tenant_C_OP_Zone | MLAG_PEER | 65102 | - |

### Router BGP EVPN Address Family

Expand Down Expand Up @@ -1129,66 +1129,48 @@ router bgp 65102
route-target import evpn 12:12
route-target export evpn 12:12
router-id 192.168.255.6
neighbor 10.255.251.3 peer group MLAG_PEER
neighbor interface Vlan3011 peer-group MLAG_PEER remote-as 65102
redistribute connected
!
address-family ipv4
no neighbor 10.255.251.3 next-hop address-family ipv6
!
vrf Tenant_A_DB_Zone
rd 192.168.255.6:13
route-target import evpn 13:13
route-target export evpn 13:13
router-id 192.168.255.6
neighbor 10.255.251.3 peer group MLAG_PEER
neighbor interface Vlan3012 peer-group MLAG_PEER remote-as 65102
redistribute connected
!
address-family ipv4
no neighbor 10.255.251.3 next-hop address-family ipv6
!
vrf Tenant_A_OP_Zone
rd 192.168.255.6:10
route-target import evpn 10:10
route-target export evpn 10:10
router-id 192.168.255.6
neighbor 10.255.251.3 peer group MLAG_PEER
neighbor interface Vlan3009 peer-group MLAG_PEER remote-as 65102
redistribute connected
!
address-family ipv4
no neighbor 10.255.251.3 next-hop address-family ipv6
!
vrf Tenant_A_WEB_Zone
rd 192.168.255.6:11
route-target import evpn 11:11
route-target export evpn 11:11
router-id 192.168.255.6
neighbor 10.255.251.3 peer group MLAG_PEER
neighbor interface Vlan3010 peer-group MLAG_PEER remote-as 65102
redistribute connected
!
address-family ipv4
no neighbor 10.255.251.3 next-hop address-family ipv6
!
vrf Tenant_B_OP_Zone
rd 192.168.255.6:20
route-target import evpn 20:20
route-target export evpn 20:20
router-id 192.168.255.6
neighbor 10.255.251.3 peer group MLAG_PEER
neighbor interface Vlan3019 peer-group MLAG_PEER remote-as 65102
redistribute connected
!
address-family ipv4
no neighbor 10.255.251.3 next-hop address-family ipv6
!
vrf Tenant_C_OP_Zone
rd 192.168.255.6:30
route-target import evpn 30:30
route-target export evpn 30:30
router-id 192.168.255.6
neighbor 10.255.251.3 peer group MLAG_PEER
neighbor interface Vlan2 peer-group MLAG_PEER remote-as 65102
redistribute connected
!
address-family ipv4
no neighbor 10.255.251.3 next-hop address-family ipv6
```

# BFD
Expand Down Expand Up @@ -1291,12 +1273,12 @@ route-map RM-MLAG-PEER-IN permit 10
| VRF Name | IP Routing |
| -------- | ---------- |
| MGMT | disabled |
| Tenant_A_APP_Zone | enabled |
| Tenant_A_DB_Zone | enabled |
| Tenant_A_OP_Zone | enabled |
| Tenant_A_WEB_Zone | enabled |
| Tenant_B_OP_Zone | enabled |
| Tenant_C_OP_Zone | enabled |
| Tenant_A_APP_Zone | enabled (ipv6 interface) |
| Tenant_A_DB_Zone | enabled (ipv6 interface) |
| Tenant_A_OP_Zone | enabled (ipv6 interface) |
| Tenant_A_WEB_Zone | enabled (ipv6 interface) |
| Tenant_B_OP_Zone | enabled (ipv6 interface) |
| Tenant_C_OP_Zone | enabled (ipv6 interface) |

## VRF Instances Device Configuration

Expand Down
Loading

0 comments on commit 9478844

Please sign in to comment.