8.2.4.5.1. Link Flap
8.2.4.5.1.1. Control
Enable / disable port ‘link flap’.
Corresponding low-level API class: PP_LINKFLAP_ENABLE
# Link Flap - Control
await port.pcs_pma.link_flap.enable.set(on_off=enums.OnOff.ON)
await port.pcs_pma.link_flap.enable.set_on()
await port.pcs_pma.link_flap.enable.set(on_off=enums.OnOff.OFF)
await port.pcs_pma.link_flap.enable.set_off()
resp = await port.pcs_pma.link_flap.enable.get()
resp.on_off
8.2.4.5.1.2. Configuration
Set port ‘link flap’ parameters. Notice: Period must be larger than duration.
Corresponding low-level API class: PP_LINKFLAP_PARAMS
# Link Flap - Configuration
await port.pcs_pma.link_flap.params.set(duration=10, period=20, repetition=0)
resp = await port.pcs_pma.link_flap.params.get()
resp.duration
resp.period
resp.repetition