Action#

Shutdown/Restart#

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

Corresponding CLI command: 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()

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 CLI command: 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

Debug Log#

Allows to dump all the logs of a chassis.

Corresponding CLI command: C_DEBUGLOGS

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