Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat(eos_validate_state): Add validation for BGP IPv4 peers in VRFs #4538

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ router_bgp:
send_community: all
maximum_routes: 0
ebgp_multihop: 3
- name: ISP1_BGP_PEERS
remote_as: '577'
description: ISP1_BGP_Peers
address_family_ipv4:
peer_groups:
- name: MLAG-IPv4-UNDERLAY-PEER
Expand Down Expand Up @@ -106,6 +109,16 @@ router_bgp:
- ip_address: 10.255.1.97
peer_group: MLAG-IPv4-UNDERLAY-PEER
description: dc1-leaf1b_Vlan3009
- ip_address: 142.198.50.1
peer_group: ISP1_BGP_PEERS
- ip_address: 142.198.50.2
peer_group: ISP1_BGP_PEERS
address_family_ipv4:
neighbors:
- ip_address: 142.198.50.1
activate: true
- ip_address: 142.198.50.2
activate: true
- name: VRF11
rd: 10.255.0.3:11
route_targets:
Expand All @@ -125,6 +138,12 @@ router_bgp:
- ip_address: 10.255.1.97
peer_group: MLAG-IPv4-UNDERLAY-PEER
description: dc1-leaf1b_Vlan3010
- ip_address: 142.78.60.1
remote_as: '786'
address_family_ipv4:
neighbors:
- ip_address: 142.78.60.1
activate: true
vlans:
- id: 11
tenant: TENANT1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ router_bgp:
send_community: all
maximum_routes: 0
ebgp_multihop: 3
- name: ISP1_BGP_PEERS
remote_as: '577'
description: ISP1_BGP_Peers
address_family_ipv4:
peer_groups:
- name: MLAG-IPv4-UNDERLAY-PEER
Expand Down Expand Up @@ -103,6 +106,16 @@ router_bgp:
- ip_address: 10.255.1.96
peer_group: MLAG-IPv4-UNDERLAY-PEER
description: dc1-leaf1a_Vlan3009
- ip_address: 142.198.50.1
peer_group: ISP1_BGP_PEERS
- ip_address: 142.198.50.2
peer_group: ISP1_BGP_PEERS
address_family_ipv4:
neighbors:
- ip_address: 142.198.50.1
activate: true
- ip_address: 142.198.50.2
activate: true
- name: VRF11
rd: 10.255.0.4:11
route_targets:
Expand All @@ -122,6 +135,12 @@ router_bgp:
- ip_address: 10.255.1.96
peer_group: MLAG-IPv4-UNDERLAY-PEER
description: dc1-leaf1a_Vlan3010
- ip_address: 142.78.60.1
remote_as: '786'
address_family_ipv4:
neighbors:
- ip_address: 142.78.60.1
activate: true
vlans:
- id: 11
tenant: TENANT1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,51 @@ anta.tests.routing.bgp:
safi: unicast
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: dc1-wan2 (IP: 10.255.255.5)'
- VerifyBGPSpecificPeers:
address_families:
- afi: ipv4
peers:
- 10.255.1.97
safi: unicast
vrf: VRF10
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: 10.255.1.97 - VRF VRF10'
- VerifyBGPSpecificPeers:
address_families:
- afi: ipv4
peers:
- 142.198.50.1
safi: unicast
vrf: VRF10
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: 142.198.50.1 - VRF VRF10'
- VerifyBGPSpecificPeers:
address_families:
- afi: ipv4
peers:
- 142.198.50.2
safi: unicast
vrf: VRF10
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: 142.198.50.2 - VRF VRF10'
- VerifyBGPSpecificPeers:
address_families:
- afi: ipv4
peers:
- 10.255.1.97
safi: unicast
vrf: VRF11
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: 10.255.1.97 - VRF VRF11'
- VerifyBGPSpecificPeers:
address_families:
- afi: ipv4
peers:
- 142.78.60.1
safi: unicast
vrf: VRF11
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: 142.78.60.1 - VRF VRF11'
anta.tests.routing.generic:
- VerifyRoutingProtocolModel:
model: multi-agent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,51 @@ anta.tests.routing.bgp:
safi: unicast
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: dc1-wan2 (IP: 10.255.255.7)'
- VerifyBGPSpecificPeers:
address_families:
- afi: ipv4
peers:
- 10.255.1.96
safi: unicast
vrf: VRF10
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: 10.255.1.96 - VRF VRF10'
- VerifyBGPSpecificPeers:
address_families:
- afi: ipv4
peers:
- 142.198.50.1
safi: unicast
vrf: VRF10
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: 142.198.50.1 - VRF VRF10'
- VerifyBGPSpecificPeers:
address_families:
- afi: ipv4
peers:
- 142.198.50.2
safi: unicast
vrf: VRF10
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: 142.198.50.2 - VRF VRF10'
- VerifyBGPSpecificPeers:
address_families:
- afi: ipv4
peers:
- 10.255.1.96
safi: unicast
vrf: VRF11
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: 10.255.1.96 - VRF VRF11'
- VerifyBGPSpecificPeers:
address_families:
- afi: ipv4
peers:
- 142.78.60.1
safi: unicast
vrf: VRF11
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: 142.78.60.1 - VRF VRF11'
anta.tests.routing.generic:
- VerifyRoutingProtocolModel:
model: multi-agent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,24 @@ anta.tests.routing.bgp:
safi: unicast
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: dc2-leaf2a (IP: 192.168.100.1)'
- VerifyBGPSpecificPeers:
address_families:
- afi: ipv4
peers:
- 10.255.1.101
safi: unicast
vrf: VRF10
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: 10.255.1.101 - VRF VRF10'
- VerifyBGPSpecificPeers:
address_families:
- afi: ipv4
peers:
- 10.255.1.101
safi: unicast
vrf: VRF11
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: 10.255.1.101 - VRF VRF11'
anta.tests.routing.generic:
- VerifyRoutingProtocolModel:
model: multi-agent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,24 @@ anta.tests.routing.bgp:
safi: unicast
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: dc2-spine2 (IP: 10.255.255.106)'
- VerifyBGPSpecificPeers:
address_families:
- afi: ipv4
peers:
- 10.255.129.117
safi: unicast
vrf: VRF10
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: 10.255.129.117 - VRF VRF10'
- VerifyBGPSpecificPeers:
address_families:
- afi: ipv4
peers:
- 10.255.129.117
safi: unicast
vrf: VRF11
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: 10.255.129.117 - VRF VRF11'
anta.tests.routing.generic:
- VerifyRoutingProtocolModel:
model: multi-agent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,24 @@ anta.tests.routing.bgp:
safi: unicast
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: dc2-spine2 (IP: 10.255.255.110)'
- VerifyBGPSpecificPeers:
address_families:
- afi: ipv4
peers:
- 10.255.129.116
safi: unicast
vrf: VRF10
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: 10.255.129.116 - VRF VRF10'
- VerifyBGPSpecificPeers:
address_families:
- afi: ipv4
peers:
- 10.255.129.116
safi: unicast
vrf: VRF11
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: 10.255.129.116 - VRF VRF11'
anta.tests.routing.generic:
- VerifyRoutingProtocolModel:
model: multi-agent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,24 @@ anta.tests.routing.bgp:
safi: unicast
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: dc1-leaf2a (IP: 192.168.100.0)'
- VerifyBGPSpecificPeers:
address_families:
- afi: ipv4
peers:
- 10.255.129.121
safi: unicast
vrf: VRF10
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: 10.255.129.121 - VRF VRF10'
- VerifyBGPSpecificPeers:
address_families:
- afi: ipv4
peers:
- 10.255.129.121
safi: unicast
vrf: VRF11
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: 10.255.129.121 - VRF VRF11'
anta.tests.routing.generic:
- VerifyRoutingProtocolModel:
model: multi-agent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,24 @@ anta.tests.routing.bgp:
safi: unicast
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: dc2-spine2 (IP: 10.255.255.118)'
- VerifyBGPSpecificPeers:
address_families:
- afi: ipv4
peers:
- 10.255.129.120
safi: unicast
vrf: VRF10
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: 10.255.129.120 - VRF VRF10'
- VerifyBGPSpecificPeers:
address_families:
- afi: ipv4
peers:
- 10.255.129.120
safi: unicast
vrf: VRF11
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: 10.255.129.120 - VRF VRF11'
anta.tests.routing.generic:
- VerifyRoutingProtocolModel:
model: multi-agent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,24 @@ anta.tests.routing.bgp:
safi: unicast
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: dc2-spine2 (IP: 10.255.255.122)'
- VerifyBGPSpecificPeers:
address_families:
- afi: ipv4
peers:
- 10.255.129.125
safi: unicast
vrf: VRF10
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: 10.255.129.125 - VRF VRF10'
- VerifyBGPSpecificPeers:
address_families:
- afi: ipv4
peers:
- 10.255.129.125
safi: unicast
vrf: VRF11
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: 10.255.129.125 - VRF VRF11'
anta.tests.routing.generic:
- VerifyRoutingProtocolModel:
model: multi-agent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,24 @@ anta.tests.routing.bgp:
safi: unicast
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: dc2-spine2 (IP: 10.255.255.126)'
- VerifyBGPSpecificPeers:
address_families:
- afi: ipv4
peers:
- 10.255.129.124
safi: unicast
vrf: VRF10
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: 10.255.129.124 - VRF VRF10'
- VerifyBGPSpecificPeers:
address_families:
- afi: ipv4
peers:
- 10.255.129.124
safi: unicast
vrf: VRF11
result_overwrite:
custom_field: 'BGP IPv4 Unicast Peer: 10.255.129.124 - VRF VRF11'
anta.tests.routing.generic:
- VerifyRoutingProtocolModel:
model: multi-agent
Expand Down
Loading
Loading