misc module
A wrapper of connection and request. |
|
|
NewType creates simple unique types with almost zero runtime overhead. |
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(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(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(ip_address, subnet_mask, mac_address) |
|
VlanTag(tci, type) |
|
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>) |
|
alias of |
|
alias of |
|
alias of |
|
alias of |
|
alias of |
|
alias of |
|
alias of |
|
alias of |
|
alias of |
|
|
alias of |
|
alias of |
Genuine MACSec TX SC Index Manager |
|
Genuine MACSec RX SC Index Manager |
Module Contents
Other types used in Xena test ports.
- class ArpEntry[source]
Bases:
objectArpEntry(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:
objectDhcpEntry(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:
BaseMacSecRxScIdxGenuine MACSec RX SC Index Manager
- access_sak_value(sak_index)[source]
Access SAK value
- Parameters:
sak_index (int) – SAK key index
- Return type:
- stats
Port’s MACsec RX SC statistics
- Type:
- class GenuineMacSecTxScIdx[source]
Bases:
BaseMacSecTxScIdxGenuine MACSec TX SC Index Manager
- access_sak_value(sak_index)[source]
Access SAK value
- Parameters:
sak_index (int) – SAK key index
- Return type:
- stats
Port’s MACsec TX SC statistics
- Type:
- GenuinePortFilter
alias of
GenuineFilterIdx
- GenuineStream
alias of
GenuineStreamIdx
- class GroupAddressElem[source]
Bases:
objectGroupAddressElem(ip_address, subnet_mask, mac_address)
- ImpairmentFlow
alias of
CFlow
- LengthTerm
alias of
LengthTermIdx
- MatchTerm
alias of
MatchTermIdx
- class NdpEntry[source]
Bases:
objectNdpEntry(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:
objectQueueStatsElem(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>)