Skip to content

[bgp-gr-helper] Add script for testing the BGP graceful restart helper function#996

Merged
liat-grozovik merged 6 commits intosonic-net:masterfrom
wangxin:bgp-gr-helper
Jul 21, 2019
Merged

[bgp-gr-helper] Add script for testing the BGP graceful restart helper function#996
liat-grozovik merged 6 commits intosonic-net:masterfrom
wangxin:bgp-gr-helper

Conversation

@wangxin
Copy link
Copy Markdown
Collaborator

@wangxin wangxin commented Jul 6, 2019

Description of PR

Summary:
Fixes # (issue)
Add script for testing the BGP graceful restart helper function.

Type of change

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

Approach

How did you do it?

Two scenarios are covered:

  • Kill ribd, bring down/up interface on VM to simulate graceful restart. Verify that the DUT preserves the routes.
  • Reboot the VM to perform a normal restart. Verify that the DUT does not preserve the routes.

How did you verify/test it?

Tested on Mellanox platform

Any platform specific information?

N/A

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

[t1, t1-lag, t1-64-lag]

Documentation

bgp-gr-helper.log

Xin Wang added 2 commits July 6, 2019 21:46
Add script for testing the BGP graceful restart helper function.

Signed-off-by: Xin Wang <xinw@mellanox.com>
@wangxin wangxin changed the title Bgp gr helper [bgp-gr-helper] Add script for testing the BGP graceful restart helper function Jul 6, 2019
@pavel-shirshov pavel-shirshov self-requested a review July 17, 2019 20:05
@pavel-shirshov pavel-shirshov self-assigned this Jul 18, 2019
@wangxin
Copy link
Copy Markdown
Collaborator Author

wangxin commented Jul 18, 2019

@pavel-shirshov Added new comments addressing the review comments:

  • Add IPv6 route check
  • Add bgp_gr_timer definition which was missed in previous commits
  • Add graceful restart support in t1-tor.j2, which was missed in previous commits

Script execution log is attached too.

bgp-gr-helper2.log

Copy link
Copy Markdown
Contributor

@pavel-shirshov pavel-shirshov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please address my comments?

Great work! Thanks!

* Add more comments
* Organize the code to make the two test cases more obvious
* Remove the uncessary configuration change of graceful-restart stalepath-time

Signed-off-by: Xin Wang <xinw@mellanox.com>
@wangxin
Copy link
Copy Markdown
Collaborator Author

wangxin commented Jul 19, 2019

@pavel-shirshov Review comments addressed in the new commit. Could you please check? Thanks!

Copy link
Copy Markdown
Contributor

@pavel-shirshov pavel-shirshov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@liat-grozovik liat-grozovik merged commit 93fa55e into sonic-net:master Jul 21, 2019
@rajneeshaec
Copy link
Copy Markdown
Contributor

Hi All,

I am getting following error given below while running the bgp_gr_helper test suite:-

TASK [test : Get VM GR timer.] *************************************************
task path: /var/azure/sonic-mgmt/ansible/roles/test/tasks/bgp_gr_helper.yml:17
Wednesday 24 July 2019 10:00:09 +0000 (0:00:02.445) 0:01:50.079 ********
fatal: [et6448m-M0]: FAILED! => {"failed": true, "msg": "ERROR! 'dict object' has no attribute 'capabilities'"}

PLAY RECAP *********************************************************************

How to fix this issue?

Thanks
Rajneesh

yxieca pushed a commit that referenced this pull request Jul 24, 2019
…r function (#996)

* [bgp-gr-helper] Add bgp-gr-helper test case

Add script for testing the BGP graceful restart helper function.

Signed-off-by: Xin Wang <xinw@mellanox.com>

* [bgp-gr-helper] Add supported topo t1-64-lag

* [bgp-gr-helper] Improve the wording

* Add checking IPv6 route

* [bgp-gr-helper] Enable graceful restart for t1 topo

* [bgp-gr-helper] Improve script structure

* Add more comments
* Organize the code to make the two test cases more obvious
* Remove the uncessary configuration change of graceful-restart stalepath-time

Signed-off-by: Xin Wang <xinw@mellanox.com>
@wangxin wangxin deleted the bgp-gr-helper branch September 26, 2019 12:33
sdszhang pushed a commit to sdszhang/sonic-mgmt that referenced this pull request Mar 23, 2026
…r TH5 (sonic-net#996)

<!--
Please make sure you've read and understood our contributing guidelines;
https://github.com/sonic-net/SONiC/blob/gh-pages/CONTRIBUTING.md

Please provide following information to help code review process a bit easier:
-->
### Description of PR
<!--
- Please include a summary of the change and which issue is fixed.
- Please also include relevant motivation and context. Where should reviewer start? background context?
- List any dependencies that are required for this change.
-->

Summary:
Fixes # (issue)

### Type of change

<!--
- Fill x for your type of change.
- e.g.
- [x] Bug fix
-->

- [x] Bug fix
- [ ] Testbed and Framework(new/improvement)
- [ ] New Test case
 - [ ] Skipped for non-supported platforms
- [ ] Test case improvement

### Back port request
- [ ] 202205
- [ ] 202305
- [ ] 202311
- [ ] 202405
- [ ] 202411
- [x] 202505
- [x] 202412

### Approach
#### What is the motivation for this PR?

xfail test_bgp_route_with_suppress vrf testing for TH5 as vrf support is still in developement

#### How did you do it?

#### How did you verify/test it?

#### Any platform specific information?

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

### Documentation
<!--
(If it's a new feature, new test case)
Did you update documentation/Wiki relevant to your implementation?
Link to the wiki page?
-->
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.

5 participants