-
Notifications
You must be signed in to change notification settings - Fork 688
Comparing changes
Open a pull request
base repository: sonic-net/sonic-utilities
base: bcc12063a54abdad9ba1ad2d6c15139bf34d4c77
head repository: sonic-net/sonic-utilities
compare: 7d7e15ee0e1699c095ebc802f1f95d506d37f11b
- 7 commits
- 16 files changed
- 10 contributors
Commits on Jul 28, 2022
-
[sfpshow/sfputil] Enhance sfpshow and sfputil to behavior correctly o…
…n RJ45 ports (#2111) * enhance show interface transceiver eeprom logic with RJ45 port support Signed-off-by: Kebo Liu <kebol@nvidia.com> * enhance sfputil to support RJ45 port, exclude error status * fix sfputil issue on RJ45 port Signed-off-by: Kebo Liu <kebol@nvidia.com> * [RJ45] change the way to judge port type and add more UT test case Signed-off-by: Kebo Liu <kebol@nvidia.com> * [sfputil] simplity the logic for RJ45 support Signed-off-by: Kebo Liu <kebol@nvidia.com> * Support sfputil show present Signed-off-by: Stephen Sun <stephens@nvidia.com> * Support rj45 in sfpshow Signed-off-by: Stephen Sun <stephens@nvidia.com> * Add test case for sfputil with RJ45 supported Signed-off-by: Stephen Sun <stephens@nvidia.com> * Add mock data for RJ45 ports into STATE_DB Signed-off-by: Stephen Sun <stephens@nvidia.com> * Add test for sfputil show for RJ45 ports Signed-off-by: Stephen Sun <stephens@nvidia.com> * remove debug code in sfputil test case Signed-off-by: Kebo Liu <kebol@nvidia.com> * remove unnecessary argument for format() Signed-off-by: Kebo Liu <kebol@nvidia.com> * Revert the logic to fetch presence status from error status for RJ45 port (#17) * Revert the logic to fetch presence status from error status Signed-off-by: Stephen Sun <stephens@nvidia.com> * Unit test Signed-off-by: Stephen Sun <stephens@nvidia.com> * Fix error Signed-off-by: Stephen Sun <stephens@nvidia.com> * Add test cases to cover lpmode and error status Signed-off-by: Stephen Sun <stephens@nvidia.com> * add comments to describe the usage of functions to judge the port type Signed-off-by: Kebo Liu <kebol@nvidia.com> * add more testcase for sfputil Signed-off-by: Kebo Liu <kebol@nvidia.com> * fix typo in testcase name Signed-off-by: Kebo Liu <kebol@nvidia.com> Co-authored-by: Stephen Sun <stephens@nvidia.com> Co-authored-by: Stephen Sun <5379172+stephenxs@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 79b4439 - Browse repository at this point
Copy the full SHA 79b4439View commit details -
fix for non-coherent cmis modules (#2163)
* fix for non-coherent cmis modules * addressing comments * add back application_advertisement * fixing test failure Co-authored-by: Chuan Qin (QINCHUAN) <QINCHUAN@ame.gbl>
Configuration menu - View commit details
-
Copy full SHA for d7fbdd6 - Browse repository at this point
Copy the full SHA d7fbdd6View commit details -
Update db_migrator to support
PORT_QOS_MAP|global
(#2205)Signed-off-by: bingwang <wang.bing@microsoft.com> What I did This PR is to update the db_migrator to support generation of PORT_QOS_MAP|global. After PR sonic-net/sonic-buildimage#10565, there will be two DSCP_TO_TC_MAP DSCP_TO_TC_MAP|AZURE is the default map, which is used at port level and switch level DSCP_TO_TC_MAP|AZURE_TUNNEL is used to remap the priority of tunnel traffic in dualtor deployment To address the issue, an entry PORT_QOS_MAP|global will be added into config_db "PORT_QOS_MAP": { "global": { "dscp_to_tc_map": "AZURE" } } To handle the upgrade from older image, db_migrator is updated to generate the entry. There is no way to check if PORT_QOS_MAP|global is supported, so the migration is ran on all platforms. There is check in sonic-swss to check the switch capability code, so it will not cause issue. How I did it Update db_migrator to add a common migration step. How to verify it Verified by vstest
Configuration menu - View commit details
-
Copy full SHA for 46443c6 - Browse repository at this point
Copy the full SHA 46443c6View commit details -
Gives cisco-8000 more flexibility to easily add subcommnads under sho…
…w platform (#2213) What I did Gave cisco-8000 the ability to add sub-commands under show platform <> in our downstream repo. Currently every time we want to add/remove/update a cli, we must raise a PR upstream. How I did it I have the cisco-8000.py module import a list of click commands that are written in a module that is located in our platform code. How to verify it Run show platform -h to see all commands. We will be able to see show platform inventory. This is only available on cisco devices.
Configuration menu - View commit details
-
Copy full SHA for 4079e4a - Browse repository at this point
Copy the full SHA 4079e4aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 504ebe6 - Browse repository at this point
Copy the full SHA 504ebe6View commit details -
[MultiAsic] sudo reboot command doesn't gracefully stop Asic syncd# o…
…n multiasic platform (#2258) What I did Function stop_sonic_service() in /usr/local/bin/reboot script doesn't handle stopping the Asic syncd# on multiasic platform. Instead, it only stops the syncd on non-multiasic platform. When issue command "sudo reboot", the below message will be shown. admin@sonic:~$ sudo reboot Error: No such container: syncd Fixes sonic-net/sonic-buildimage#11377 How I did it Add code the stop_sonic_services() to check and get NUM_ASIC. If it is multiasic, looping all asics and call the syncd_request_shutdown for each asic. How to verify it Issue the "sudo reboot" on the multiasic platform, the error message "Error: No such container: syncd" should not be shown.
Configuration menu - View commit details
-
Copy full SHA for b3d5d18 - Browse repository at this point
Copy the full SHA b3d5d18View commit details -
[vnet_route_check] Align DB data parse logic with format used by swss…
…common API (#2268) * swsscommon API was changed in order to return data from DB as a tuple instead of dictionary. * In some places vnet_route_check still was expecting data from DB in old format - as a dictionary. * But now it is a tuple, so as a result vnet_route_check was failing with "KeyError" exeption. * These changes fixed all the places in vnet_route_check script that used invalid data format. Signed-off-by: Volodymyr Samotiy <volodymyrs@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 7d7e15e - Browse repository at this point
Copy the full SHA 7d7e15eView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff bcc12063a54abdad9ba1ad2d6c15139bf34d4c77...7d7e15ee0e1699c095ebc802f1f95d506d37f11b