8.2.2.1. Action

8.2.2.1.1. Shutdown/Restart

Shuts down the chassis, and either restarts it in a clean state or leaves it powered off.

Corresponding low-level API class: C_DOWN

# Shutdown/Restart
await tester.down.set(operation=enums.ChassisShutdownAction.POWER_OFF)
await tester.down.set_poweroff()
await tester.down.set(operation=enums.ChassisShutdownAction.RESTART)
await tester.down.set_restart()

8.2.2.1.2. Flash

Make all the test port LEDs flash on and off with a 1-second interval. This is helpful if you have multiple chassis mounted side by side and you need to identify a specific one.

Corresponding low-level API class: C_FLASH

Note

Require Tester to be reserved before change value.

# Flash
await tester.flash.set(on_off=enums.OnOff.OFF)
await tester.flash.set_off()
await tester.flash.set(on_off=enums.OnOff.ON)
await tester.flash.set_on()

resp = await tester.flash.get()
resp.on_off

8.2.2.1.3. Debug Log

Allows to dump all the logs of a chassis.

Corresponding low-level API class: C_DEBUGLOGS

# Debug Log
resp = await tester.debug_log.get()
resp.data
resp.message_length