-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added SmartSwitch support in chassisd and enabling chassisd #467
Open
rameshraghupathy
wants to merge
137
commits into
sonic-net:master
Choose a base branch
from
rameshraghupathy:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 12 commits
Commits
Show all changes
137 commits
Select commit
Hold shift + click to select a range
0785bb1
Added SmartSwitch support in chassisd and enabling chassisd for fixed
rameshraghupathy c4725c4
Made temp fix to avoid chassisd tests passing. Need to handle it using
rameshraghupathy d1a6b2a
The test_chassisd needs to updated for smartswitch. The change is a
rameshraghupathy af4ff55
Addressing review comments
rameshraghupathy 356fa8b
Merge remote-tracking branch 'upstream/master'
rameshraghupathy 97b6518
Fixed the merge conflict breakage in "asic_table"
rameshraghupathy 60cb8ed
checking test_chassisd.py is ok
rameshraghupathy cd6db9b
Trying to resolve test failure
rameshraghupathy 8e958ba
Using is_smartswitch in MockChassis
rameshraghupathy fb7b4ac
Disabling the test until the dependency is committed
rameshraghupathy 312129f
Addressing review comments
rameshraghupathy ce3bc30
Addressed review comments: 1. removed SWITCH module 2. Restored
rameshraghupathy ca1fe7c
As per one of the review comments created derived class for SmartSwitch
rameshraghupathy b2ac82c
Uncommented the previously commented blocks in test_chassisd
rameshraghupathy 3713261
Temp workaround until
rameshraghupathy 29c82d2
Setting slot to 'N/A' for smartswitch
rameshraghupathy a34457f
Fixed is_smartswitch and a line at the EOF
rameshraghupathy 2c68e62
Testing
rameshraghupathy 4d335ba
Improving coverage
rameshraghupathy 1f96225
Adding tests for DPU
rameshraghupathy 68d8671
debugging
rameshraghupathy 28d09af
Fixed test issues
rameshraghupathy 67e24a9
Fixing test issues
rameshraghupathy 36dbf92
fixing ut
rameshraghupathy 7b6b094
fixed a typo
rameshraghupathy 8d7f96f
Adding ut for smartswitch config change events
rameshraghupathy 4e4f4de
Trying to improve coverage
rameshraghupathy 8daf0bb
Tuning to improve coverage
rameshraghupathy 6f02d44
workign on coverage
rameshraghupathy 77d3901
working on coverage
rameshraghupathy e0a5570
Fixed syntax issues in ut
rameshraghupathy 5833cfb
working on coverage
rameshraghupathy b26c238
Improving coverage
rameshraghupathy c08a656
task_worker can not be tested in this workflow
rameshraghupathy c0cc783
Fixed some minor issues
rameshraghupathy bbdc876
Adding more coverage
rameshraghupathy a54724c
Minor fix
rameshraghupathy e7df894
Minor fixes
rameshraghupathy a181d2f
Fixed minor errors
rameshraghupathy b6a8dde
Adding test for task_worker
rameshraghupathy 3c35dd8
Fixing test failure
rameshraghupathy c1c0c9c
Debugging ut
rameshraghupathy c58459f
Testing
rameshraghupathy aecd959
Testing
rameshraghupathy 65b37f4
Testing
rameshraghupathy df25c41
testing
rameshraghupathy 7aa6c87
Testing
rameshraghupathy 360cfd2
testing
rameshraghupathy 7ee5c84
testing
rameshraghupathy ef931cd
testing
rameshraghupathy a74b278
Testing
rameshraghupathy 523ea43
Testing
rameshraghupathy 4f763c4
testing
rameshraghupathy 332139c
Testing
rameshraghupathy 53dbb67
Did some cosmetic cleanup
rameshraghupathy c295660
Addressed some review comments, added cleanup for smartswitch, added
rameshraghupathy 655be48
Will add the set_initial_dpu_admin_state as a function in the next push
rameshraghupathy cd483bd
Fixed the test cases as per the modified code for
rameshraghupathy 4b200c7
Added a function to set dpu initial admin status
rameshraghupathy 49868a5
Improving coverage
rameshraghupathy b366b2d
Trying to improve coverage
rameshraghupathy 82066d1
Fixed a typo
rameshraghupathy 43f3661
Working on coverage
rameshraghupathy f62d54c
Fixed a typo
rameshraghupathy 001a985
Fixing sytax issues
rameshraghupathy fa7fa71
Adding a test to improve coverage
rameshraghupathy c92d234
Assigned localy module_updater to daemon.module_updater
rameshraghupathy 9554bb3
Fixed a syntax error
rameshraghupathy 6ef579e
Resolving syntax errors
rameshraghupathy 482d9c8
Fixing test issues
rameshraghupathy 84c6812
Fixing test failure
rameshraghupathy b31be6f
Debugging
rameshraghupathy dd91702
Debugging
rameshraghupathy c7d02f6
Debugging
rameshraghupathy 52a5007
Debugging
rameshraghupathy 598220b
trying 2 tests
rameshraghupathy 6e90f3b
Debugging
rameshraghupathy 2fbcd37
Debugging
rameshraghupathy 007d1a8
Trying to improve coverage
rameshraghupathy cb90f02
Debugging test
rameshraghupathy 9a74992
Fixed a typo
rameshraghupathy 1342d19
fixed a test failure
rameshraghupathy 9eeda1d
debugging test
rameshraghupathy 9e25701
mocking get_module
rameshraghupathy 6e29e88
Removed CHASSIS_MODULE_INFO_ASICS for smartswitch
rameshraghupathy 2ae658d
Added a docstring and updated a comment
rameshraghupathy a55ecac
Fixed a thread issue and removed all locks
rameshraghupathy 54accfe
Added support to persist reboot-cause, user defined reboot timeout,
rameshraghupathy 466f6d3
Added get_reboot_cause() to mock_platform.py
rameshraghupathy 43e6b61
Added the necessary changes for dark-mode dpu initial admin status,
rameshraghupathy 5a81fc7
Fixing test issues
rameshraghupathy 53ce3a6
Added a mock for file open
rameshraghupathy 094c0ad
working on test coverage
rameshraghupathy 55fd678
Initialized previous reboot time
rameshraghupathy c424271
Fixed time format
rameshraghupathy 90e9825
For some reason the test thinks that "reboot_cause" is a dict. So
rameshraghupathy ee11414
checking if the file_path exists before creating a new symlink
rameshraghupathy 153962b
Adding some error handling
rameshraghupathy 465bf31
Adding error handling
rameshraghupathy 1de545e
Adding error handling
rameshraghupathy d2969bd
Adding error handling
rameshraghupathy 89825b8
Improving coverage
rameshraghupathy 4e91144
Adding test cases for coverage
rameshraghupathy ad3fc74
fixed dpu_reboot_timeout
rameshraghupathy 529fdcd
working on coverage
rameshraghupathy d19cc75
working on coverage
rameshraghupathy 8421109
Merge branch 'master' into master
rameshraghupathy 760b73d
Resolved merge conflicts
rameshraghupathy 196c674
Resolved indentation issue after merge
rameshraghupathy b1ad5b7
reboot-cause tested as per the modified design
rameshraghupathy c0cfea6
Resolving merge related test failures
rameshraghupathy bda9d11
Fixed merge related issues and added dpu state update on init as well
rameshraghupathy 0e8e6f3
Added get_my_slot() to mock-platform
rameshraghupathy ad47e68
Fixing test failure
rameshraghupathy 130bcb7
Resolving test failures due to merge
rameshraghupathy 9c09a49
Working on coverage
rameshraghupathy d5462fd
Updated reboot-cause and dpu-state sections for smartswitch. Also,
rameshraghupathy 9a2657c
Taking slot and supervisor-slot out of smartswitch
rameshraghupathy 4f3236e
The show chassis modules status uses the slot field
rameshraghupathy 3b98eb7
working on coverage
rameshraghupathy 1134008
fixing sytax
rameshraghupathy a84f012
fixing test issues
rameshraghupathy 6984ab6
fixed a test sytax issue
rameshraghupathy 318960d
using the original mock_open instead of lambda
rameshraghupathy d2cfee1
Fixed some syntax issues in the tests
rameshraghupathy 52b37f9
Trying to fix test errors
rameshraghupathy 5ad1343
Experimenting mock_open
rameshraghupathy bad6e88
Trying to fix the mock_open issue
rameshraghupathy 334a473
woking on mock_open
rameshraghupathy 1850ff7
Trying a different approach
rameshraghupathy 1f2a3f6
Adding more tests
rameshraghupathy 26552de
Debugging test failure
rameshraghupathy a1ded43
Debugging test issue
rameshraghupathy b254b23
Fixing syntax
rameshraghupathy 981bad6
Fixed a pathh issue
rameshraghupathy 635f1c8
Working on coverage
rameshraghupathy ee5574c
Fixed indentation issue
rameshraghupathy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that instead of modifying the existing
ModuleUpdater
class, we should implementSmartSwitchModuleUpdater(ModuleUpdater)
.SmartSwitchModuleUpdater
should be derived fromModuleUpdater
and overwrite the methods that should behave differently for the Smart Switch. This approach allows us to keep the original implementation untouched and guarantees full backward compatibility with the chassisd.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will consider this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implemented this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@oleksandrivantsiv