Skip to content

[bgp] Fix overwrite in bgp conftest#7389

Merged
yaqiangz merged 1 commit intosonic-net:masterfrom
yaqiangz:azure-master_bgp_conftest
Feb 7, 2023
Merged

[bgp] Fix overwrite in bgp conftest#7389
yaqiangz merged 1 commit intosonic-net:masterfrom
yaqiangz:azure-master_bgp_conftest

Conversation

@yaqiangz
Copy link
Contributor

@yaqiangz yaqiangz commented Feb 3, 2023

Description of PR

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911
  • 202012
  • 202205

Approach

What is the motivation for this PR?

In previous code, if the namespace of the portchannel is an empty string, DEFAULT_NAMESPACE set to conn["namespace"] will be overwrite by code below it. In M0 senario, if mx and m1 interfaces are selected, both conns are set to DEFAULT_NAMESPACE(Line 393), and then conn of M1 interface's namespace is overwrite to empty string in Line 398. Different namespace will lead test_bgp_update_timer failed.

How did you do it?

Verify portchannel namespace too.

How did you verify/test it?

Run test

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

@yaqiangz
Copy link
Contributor Author

yaqiangz commented Feb 7, 2023

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yaqiangz yaqiangz merged commit 692294a into sonic-net:master Feb 7, 2023
wangxin pushed a commit that referenced this pull request Feb 8, 2023
What is the motivation for this PR?
In previous code, if the namespace of the portchannel is an empty string, DEFAULT_NAMESPACE set to conn["namespace"] will be overwrite by code below it. In M0 senario, if mx and m1 interfaces are selected, both conns are set to DEFAULT_NAMESPACE(Line 393), and then conn of M1 interface's namespace is overwrite to empty string in Line 398. Different namespace will lead test_bgp_update_timer failed.

How did you do it?
Verify portchannel namespace too.

How did you verify/test it?
Run test

Signed-off-by: Yaqiang Zhu <[email protected]>
kellyyeh pushed a commit to kellyyeh/sonic-mgmt that referenced this pull request Mar 31, 2023
What is the motivation for this PR?
In previous code, if the namespace of the portchannel is an empty string, DEFAULT_NAMESPACE set to conn["namespace"] will be overwrite by code below it. In M0 senario, if mx and m1 interfaces are selected, both conns are set to DEFAULT_NAMESPACE(Line 393), and then conn of M1 interface's namespace is overwrite to empty string in Line 398. Different namespace will lead test_bgp_update_timer failed.

How did you do it?
Verify portchannel namespace too.

How did you verify/test it?
Run test

Signed-off-by: Yaqiang Zhu <[email protected]>
yaqiangz added a commit to yaqiangz/sonic-mgmt that referenced this pull request Apr 9, 2023
What is the motivation for this PR?
In previous code, if the namespace of the portchannel is an empty string, DEFAULT_NAMESPACE set to conn["namespace"] will be overwrite by code below it. In M0 senario, if mx and m1 interfaces are selected, both conns are set to DEFAULT_NAMESPACE(Line 393), and then conn of M1 interface's namespace is overwrite to empty string in Line 398. Different namespace will lead test_bgp_update_timer failed.

How did you do it?
Verify portchannel namespace too.

How did you verify/test it?
Run test

Signed-off-by: Yaqiang Zhu <[email protected]>
yaqiangz added a commit that referenced this pull request Apr 10, 2023
What is the motivation for this PR?
Manually cherry-pick and resolve conflicts of adding support for m0 to simulate both t0 and t1 in everflow and bgp test.
#7389
#7618
#6900

How did you verify/test it?
Run everflow and bgp test on m0/t0/t1 testbeds, no errors.

Signed-off-by: Yaqiang Zhu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants