Review TC47/TC49: align test_base_dci_l3vni_external_connectivity with testplan#21
Open
bpar9 wants to merge 1 commit into
Open
Review TC47/TC49: align test_base_dci_l3vni_external_connectivity with testplan#21bpar9 wants to merge 1 commit into
bpar9 wants to merge 1 commit into
Conversation
…h testplan Key changes based on testplan review (L3VNI_dci:47 / L3VNI_dci:49): GAP-1 (HIGH): Peer with DC1 BGW instead of DC1/DC2 leaves - Testplan specifies 'Pick one DC1 BGW' for VRF-lite peering - BGW originates Type-5 with L3VNI ext-community and RT-REWRITE - Removed DC2 direct peering (DC2 learns route via EVPN/DCI) GAP-2 (MEDIUM): Replace st.wait(60) with BGP session polling - Poll 'show bgp vrf Vrf101 summary' every 5s for up to 60s - Fail-fast if session never reaches Established GAP-3 (MEDIUM): Enhanced Type-5 route verification - Verify on DC1 BGW (locally-originated Type-5) - Verify on DC2 BGW (received over OVERLAY_WAN, installed in FIB) - Verify on DC2 leaf (received from DC2 BGWs, installed in FIB) GAP-4 (HIGH): Traffic source changed from DC1 to DC2 host - Testplan: 'Send traffic from a DC2 host to the external prefix' - Ensures traffic traverses full DCI path GAP-6 (LOW): Align IPs/ASN to testplan values - ext_asn: 65333 -> 65500 - IPv4: 10.250.1.x/30 peering, 10.99.0.0/24 ext_prefix - IPv6: 2001:db8:250::x/126 peering, 2001:db8:99::/64 ext_prefix GAP-7 (MEDIUM): Added DCI uplink drop counter checks GAP-8 (MEDIUM): Comprehensive cleanup + post-cleanup health verification GAP-9 (LOW): Added 'redistribute bgp' for Type-5 generation
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
Summary:
Reworks
test_base_dci_l3vni_external_connectivity(L3VNI_dci:47 IPv4 / L3VNI_dci:49 IPv6) to align with the DCI Solution Testplan specification. The previous implementation deviated from the testplan in several significant ways (peering target, IP addresses, traffic direction, verification depth). This PR addresses 9 identified gaps.Type of change
Back port request
Approach
What is the motivation for this PR?
The existing
test_base_dci_l3vni_external_connectivityhad significant deviations from the testplan:st.wait(60)instead of BGP session pollingredistribute bgpfor Type-5 generation on BGWHow did you do it?
dc1_bgwnodes instead ofleafnodes. DC2 direct peering removed entirely — DC2 learnsext_prefixvia EVPN Type-5 over DCI.ext_asn=65500, IPv410.250.1.x/30+10.99.0.0/24, IPv62001:db8:250::x/126+2001:db8:99::/64.st.wait(60)with a polling loop (5s × 12 attempts) checkingshow bgp vrf Vrf101 summaryfor Established state.show interfaces counterson DC2 leaf, DC2 BGW, DC1 BGW after traffic.verify_base_setup_bgw()post-cleanup.redistribute bgpadded on DC1 BGW alongsideredistribute connected.How did you verify/test it?
py_compile(passes).Any platform specific information?
N/A — applies to any SONiC platform supporting EVPN-VXLAN DCI with BGW spines.
Supported testbed topology if it's a new test case?
Not a new test case. Existing 3-DC DCI topology with BGW spines.
ext_prefix_host(e.g.10.99.0.10) as bothgatewayandintf_ip_addr. In the old code these were distinct values (tgen_gw_ipvstgen_host_ip). Verify this is correct for the Ixia emulated host setup, or whether the gateway should be a different IP (e.g., the external router's connected interface inext_prefixsubnet).redistribute bgp— Added per testplan ("if needed"), but could cause unintended redistribution of other BGP-learned routes in Vrf101 on the BGW. Verify this is safe in the DCI base profile.Documentation
N/A
Link to Devin session: https://cisco-demo.devinenterprise.com/sessions/1849ed21f9c04ca1a02f8329683d1afd
Requested by: @bpar9