XOA Python API User Manual Logo

API User Guide

  • 1. Introduction
  • 2. Getting Started
  • 3. Script Example Library
  • 4. API Structure
  • 5. Test Resource Management
  • 6. Command Grouping
  • 7. Status Messages and Exceptions
  • 8. Glossary of Terms

API Reference Guide

  • 1. API Reference
    • 1.1. High-Level Functions
    • 1.2. High-Level API
      • 1.2.1. Summary
      • 1.2.2. Tester
      • 1.2.3. Module
      • 1.2.4. Port
        • Obtain
        • General
        • Traffic Generation
        • Layer 1 (Thor, Loki, Odin)
          • Energy Efficiency Ethernet
          • Fault
          • Link Flap
            • Control
            • Configuration
          • Transceiver
          • ANLT
          • Medium
          • PCS
          • PMA
          • PRBS
        • Layer 1 (Freya)
        • Impairment
        • L47
      • 1.2.5. Stream
      • 1.2.6. Exception
      • 1.2.7. Enum
    • 1.3. Low-Level API
XOA Python API User Manual
  • 1. API Reference
  • 1.2. High-Level API
  • 1.2.4. Port
  • Layer 1 (Thor, Loki, Odin)
  • Link Flap

Link Flap

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

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
Previous Next

© Copyright 2025, Teledyne LeCroy Xena.