misc module

Token

A wrapper of connection and request.

Hex

NewType creates simple unique types with almost zero runtime overhead.

ArpEntry

ArpEntry(ipv4_address: ipaddress.IPv4Address, prefix: int, patched_mac: xoa_driver.internals.commands.enums.OnOff, mac_address: xoa_driver.internals.core.transporter.protocol.payload.types.Hex)

NdpEntry

NdpEntry(ipv6_address: ipaddress.IPv6Address, prefix: int, patched_mac: xoa_driver.internals.commands.enums.OnOff, mac_address: xoa_driver.internals.core.transporter.protocol.payload.types.Hex)

DhcpEntry

DhcpEntry(ipv4_address: ipaddress.IPv4Address = <xoa_driver.internals.core.transporter.protocol.payload.field.FieldSpecs object at 0x7932a39edc60>, subnet_mask: ipaddress.IPv4Address = <xoa_driver.internals.core.transporter.protocol.payload.field.FieldSpecs object at 0x7932a39edf30>, braodcast_address: ipaddress.IPv4Address = <xoa_driver.internals.core.transporter.protocol.payload.field.FieldSpecs object at 0x7932a39edbc0>, defaultgw: ipaddress.IPv4Address = <xoa_driver.internals.core.transporter.protocol.payload.field.FieldSpecs object at 0x7932a39edb70>, lease_time: int = <xoa_driver.internals.core.transporter.protocol.payload.field.FieldSpecs object at 0x7932a39ee2a0>, mac_address: xoa_driver.internals.core.transporter.protocol.payload.types.Hex = <xoa_driver.internals.core.transporter.protocol.payload.field.FieldSpecs object at 0x7932a39edcb0>)

GroupAddressElem

GroupAddressElem(ip_address, subnet_mask, mac_address)

VlanTag

VlanTag(tci, type)

QueueStatsElem

QueueStatsElem(rx_bytes: int = <xoa_driver.internals.core.transporter.protocol.payload.field.FieldSpecs object at 0x7932a39eefc0>, rx_packets: int = <xoa_driver.internals.core.transporter.protocol.payload.field.FieldSpecs object at 0x7932a39ee980>, tx_bytes: int = <xoa_driver.internals.core.transporter.protocol.payload.field.FieldSpecs object at 0x7932a39ee930>, tx_packets: int = <xoa_driver.internals.core.transporter.protocol.payload.field.FieldSpecs object at 0x7932a39eecf0>)

ConnectionGroup

alias of ConnectionGroupIdx

BasePortFilter

alias of BaseFilterIdx

GenuinePortFilter

alias of GenuineFilterIdx

LengthTerm

alias of LengthTermIdx

MatchTerm

alias of MatchTermIdx

PortDataset

alias of PortDatasetIdx

BaseStream

alias of BaseStreamIdx

GenuineStream

alias of GenuineStreamIdx

ImpairmentFlow

alias of CFlow

BasicImpairmentFlowFilter

alias of ModeBasic

ExtendedImpairmentFlowFilter

alias of ModeExtended

GenuineMacSecTxScIdx

Genuine MACSec TX SC Index Manager

GenuineMacSecRxScIdx

Genuine MACSec RX SC Index Manager

Module Contents

Other types used in Xena test ports.

class ArpEntry[source]

Bases: object

ArpEntry(ipv4_address: ipaddress.IPv4Address, prefix: int, patched_mac: xoa_driver.internals.commands.enums.OnOff, mac_address: xoa_driver.internals.core.transporter.protocol.payload.types.Hex)

ipv4_address

The IP address to match to the Target IP address in the ARP requests

mac_address

The target MAC address to return in the ARP reply. If set t to all-zero, the port MAC address will be used.

patched_mac

If on, the target MAC address will be patched with the part of the IP address that is not masked by the prefix

prefix

The IP prefix used for address matching.

BasePortFilter

alias of BaseFilterIdx

BaseStream

alias of BaseStreamIdx

ConnectionGroup

alias of ConnectionGroupIdx

class DhcpEntry[source]

Bases: object

DhcpEntry(ipv4_address: ipaddress.IPv4Address = <xoa_driver.internals.core.transporter.protocol.payload.field.FieldSpecs object at 0x7932a39edc60>, subnet_mask: ipaddress.IPv4Address = <xoa_driver.internals.core.transporter.protocol.payload.field.FieldSpecs object at 0x7932a39edf30>, braodcast_address: ipaddress.IPv4Address = <xoa_driver.internals.core.transporter.protocol.payload.field.FieldSpecs object at 0x7932a39edbc0>, defaultgw: ipaddress.IPv4Address = <xoa_driver.internals.core.transporter.protocol.payload.field.FieldSpecs object at 0x7932a39edb70>, lease_time: int = <xoa_driver.internals.core.transporter.protocol.payload.field.FieldSpecs object at 0x7932a39ee2a0>, mac_address: xoa_driver.internals.core.transporter.protocol.payload.types.Hex = <xoa_driver.internals.core.transporter.protocol.payload.field.FieldSpecs object at 0x7932a39edcb0>)

class GenuineMacSecRxScIdx[source]

Bases: BaseMacSecRxScIdx

Genuine MACSec RX SC Index Manager

access_sak_value(sak_index)[source]

Access SAK value

Parameters:

sak_index (int) – SAK key index

Return type:

P_MACSEC_RXSC_SAK_VALUE

stats

Port’s MACsec RX SC statistics

Type:

P_MACSEC_RXSC_STATS

class GenuineMacSecTxScIdx[source]

Bases: BaseMacSecTxScIdx

Genuine MACSec TX SC Index Manager

access_sak_value(sak_index)[source]

Access SAK value

Parameters:

sak_index (int) – SAK key index

Return type:

P_MACSEC_TXSC_SAK_VALUE

stats

Port’s MACsec TX SC statistics

Type:

P_MACSEC_TXSC_STATS

GenuinePortFilter

alias of GenuineFilterIdx

GenuineStream

alias of GenuineStreamIdx

class GroupAddressElem[source]

Bases: object

GroupAddressElem(ip_address, subnet_mask, mac_address)

ImpairmentFlow

alias of CFlow

LengthTerm

alias of LengthTermIdx

MatchTerm

alias of MatchTermIdx

class NdpEntry[source]

Bases: object

NdpEntry(ipv6_address: ipaddress.IPv6Address, prefix: int, patched_mac: xoa_driver.internals.commands.enums.OnOff, mac_address: xoa_driver.internals.core.transporter.protocol.payload.types.Hex)

ipv6_address

The IP address to match to the Target IP address in the NDP Neighbor Solicitation

mac_address

The target MAC address to return in the NDP Neighbor Advertisement. If set t to all-zero, the port MAC address will be used.

patched_mac

If on, the target MAC address will be patched with the part of the IP address that is not masked by the prefix

prefix

The IP prefix used for address matching.

PortDataset

alias of PortDatasetIdx

class QueueStatsElem[source]

Bases: object

QueueStatsElem(rx_bytes: int = <xoa_driver.internals.core.transporter.protocol.payload.field.FieldSpecs object at 0x7932a39eefc0>, rx_packets: int = <xoa_driver.internals.core.transporter.protocol.payload.field.FieldSpecs object at 0x7932a39ee980>, tx_bytes: int = <xoa_driver.internals.core.transporter.protocol.payload.field.FieldSpecs object at 0x7932a39ee930>, tx_packets: int = <xoa_driver.internals.core.transporter.protocol.payload.field.FieldSpecs object at 0x7932a39eecf0>)

class Token[source]

Bases: Awaitable[AwaitableDataType]

A wrapper of connection and request. Which can be used for await an single command or organized in to the ordered sequence of the commands which will be send to the server in single request.

class VlanTag[source]

Bases: object

VlanTag(tci, type)