Skip to content
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
wants to merge 193 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 185 commits
Commits
Show all changes
193 commits
Select commit Hold shift + click to select a range
0785bb1
Added SmartSwitch support in chassisd and enabling chassisd for fixed
rameshraghupathy Apr 15, 2024
c4725c4
Made temp fix to avoid chassisd tests passing. Need to handle it using
rameshraghupathy Apr 28, 2024
d1a6b2a
The test_chassisd needs to updated for smartswitch. The change is a
rameshraghupathy Apr 29, 2024
af4ff55
Addressing review comments
rameshraghupathy May 31, 2024
356fa8b
Merge remote-tracking branch 'upstream/master'
rameshraghupathy Jun 4, 2024
97b6518
Fixed the merge conflict breakage in "asic_table"
rameshraghupathy Jun 5, 2024
60cb8ed
checking test_chassisd.py is ok
rameshraghupathy Jun 5, 2024
cd6db9b
Trying to resolve test failure
rameshraghupathy Jun 5, 2024
8e958ba
Using is_smartswitch in MockChassis
rameshraghupathy Jun 10, 2024
fb7b4ac
Disabling the test until the dependency is committed
rameshraghupathy Jun 10, 2024
312129f
Addressing review comments
rameshraghupathy Jun 11, 2024
ce3bc30
Addressed review comments: 1. removed SWITCH module 2. Restored
rameshraghupathy Jul 9, 2024
ca1fe7c
As per one of the review comments created derived class for SmartSwitch
rameshraghupathy Aug 5, 2024
b2ac82c
Uncommented the previously commented blocks in test_chassisd
rameshraghupathy Aug 5, 2024
3713261
Temp workaround until
rameshraghupathy Aug 5, 2024
29c82d2
Setting slot to 'N/A' for smartswitch
rameshraghupathy Sep 1, 2024
a34457f
Fixed is_smartswitch and a line at the EOF
rameshraghupathy Sep 2, 2024
2c68e62
Testing
rameshraghupathy Sep 2, 2024
4d335ba
Improving coverage
rameshraghupathy Sep 2, 2024
1f96225
Adding tests for DPU
rameshraghupathy Sep 2, 2024
68d8671
debugging
rameshraghupathy Sep 2, 2024
28d09af
Fixed test issues
rameshraghupathy Sep 2, 2024
67e24a9
Fixing test issues
rameshraghupathy Sep 2, 2024
36dbf92
fixing ut
rameshraghupathy Sep 2, 2024
7b6b094
fixed a typo
rameshraghupathy Sep 2, 2024
8d7f96f
Adding ut for smartswitch config change events
rameshraghupathy Sep 2, 2024
4e4f4de
Trying to improve coverage
rameshraghupathy Sep 2, 2024
8daf0bb
Tuning to improve coverage
rameshraghupathy Sep 2, 2024
6f02d44
workign on coverage
rameshraghupathy Sep 2, 2024
77d3901
working on coverage
rameshraghupathy Sep 2, 2024
e0a5570
Fixed syntax issues in ut
rameshraghupathy Sep 2, 2024
5833cfb
working on coverage
rameshraghupathy Sep 2, 2024
b26c238
Improving coverage
rameshraghupathy Sep 2, 2024
c08a656
task_worker can not be tested in this workflow
rameshraghupathy Sep 2, 2024
c0cc783
Fixed some minor issues
rameshraghupathy Sep 2, 2024
bbdc876
Adding more coverage
rameshraghupathy Sep 2, 2024
a54724c
Minor fix
rameshraghupathy Sep 2, 2024
e7df894
Minor fixes
rameshraghupathy Sep 2, 2024
a181d2f
Fixed minor errors
rameshraghupathy Sep 2, 2024
b6a8dde
Adding test for task_worker
rameshraghupathy Sep 2, 2024
3c35dd8
Fixing test failure
rameshraghupathy Sep 2, 2024
c1c0c9c
Debugging ut
rameshraghupathy Sep 2, 2024
c58459f
Testing
rameshraghupathy Sep 3, 2024
aecd959
Testing
rameshraghupathy Sep 3, 2024
65b37f4
Testing
rameshraghupathy Sep 3, 2024
df25c41
testing
rameshraghupathy Sep 3, 2024
7aa6c87
Testing
rameshraghupathy Sep 3, 2024
360cfd2
testing
rameshraghupathy Sep 3, 2024
7ee5c84
testing
rameshraghupathy Sep 3, 2024
ef931cd
testing
rameshraghupathy Sep 3, 2024
a74b278
Testing
rameshraghupathy Sep 3, 2024
523ea43
Testing
rameshraghupathy Sep 3, 2024
4f763c4
testing
rameshraghupathy Sep 3, 2024
332139c
Testing
rameshraghupathy Sep 3, 2024
53dbb67
Did some cosmetic cleanup
rameshraghupathy Sep 3, 2024
c295660
Addressed some review comments, added cleanup for smartswitch, added
rameshraghupathy Sep 26, 2024
655be48
Will add the set_initial_dpu_admin_state as a function in the next push
rameshraghupathy Sep 26, 2024
cd483bd
Fixed the test cases as per the modified code for
rameshraghupathy Sep 27, 2024
4b200c7
Added a function to set dpu initial admin status
rameshraghupathy Oct 1, 2024
49868a5
Improving coverage
rameshraghupathy Oct 1, 2024
b366b2d
Trying to improve coverage
rameshraghupathy Oct 1, 2024
82066d1
Fixed a typo
rameshraghupathy Oct 1, 2024
43f3661
Working on coverage
rameshraghupathy Oct 1, 2024
f62d54c
Fixed a typo
rameshraghupathy Oct 1, 2024
001a985
Fixing sytax issues
rameshraghupathy Oct 1, 2024
fa7fa71
Adding a test to improve coverage
rameshraghupathy Oct 1, 2024
c92d234
Assigned localy module_updater to daemon.module_updater
rameshraghupathy Oct 2, 2024
9554bb3
Fixed a syntax error
rameshraghupathy Oct 2, 2024
6ef579e
Resolving syntax errors
rameshraghupathy Oct 2, 2024
482d9c8
Fixing test issues
rameshraghupathy Oct 2, 2024
84c6812
Fixing test failure
rameshraghupathy Oct 2, 2024
b31be6f
Debugging
rameshraghupathy Oct 2, 2024
dd91702
Debugging
rameshraghupathy Oct 2, 2024
c7d02f6
Debugging
rameshraghupathy Oct 2, 2024
52a5007
Debugging
rameshraghupathy Oct 2, 2024
598220b
trying 2 tests
rameshraghupathy Oct 2, 2024
6e90f3b
Debugging
rameshraghupathy Oct 2, 2024
2fbcd37
Debugging
rameshraghupathy Oct 2, 2024
007d1a8
Trying to improve coverage
rameshraghupathy Oct 2, 2024
cb90f02
Debugging test
rameshraghupathy Oct 2, 2024
9a74992
Fixed a typo
rameshraghupathy Oct 2, 2024
1342d19
fixed a test failure
rameshraghupathy Oct 2, 2024
9eeda1d
debugging test
rameshraghupathy Oct 2, 2024
9e25701
mocking get_module
rameshraghupathy Oct 2, 2024
6e29e88
Removed CHASSIS_MODULE_INFO_ASICS for smartswitch
rameshraghupathy Oct 2, 2024
2ae658d
Added a docstring and updated a comment
rameshraghupathy Oct 11, 2024
a55ecac
Fixed a thread issue and removed all locks
rameshraghupathy Oct 19, 2024
54accfe
Added support to persist reboot-cause, user defined reboot timeout,
rameshraghupathy Oct 22, 2024
466f6d3
Added get_reboot_cause() to mock_platform.py
rameshraghupathy Oct 23, 2024
43e6b61
Added the necessary changes for dark-mode dpu initial admin status,
rameshraghupathy Oct 29, 2024
5a81fc7
Fixing test issues
rameshraghupathy Oct 29, 2024
53ce3a6
Added a mock for file open
rameshraghupathy Oct 30, 2024
094c0ad
working on test coverage
rameshraghupathy Oct 30, 2024
55fd678
Initialized previous reboot time
rameshraghupathy Oct 30, 2024
c424271
Fixed time format
rameshraghupathy Oct 30, 2024
90e9825
For some reason the test thinks that "reboot_cause" is a dict. So
rameshraghupathy Oct 30, 2024
ee11414
checking if the file_path exists before creating a new symlink
rameshraghupathy Oct 30, 2024
153962b
Adding some error handling
rameshraghupathy Oct 30, 2024
465bf31
Adding error handling
rameshraghupathy Oct 30, 2024
1de545e
Adding error handling
rameshraghupathy Oct 30, 2024
d2969bd
Adding error handling
rameshraghupathy Oct 30, 2024
89825b8
Improving coverage
rameshraghupathy Oct 30, 2024
4e91144
Adding test cases for coverage
rameshraghupathy Oct 30, 2024
ad3fc74
fixed dpu_reboot_timeout
rameshraghupathy Oct 30, 2024
529fdcd
working on coverage
rameshraghupathy Oct 30, 2024
d19cc75
working on coverage
rameshraghupathy Oct 30, 2024
8421109
Merge branch 'master' into master
rameshraghupathy Nov 1, 2024
760b73d
Resolved merge conflicts
rameshraghupathy Nov 3, 2024
196c674
Resolved indentation issue after merge
rameshraghupathy Nov 3, 2024
b1ad5b7
reboot-cause tested as per the modified design
rameshraghupathy Nov 4, 2024
c0cfea6
Resolving merge related test failures
rameshraghupathy Nov 4, 2024
bda9d11
Fixed merge related issues and added dpu state update on init as well
rameshraghupathy Nov 4, 2024
0e8e6f3
Added get_my_slot() to mock-platform
rameshraghupathy Nov 4, 2024
ad47e68
Fixing test failure
rameshraghupathy Nov 4, 2024
130bcb7
Resolving test failures due to merge
rameshraghupathy Nov 4, 2024
9c09a49
Working on coverage
rameshraghupathy Nov 5, 2024
d5462fd
Updated reboot-cause and dpu-state sections for smartswitch. Also,
rameshraghupathy Nov 11, 2024
9a2657c
Taking slot and supervisor-slot out of smartswitch
rameshraghupathy Nov 11, 2024
4f3236e
The show chassis modules status uses the slot field
rameshraghupathy Nov 11, 2024
3b98eb7
working on coverage
rameshraghupathy Nov 12, 2024
1134008
fixing sytax
rameshraghupathy Nov 12, 2024
a84f012
fixing test issues
rameshraghupathy Nov 12, 2024
6984ab6
fixed a test sytax issue
rameshraghupathy Nov 12, 2024
318960d
using the original mock_open instead of lambda
rameshraghupathy Nov 12, 2024
d2cfee1
Fixed some syntax issues in the tests
rameshraghupathy Nov 12, 2024
52b37f9
Trying to fix test errors
rameshraghupathy Nov 12, 2024
5ad1343
Experimenting mock_open
rameshraghupathy Nov 13, 2024
bad6e88
Trying to fix the mock_open issue
rameshraghupathy Nov 13, 2024
334a473
woking on mock_open
rameshraghupathy Nov 13, 2024
1850ff7
Trying a different approach
rameshraghupathy Nov 13, 2024
1f2a3f6
Adding more tests
rameshraghupathy Nov 13, 2024
26552de
Debugging test failure
rameshraghupathy Nov 13, 2024
a1ded43
Debugging test issue
rameshraghupathy Nov 13, 2024
b254b23
Fixing syntax
rameshraghupathy Nov 13, 2024
981bad6
Fixed a pathh issue
rameshraghupathy Nov 13, 2024
635f1c8
Working on coverage
rameshraghupathy Nov 13, 2024
ee5574c
Fixed indentation issue
rameshraghupathy Nov 13, 2024
ffea8f0
Tring a different approach for tests
rameshraghupathy Nov 13, 2024
8227b4c
Debugging
rameshraghupathy Nov 13, 2024
05ee8d3
Debugging
rameshraghupathy Nov 13, 2024
478642c
Debugging
rameshraghupathy Nov 13, 2024
fc89ca9
Debugging
rameshraghupathy Nov 13, 2024
4e04237
debugging
rameshraghupathy Nov 13, 2024
686e5a5
Debugging
rameshraghupathy Nov 13, 2024
30f0135
importing datetime
rameshraghupathy Nov 13, 2024
77e78e4
Debugging
rameshraghupathy Nov 13, 2024
d9b925a
Debugging
rameshraghupathy Nov 13, 2024
cf35689
iDebugging
rameshraghupathy Nov 13, 2024
f295787
Debugging
rameshraghupathy Nov 13, 2024
251c6c8
Debugging
rameshraghupathy Nov 14, 2024
43b8e66
Debugging ut
rameshraghupathy Nov 14, 2024
0a09dd2
Improving coverage
rameshraghupathy Nov 14, 2024
08a4aa2
workign on coverage
rameshraghupathy Nov 14, 2024
550052b
Working on coverage
rameshraghupathy Nov 14, 2024
3e33d4b
workign on coverage
rameshraghupathy Nov 14, 2024
f7ed036
Working on coverage
rameshraghupathy Nov 14, 2024
9c77535
Working on coverage
rameshraghupathy Nov 14, 2024
60fa5a9
Working on coverage
rameshraghupathy Nov 14, 2024
dacadb5
Working on coverage
rameshraghupathy Nov 14, 2024
f4be37d
Working on coverage
rameshraghupathy Nov 14, 2024
6404bd7
Working on coverage
rameshraghupathy Nov 14, 2024
a427236
working on coverage
rameshraghupathy Nov 14, 2024
0dffaa5
Working on coverage
rameshraghupathy Nov 14, 2024
14bbbf0
Working on coverage
rameshraghupathy Nov 14, 2024
e65d8eb
Did some cleanup
rameshraghupathy Nov 14, 2024
961ed0a
Working on coverage
rameshraghupathy Nov 14, 2024
4d4c815
Working on coverage
rameshraghupathy Nov 14, 2024
7dc1ab7
Working on coverage
rameshraghupathy Nov 14, 2024
778c342
Working on coverage
rameshraghupathy Nov 14, 2024
c9f503d
working on coverage
rameshraghupathy Nov 14, 2024
2469f7f
Addressed review comments
rameshraghupathy Nov 16, 2024
364f522
Using config_db CHASSIS_MODULE table admin_status change notification…
rameshraghupathy Nov 18, 2024
77fd578
coverage
rameshraghupathy Nov 18, 2024
3d35649
Working on coverage
rameshraghupathy Nov 18, 2024
67604f8
Working on coverage
rameshraghupathy Nov 19, 2024
fe3302a
Working on coverage
rameshraghupathy Nov 19, 2024
74904e6
Working on coverage
rameshraghupathy Nov 19, 2024
7c3ed24
Working on coverage
rameshraghupathy Nov 19, 2024
d982499
Working on coverage
rameshraghupathy Nov 19, 2024
3ca60cf
working on coverage
rameshraghupathy Nov 19, 2024
efc70b0
Working on coverage
rameshraghupathy Nov 19, 2024
f371df7
working on coverage
rameshraghupathy Nov 19, 2024
a23cf28
Addressed a few review comments
rameshraghupathy Nov 23, 2024
4d2ebf9
changing define REBOOT_CAUSE_DIR to MODULE_REBOOT_CAUSE_DIR as per
rameshraghupathy Dec 2, 2024
f2a8eb6
Changed time format in "show system-health dpu DPUx" CLI
rameshraghupathy Dec 2, 2024
99b1081
Merge branch 'master' into master
rameshraghupathy Dec 5, 2024
cfdbc37
Merge branch 'sonic-net:master' into master
rameshraghupathy Dec 6, 2024
bd416b9
The config change handler was not generating the initial config chang…
rameshraghupathy Dec 10, 2024
9b98d04
Removed the extra blank line at EOF from mock_platform.py
rameshraghupathy Dec 10, 2024
f3737d7
Removed the extra blank lines
rameshraghupathy Dec 10, 2024
01bc92a
Removed accidental additional changes in Module Updater
rameshraghupathy Dec 10, 2024
bc3e729
Restored unwanted blank line deletion
rameshraghupathy Dec 10, 2024
2e15136
Merge branch 'sonic-net:master' into master
rameshraghupathy Dec 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Loading