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

TC Issue: tests.bgp.test_bgpmon.test_bgpmon And Template update bgpd/templates/BGPMON/peer-group.conf.j2 #8569

Closed
vikshaw-Nokia opened this issue Jun 12, 2023 · 6 comments

Comments

@vikshaw-Nokia
Copy link
Contributor

The test tests/bgp/test_bgpmon.py fails sometimes when ran on multi asic DUT (part of VoQ Chassis) with t2 topology.

The Test Case uses Loopback0 as the source ip for the BGP mon neighbor and selects a random port on ptf from all connected ports.

Since loopback0 ip is not unique across asics, if the bgpmon is configured on asic0 but peer port on ptf is part of asic1 the packet coming from ptf side is consumed as expected not forwarded to correct asic and hence test will fail.

From discussions we had to run correctly in case of multi asic, it was suggested to use Loopback4096 as both asics have unique ip for 4096 unlike Loopback0.

After analyzing the modifications needed to current test code to support this we also found that template bgpd/templates/BGPMON/peer-group.conf.j2 configures the BGPMon peer group to use loopback0 as source ip:

"neighbor BGPMON update-source {{ loopback0_ipv4 | ip }}"

This template needs to be updated to use loopback4096 for multi asic DUTs.

@yxieca yxieca added the chassis label Jun 14, 2023
@yxieca
Copy link
Collaborator

yxieca commented Jun 14, 2023

@judyjoseph this issue seems to ask for an image change. If you agree, please move to sonic-buildimage repo. Thanks.

@judyjoseph
Copy link
Contributor

@yxieca will check how it is working in other multi-DUT platforms. We need to fix the testcase as needed to support multi-asic if needed.

@rlhui
Copy link

rlhui commented Aug 9, 2023

@tjchadaga please help check this? thanks.

@tjchadaga
Copy link
Contributor

BGP template is already updated for chassis to use loopback4096 - sonic-net/sonic-buildimage#14844
Also, BGPMon session uses ipv6 address of loopback4096 as source.

test_bgpmon.py is no longer run on chassis and a new test - test_bgpmon_v6.py is run to test the changed functionality - #9233

@tjchadaga
Copy link
Contributor

@vikshaw-Nokia - please close this issue if there are no other concerns

@vikshaw-Nokia
Copy link
Contributor Author

Closing the issue with PR sonic-net/sonic-buildimage#14844 was merged. @tjchadaga Thank You.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

5 participants