Skip to content

[bgp/test_bgp_vnet]: Corrected the PTF index get call - #1373

Open
Aakash Tiwari (aakashtiwari2630-max) wants to merge 1 commit into
Azure:202511_azdfrom
aakashtiwari2630-max:aaktiwar/bgp_vnet
Open

[bgp/test_bgp_vnet]: Corrected the PTF index get call#1373
Aakash Tiwari (aakashtiwari2630-max) wants to merge 1 commit into
Azure:202511_azdfrom
aakashtiwari2630-max:aaktiwar/bgp_vnet

Conversation

@aakashtiwari2630-max

Copy link
Copy Markdown

Porting master PR: sonic-net/sonic-mgmt#25618

Summary of fix:
get_ptf_port_index API was using hardcoded /4 to get the PTF index from interface name. This creates issue if the DUT has interfaces with stride of 8. Corrected the call using mg_facts and made the API platform agnostic

Signed-off-by: Aakash Tiwari <aaktiwar@cisco.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant