[test_vlan] Update test_vlan to fix warmRestartCheck error#2328
Merged
bingwang-ms merged 1 commit intosonic-net:masterfrom Oct 12, 2020
Merged
[test_vlan] Update test_vlan to fix warmRestartCheck error#2328bingwang-ms merged 1 commit intosonic-net:masterfrom
bingwang-ms merged 1 commit intosonic-net:masterfrom
Conversation
1. Add a cleanup for static route added in test setup 2. Remove duplicate 'ip add' for Vlan interface
wangxin
approved these changes
Oct 10, 2020
praveen-li
pushed a commit
to praveen-li/sonic-mgmt
that referenced
this pull request
Jul 29, 2021
1. Add a cleanup for static route added in test setup 2. Remove duplicate 'ip add' for Vlan interface
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
Include following commits: ``` 839625d Replace cmp in acl_loader with operator.eq (sonic-net#2328) af245ad [route_check]: Ignore standalone tunnel routes (sonic-net#2332) c9aa65c Revert "[DHCPv6] [202012] Update the dhcpv6_relay config/show cli (sonic-net#2271)" (sonic-net#2336) 6b9cdc9 Made changes to only allow a valid IPv4 or Ipv6 string for dhcp cli (sonic-net#2296) ```
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
…x-kernel] advance submodule head (sonic-net#12025) linkmgrd: * ab5b2c1 2022-09-02 | Fix mux config (sonic-net#128) (HEAD -> 202205, github/202205) [Longxiang Lyu] utilities: * 7de9305 2022-09-07 | [generate dump]Added error message when saisdkdump fails (sonic-net#2356) (HEAD -> 202205, github/202205) [Sudharsan Dhamal Gopalarathnam] * c5b0a6d 2022-09-07 | [counterpoll]Fixing counterpoll show for tunnel and acl stats (sonic-net#2355) [Sudharsan Dhamal Gopalarathnam] * 1452b44 2022-09-05 | [GCU] Fix missing backend in dry run (sonic-net#2347) [jingwenxie] * bc7b845 2022-09-04 | Add Password Hardening CLI support (sonic-net#2338) [davidpil2002] * 55e8948 2022-09-06 | [fast-reboot]Avoid stopping masked services during fast-reboot (sonic-net#2335) [Sudharsan Dhamal Gopalarathnam] * f7d69d4 2022-08-30 | Replace cmp in acl_loader with operator.eq (sonic-net#2328) [Zhaohui Sun] * 4054ebb 2022-09-05 | Add verification for override (sonic-net#2305) [jingwenxie] * 729d811 2022-05-30 | Fix sonic-installer and 'show version' command crash when database docker not running issue. (sonic-net#2183) [Hua Liu] platform-daemons: * 36ba7c0 2022-09-07 | [ycable] cleanup logic for creating grpc future ready (sonic-net#289) (HEAD -> 202205) [vdahiya12] * 2a9db73 2022-09-01 | [ycabled] fix insert events from xcvrd;cleanup some mux toggle logic (sonic-net#287) [vdahiya12] platform-common: * d7c990d 2022-09-03 | [CMIS] 'get_transceiver_info' should return 'None' when CMIS cable EEPROM is not ready (sonic-net#305) (HEAD -> 202205) [Kebo Liu] linux-kernel: * 25ea052 2022-08-31 | [patch]: Add accpt_untracked_na kernel param (sonic-net#292) (HEAD -> 202205) [Lawrence Lee] Signed-off-by: Ying Xie <ying.xie@microsoft.com> Signed-off-by: Ying Xie <ying.xie@microsoft.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
Summary:
Test case
test_vlanadded some static route in order to do test.https://github.com/Azure/sonic-mgmt/blob/457a6400e16bf018d16d0ca64e9a50a03f6ef911/tests/vlan/test_vlan.py#L143-L148
However, these staticly added routes are not cleared after test. As a result,
warm-rebootwill report errors because RESTARTCHECK failed.Logs in syslog told that these uncleared route caused
warmRestartCheckfailedThis PR add a cleanup for static route added in test setup.
Besides, a duplicate
ip addfor Vlan interface is removed.https://github.com/Azure/sonic-mgmt/blob/457a6400e16bf018d16d0ca64e9a50a03f6ef911/tests/vlan/test_vlan.py#L94-L95
There is exactly same operation here
https://github.com/Azure/sonic-mgmt/blob/457a6400e16bf018d16d0ca64e9a50a03f6ef911/tests/vlan/test_vlan.py#L116-L118
Type of change
Approach
What is the motivation for this PR?
This PR is to fix warm-reboot issues caused by test_vlan. And some duplicated code is removed as well.
How did you do it?
How did you verify/test it?
Verified on Arista-7260. After this update, the warm-reboot completed successfully after running
test_vlan.Any platform specific information?
No.
Supported testbed topology if it's a new test case?
No.
Documentation
No.