Skip to content

[warm/fast reboot] refactor test code to reduce duplicate logic#833

Merged
yxieca merged 1 commit intosonic-net:masterfrom
yxieca:state
Mar 20, 2019
Merged

[warm/fast reboot] refactor test code to reduce duplicate logic#833
yxieca merged 1 commit intosonic-net:masterfrom
yxieca:state

Conversation

@yxieca
Copy link
Collaborator

@yxieca yxieca commented Mar 20, 2019

Summary:

Type of change

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

Approach

How did you do it?

  • Refactoring repeating code to StateMachine class.
  • Tracking flooding state in StateMachine too.
  • Also watch VLAN ARP state transitions but not failing on it.

Signed-off-by: Ying Xie [email protected]

How did you verify/test it?

Tested with fast-reboot/warm-reboot

- Refactoring repeating code to StateMachine class.
- Tracking flooding state in StateMachine too.
- Also watch VLAN ARP state transitions but not failing on it.

Signed-off-by: Ying Xie <[email protected]>
@yxieca yxieca merged commit 4bd7dae into sonic-net:master Mar 20, 2019
@yxieca yxieca deleted the state branch March 20, 2019 01:51
yxieca added a commit that referenced this pull request Mar 20, 2019
- Refactoring repeating code to StateMachine class.
- Tracking flooding state in StateMachine too.
- Also watch VLAN ARP state transitions but not failing on it.

Signed-off-by: Ying Xie <[email protected]>
auspham pushed a commit to auspham/sonic-mgmt that referenced this pull request Feb 3, 2026
… docker-sonic-mgmt (sonic-net#833)

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

- [ ] 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
- [ ] 202505

### Approach
#### What is the motivation for this PR?
To support docker-sonic-mgmt based on Ubuntu 24.04, the setup-container.sh needs some minor improvements:

#### How did you do it?
1. The Ubuntu 24.04 docker image as account "ubuntu" by default. Its uid could conflict with the user's uid. This change added code to best effort deleting this default "ubuntu" account.
2. In old docker-sonic-mgmt, python3 is installed in virtual environment. In 2024, the docker-sonic-mgmt was updated to install python3 in global environment. It's no longer necessary to hack the virtual environment. This change adjusted the sequence of conditions for hacking venv, so that the code can fail faster to skip this step. In the future, this piece of code should can be deleted.

#### How did you verify/test it?
Use the updated script to setup sonic-mgmt container use both old and new docker-sonic-mgmt images.

#### 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
Submodule src/sonic-swss 87f0a5e..869c78a:
  > Add retryCount option for orchagent_restart_check program. (sonic-net#833)

Submodule src/sonic-utilities 5b73b83..a02c4ea:
  > [warm-reboot] Use retryCount option of orchagent_restart_check program (sonic-net#555)

Signed-off-by: Ying Xie <[email protected]>
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
[fwutil]: Use overlay driver when mounting next image filesystem (sonic-net#825)
Fix for adding L3 interface to Vlan group (sonic-net#826)Fix for adding L3 interface to Vlan group (sonic-net#826)
[db_migrator]Do DB migration for buffer pool size change on Mellanox platform (sonic-net#833)
explicitly specify command with underscores (sonic-net#846)
[intfutil] set speed to 0 when interface speed is not available (sonic-net#839)
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.

2 participants