Skip to content

[bfn] Added Barefoot GRE protocol type support for everflow_testbed TC#949

Merged
lguohan merged 2 commits intosonic-net:masterfrom
akokhan:bfn-everflow-testbed
Mar 19, 2020
Merged

[bfn] Added Barefoot GRE protocol type support for everflow_testbed TC#949
lguohan merged 2 commits intosonic-net:masterfrom
akokhan:bfn-everflow-testbed

Conversation

@akokhan
Copy link
Contributor

@akokhan akokhan commented Jun 12, 2019

Signed-off-by: Andriy Kokhan akokhan@barefootnetworks.com

Description of PR

Added Barefoot GRE protocol type support for everflow_testbed TC

Type of change

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

Approach

How did you do it?

How did you verify/test it?

Run everflow_testbed TC on BFN target

Any platform specific information?

@akokhan
Copy link
Contributor Author

akokhan commented Aug 6, 2019

@prsunny , @lguohan , could you please merge this fix? Thanks.

Signed-off-by: Andriy Kokhan <akokhan@barefootnetworks.com>
@akokhan akokhan force-pushed the bfn-everflow-testbed branch from 12bd4e1 to f7ad81e Compare January 13, 2020 11:45
@akokhan akokhan force-pushed the bfn-everflow-testbed branch from f7ad81e to a6a478c Compare January 13, 2020 11:52
@akokhan
Copy link
Contributor Author

akokhan commented Jan 13, 2020

@lguohan please review

@akokhan
Copy link
Contributor Author

akokhan commented Jan 28, 2020

@lguohan please take a look. Thank you.

@prsunny prsunny requested a review from daall February 14, 2020 02:56
@lguohan lguohan merged commit 2dec0b6 into sonic-net:master Mar 19, 2020
fraserg-arista pushed a commit to fraserg-arista/sonic-mgmt that referenced this pull request Feb 24, 2026
<!--
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
<!--
This PR refactors and increases the scope to include more BGP IPv6 route convergence checks and BGP scale tests, primarily for better flexibility and maintainability to further include a BGP Admin flap test PR to follow.
-->

Summary:

- Groups interface and BGP session shutdown/startup actions, along with scope to include more connection tests into generalized methods for more extensibility and reduced code duplication.
- Introduces parameters such as `shutdown_connections`, `connection_type`, and `shutdown_all_connections`
- Adds new helper methods for command execution and BGP session flapping in both Ansible library and test scripts.
- Refactors the main convergence and port-flapping logic with error handling and modularity.
- Replaces previous hardcoded port shutdown/restoration patterns with parameter-driven logic.
- Adds support for flapping 'all' ports, generalizing session/connection-based operations, and improves logging for better debugging.
- Removes the old `test_device_unisolation` test and integrates its scenario into new parameterized tests for full coverage.

### Type of change

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

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

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

### Approach
#### What is the motivation for this PR?
Motivated by the need for refactoring, and code maintainability in BGP IPv6 route convergence testing. These changes make it easier to extend as new test requirements arise, primarily as of now for BGP Admin flapping.

#### How did you do it?
- Refactored Ansible module (`ansible/library/check_bgp_ipv6_routes_converged.py`) to handle generic connection shutdown and startup actions.
- Updated the test suite (`tests/bgp/test_ipv6_bgp_scale.py`) to include new parameters, helper utilities, and support for BGP session and port-wide scaling.

#### How did you verify/test it?
Ran the tests on t0-isolated-d2u510s2 topology on broadcom Arista-7060X6-64PE-B-C512S2

#### 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?
-->
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
sonic-swss:

* 67f7191 2019-06-20 | Set timer only when interval changes. Not in each firing of the timer. (sonic-net#945) (HEAD -> 201803, origin/201803) [Renuka Manavalan]
* 2cae61b 2019-07-07 | Fix: crash while destructing crmorch (sonic-net#731) (sonic-net#949) [Renuka Manavalan]

sonic-swss-common:

* 58b1930 2019-07-07 | Add an assert to logger, which will log a message and abort. (sonic-net#286) (sonic-net#287) (HEAD -> 201803, origin/201803) [Renuka Manavalan]
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.

7 participants