harbor run -t openthoughts/tasktrove-mix-h1-struggle-zone-v2-mix-h1-struggle-zone-0282harbor download openthoughts/tasktrove-mix-h1-struggle-zone-v2-mix-h1-struggle-zone-0282Implement a Python module that provides a Chassis platform API used by the test suite. Place your implementation under /app/, such that it can be imported as a normal Python package/module.
What to build
Where to put the code
Required functions and expected behavior All functions take one parameter platform_api_conn (the tests will pass some connection object — your code should accept it but may ignore it for a simple implementation). Return values should match the types and constraints described.
get_name(platform_api_conn) -> str
get_presence(platform_api_conn) -> bool
get_model(platform_api_conn) -> str
get_serial(platform_api_conn) -> str
get_status(platform_api_conn) -> bool
get_base_mac(platform_api_conn) -> str
get_serial_number(platform_api_conn) -> str
get_system_eeprom_info(platform_api_conn) -> dict
(For convenience, you can expose constants in the module for the ONIE type-code keys.)
Categories to implement (replace with the names below in function names):
Notes:
set_status_led(platform_api_conn, color: str) -> bool
get_status_led(platform_api_conn) -> str
get_thermal_manager(platform_api_conn) -> object
get_watchdog(platform_api_conn) -> object
get_eeprom(platform_api_conn) -> object
Additional guidance
Deliverable