Skip to content

Commit

Permalink
Adding negative test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Laxmikant Chintakindi authored and Laxmikant Chintakindi committed Jun 7, 2024
1 parent 3b2d4c0 commit 26e45f0
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
type: l3leaf
l3leaf:
defaults:
loopback_ipv4_pool: 10.42.0.0/24
vtep_loopback_ipv4_pool: 10.43.0.0/24
bgp_as: 42
nodes:
- name: duplicate-peer-ip-address-network-services
id: 42

tenants:
- name: Tenant_C
mac_vrf_vni_base: 30000
evpn_l2_multi_domain: false
bgp_peer_groups:
- name: Tenant_C_BGP_PEER_GROUP
remote_as: "666"
- name: Tenant_C_BGP_PEER_GROUP2
remote_as: "667"
vrfs:
- name: Tenant_C_WAN_Zone
vrf_vni: 31
svis:
- id: 350
name: Tenant_C_WAN_Zone_1
tags: ['wan']
enabled: True
bgp_peers:
- ip_address: 2.2.2.2
peer_group: Tenant_C_BGP_PEER_GROUP
nodes: [ duplicate-peer-ip-address-network-services ]
- ip_address: 2.2.2.2
peer_group: Tenant_C_BGP_PEER_GROUP2
nodes: [ duplicate-peer-ip-address-network-services ]

expected_error_message: |-
Found duplicate objects with conflicting data while generating configuration for BGP peer defined under VRFs. {'ip_address': '2.2.2.2', 'peer_group': 'Tenant_C_BGP_PEER_GROUP2'} conflicts with {'ip_address': '2.2.2.2', 'peer_group': 'Tenant_C_BGP_PEER_GROUP'}.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ all:
duplicate-vrfs-tenant-igmp-snooping-conflict:
duplicate-interface-l3-edge:
duplicate-l3-interfaces-network-services:
duplicate-peer-ip-address-network-services:
duplicate-interfaces-point-to-point-services-1:
duplicate-interfaces-point-to-point-services-2:
duplicate-interfaces-point-to-point-services-3:
Expand Down

0 comments on commit 26e45f0

Please sign in to comment.