Skip to content

Cleanup the VNET configuration based on parameter#936

Merged
prsunny merged 1 commit intosonic-net:masterfrom
prsunny:master
Jun 4, 2019
Merged

Cleanup the VNET configuration based on parameter#936
prsunny merged 1 commit intosonic-net:masterfrom
prsunny:master

Conversation

@prsunny
Copy link
Copy Markdown
Contributor

@prsunny prsunny commented May 31, 2019

Description of PR

Summary: Skip cleanup configuration if set to False. This is required for Warmboot tests
Fixes # (issue)

Type of change

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

How did you do it?

Added a config parameter to pass cleanup = True/False

How did you verify/test it?

ansible-playbook test_sonic.yml -i str --limit str-a7170-acs-1 --vault-password-file password.txt -e testcase_name=vnet_vxlan -e testbed_name=vms13-t0-a7170 -e cleanup=False

Verify entries are not removed

Any platform specific information?

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

Documentation

Notes:
Observed a playbook bug that block-when condition is not working when there is include yml file (include: ptf_runner.yml). Workaround to have the conditional check on each item. If a fix is available, individual conditional check can be removed and added to block.

@prsunny prsunny requested a review from volodymyrsamotiy May 31, 2019 01:10
@prsunny prsunny merged commit b8547da into sonic-net:master Jun 4, 2019
stepanblyschak pushed a commit to stepanblyschak/sonic-mgmt that referenced this pull request Jun 14, 2019
auspham pushed a commit to auspham/sonic-mgmt that referenced this pull request Feb 3, 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
<!--
- 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:
test_hash is flaky on FT2 testbed because there is not enough entropy in
hash key `ip-proto` to ensure traffic is balanced evenly among all 64
nexthops.
This PR fixed the issue by removing `ip-proto` from hash_keys.

### 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
- [ ] 202511
- [x] 202503

### Approach
#### What is the motivation for this PR?
This PR fixed the `test_hash` on FT2 topo by removing `ip-proto` from
hash_keys.

#### How did you do it?
Check if the topo type is `ft2` and remove `ip-proto` from `hash_keys`.

#### How did you verify/test it?
The change is verified on a physical testbed.
```
collected 15 items

fib/test_fib.py::test_basic_fib[True-True-1514] PASSED                                                                                                                                                                  [  6%]
fib/test_fib.py::test_hash[ipv4]  ^H ^H ^H ^H ^H ^HPASSED                                                                                                                                                                                 [ 13%]
fib/test_fib.py::test_hash[ipv6]  ^H ^H ^H ^H ^H ^HPASSED                                                                                                                                                                                 [ 20%]
fib/test_fib.py::test_ipinip_hash[ipv4] SKIPPED (The test case runs on T1 topology)                                                                                                                                     [ 26%]
fib/test_fib.py::test_ipinip_hash[ipv6] SKIPPED (The test case runs on T1 topology)                                                                                                                                     [ 33%]
fib/test_fib.py::test_ipinip_hash_negative[ipv4]  ^HPASSED                                                                                                                                                                 [ 40%]
fib/test_fib.py::test_ipinip_hash_negative[ipv6]  ^H ^HPASSED                                                                                                                                                                 [ 46%]
fib/test_fib.py::test_vxlan_hash[ipv4-ipv4]  ^H ^HPASSED                                                                                                                                                                      [ 53%]
fib/test_fib.py::test_vxlan_hash[ipv4-ipv6]  ^H ^HPASSED                                                                                                                                                                      [ 60%]
fib/test_fib.py::test_vxlan_hash[ipv6-ipv6]  ^HPASSED                                                                                                                                                                      [ 66%]
fib/test_fib.py::test_vxlan_hash[ipv6-ipv4]  ^H ^HPASSED                                                                                                                                                                      [ 73%]
fib/test_fib.py::test_nvgre_hash[ipv4-ipv4] SKIPPED (Nvgre hash test is not fully supported on VS and Broadcom platform; Not supported on M*. Skip on t1-isolated-d32/128 topos)                                        [ 80%]
fib/test_fib.py::test_nvgre_hash[ipv4-ipv6] SKIPPED (Nvgre hash test is not fully supported on VS and Broadcom platform; Not supported on M*. Skip on t1-isolated-d32/128 topos)                                        [ 86%]
fib/test_fib.py::test_nvgre_hash[ipv6-ipv6] SKIPPED (Nvgre hash test is not fully supported on VS and Broadcom platform; Not supported on M*. Skip on t1-isolated-d32/128 topos)                                        [ 93%]
fib/test_fib.py::test_nvgre_hash[ipv6-ipv4] SKIPPED (Nvgre hash test is not fully supported on VS and Broadcom platform; Not supported on M*. Skip on t1-isolated-d32/128 topos)                                        [100%]
```
#### Any platform specific information?
No.

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

### 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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants