This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
sonic-buildimage/src/sonic-py-common/tests
Alexander Allen 020daa9c2a
[sonic-py-common] Add platform and chassis info methods to device_info (#7652)
#### Why I did it
These methods were added to make some convenient platform and chassis information methods accessible through sonic-py-common. These methods were refactored from sonic-utilities and are used in the `show platform summary` and `show version` commands. 

#### How I did it
There are two methods, one is `get_platform_info()` which simply calls local methods to collect useful platform information into a dictionary format, this came directly from sonic-utilities.
2021-06-01 09:07:33 -07:00
..
__init__.py [sonic-py-common] Add unit test framework (#5238) 2020-08-24 10:35:22 -07:00
device_info_test.py [sonic-py-common] Add platform and chassis info methods to device_info (#7652) 2021-06-01 09:07:33 -07:00
interface_test.py [sonic-py-common] Relocate some functions from sonic-utilities (#5269) 2020-08-30 08:24:29 -07:00
mock_swsssdk.py [sonic-py-common] Add platform and chassis info methods to device_info (#7652) 2021-06-01 09:07:33 -07:00