p_commands moduleο
This module contains the L23 port classes that deal with basic information about, and configuration of L23 test ports. The L23 port command names all have the form P_<xxx> and require a module index id and a port index id. In general, port commands cannot be changed while traffic is on. Additionally, every stream must be disabled before changing parameters that affect the bandwidth of the port.
Port Commandsο
Port Commands
- class P_ARPREPLY[source]ο
Bases:
objectWhether the port replies to ARP requests. The port can reply to incoming ARP requests by mapping the IP address specified for the port to the MAC address specified for the port. ARP/NDP reply generation is independent of whether traffic and capture is on for the port.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- on_offο
coded byte, whether the port replies to ARP requests.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- on_offο
coded byte, whether the port replies to ARP requests.
- get()[source]ο
Get the status of whether the port replies to ARP requests.
- Returns:
the status of whether the port replies to ARP requests
- Return type:
- set(on_off)[source]ο
Set the status of whether the port replies to ARP requests.
- Parameters:
on_off (OnOff) β whether the port replies to ARP requests
- set_off()ο
Disable the port from replying to incoming ARP requests.
- set_on()ο
Enable the port to reply to incoming ARP requests.
- class P_ARPRXTABLE[source]ο
Bases:
objectPort ARP table used to reply to incoming ARP requests.
- get()[source]ο
Get the portβs ARP table used to reply to incoming ARP requests.
- Returns:
the portβs ARP table used to reply to incoming ARP requests. * IP address to match to the Target IP address in the ARP requests, * The prefix used for address matching, * Whether the target MAC address will be patched with the part of the IP address that is not masked by the prefix, * The target MAC address to return in the ARP reply
- Return type:
- set(entries)[source]ο
Set the portβs ARP table used to reply to incoming ARP requests.
- Parameters:
entries (List[subtypes.ArpChunkList]) β
IP address to match to the Target IP address in the ARP requests
The prefix used for address matching
Whether the target MAC address will be patched with the part of the IP address that is not masked by the prefix
The target MAC address to return in the ARP reply
- class P_ARPV6REPLY[source]ο
Bases:
objectWhether the port generates replies using the IPv6 Network Discovery Protocol. The port can reply to incoming NDP Neighbor Solicitations by mapping the IPv6 address specified for the port to the MAC address specified for the port. NDP reply generation is independent of whether traffic and capture is on for the port.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- on_offο
coded byte, whether the port replies to NDP Neighbor Solicitations.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- on_offο
coded byte, whether the port replies to NDP Neighbor Solicitations.
- get()[source]ο
Get whether the port replies to NDP Neighbor Solicitations.
- Returns:
whether the port replies to NDP Neighbor Solicitations.
- Return type:
- set(on_off)[source]ο
Set whether the port replies to NDP Neighbor Solicitations.
- Parameters:
on_off (OnOff) β whether the port replies to NDP Neighbor Solicitations.
- set_off()ο
Disable the port from replying to NDP Neighbor Solicitations.
- set_on()ο
Enable the port to reply to NDP Neighbor Solicitations.
- class P_AUTONEGSELECTION[source]ο
Bases:
objectWhether the port responds to incoming auto-negotiation requests. Only applicable to electrical ports (RJ45).
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- on_offο
coded byte, whether the port replies to auto-neg requests.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- on_offο
coded byte, whether the port replies to auto-neg requests.
- class P_AUTOTRAIN[source]ο
Bases:
objectThe interval between sending out training packets, allowing a switch to learn the portβs MAC address. Layer-2 switches configure themselves automatically by detecting the source MAC addresses of packets received on each port. If a port only receives, and does not itself transmit test traffic, then the switch will never learn its MAC address. Also, if transmission is very rare the switch will age-out the learned MAC address. By setting the auto-train interval you instruct the port to send switch training packets, independent of whether the port is transmitting test traffic.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- intervalο
integer, specifying the number of seconds between training packets. 0, disable training packets.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- intervalο
integer, specifying the number of seconds between training packets. 0, disable training packets.
- class P_BRRMODE[source]ο
Bases:
objectSelects the Master/Slave setting of 100 Mbit/s, 1000 Mbit/s BroadR-Reach copper interfaces.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- modeο
coded byte, containing the Master/Slave mode for the port.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- modeο
coded byte, containing the Master/Slave mode for the port.
- get()[source]ο
Get the portβs BroadR-Reach mode.
- Returns:
the portβs BroadR-Reach mode
- Return type:
- set(mode)[source]ο
Set the portβs BroadR-Reach mode.
- Parameters:
mode (BRRMode) β the portβs BroadR-Reach mode
- set_master()ο
Set the portβs BRR mode to Master.
- set_slave()ο
Set the portβs BRR mode to Slave.
- class P_BRRSTATUS[source]ο
Bases:
objectGet the actual BroadR-Reach status of the port.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- modeο
coded byte, the portβs actual BroadR-Reach mode.
- class P_CAPABILITIES[source]ο
Bases:
objectA series of integer values specifying various internal limits of a port. integer: integer, internally defined limit values.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- can_adv_phy_manο
integer, whether supports advanced PHY management
- can_auto_neg_base_rο
integer, whether the port currently can perform BASE-R auto-negotiation (as opposed to RJ45 BASE-T)
- can_custom_data_fieldsο
integer, whether supports custom data fields
- can_dyn_traffic_changeο
integer, whether supports dynamic traffic change
- can_eeeο
integer, whether supports EEE
- can_ext_payloadο
integer, whether supports extended payload
- can_eyescanο
Bit 0 ==1 => Sampled Eye Scan supported.
- can_fecο
bit map encoded, [0] = KR FEC, [1] = KP FEC, [2] = FC FEC, [31] = Mandatory (If this bit is set, you have to have FEC mode turned on in either of the supported mode, but you cannot turn FEC off.)
- can_fec_statsο
bit map encoded, can this port provide advanced FEC stats of type x? [0] = symbol error distribution
- can_hw_reg_accessο
integer, whether supports hardware register access
- can_link_flapο
integer, whether this port supports link flap
- can_macsecο
If the port supports MACsec
- can_manipulate_preambleο
integer, whether this port can manipulate the preamble
- can_mdi_mdixο
integer, whether supports MDI/MDIX
- can_micro_tpldο
integer, whether supports micro TPLD
- can_modifier_leο
Bit 0: Normal modifier (16/24-bit) supports little-endian
Bit 1: Extended modifier (32-bit) supports little-endian
- can_payload_modeο
integer, whether supports payload mode
- can_pcs_pma_configο
integer, whether this port can provide PCS/PMA configuration and status
- can_pfcο
integer, whether supports Priority Flow Control
- can_pma_error_pulseο
integer, whether this port supports βPMA pulse error injectionβ
- can_rx_retuneο
integer, whether supports RX retuning
- can_set_autonegο
integer, whether supports auto negotiation
- can_set_link_trainο
integer, whether this port can set link training
- can_sync_traffic_startο
integer, whether supports synchronized traffic start
- can_tcp_checksumο
integer, whether supports TCP with valid checksum
- can_tcvr_mii_reg_accessο
integer, whether supports transceiver MII access
- can_tx_eqο
integer, whether supports TX EQ settings
- can_udp_checksumο
integer, whether supports UDP with valid checksum
- capture_bitmaskο
integer, bitmask indicating capture capabilities.
If all bits are 0: CAPTURE_NOT_SUPPORTED
Bits [0:11] are for Start triggers:
Bit 0: CAPTURE_START_ON
Bit 1: CAPTURE_START_FCSERROR
Bit 2: CAPTURE_START_FILTER
Bit 3: CAPTURE_START_PLDERROR
Bit 4-11: Reserved
Bits [12:23] are for Stop triggers:
Bit 12: CAPTURE_STOP_FULL
Bit 13: CAPTURE_STOP_FCSERROR
Bit 14: CAPTURE_STOP_FILTER
Bit 15: CAPTURE_STOP_PLDERROR
Bit 16: CAPTURE_STOP_USERSTOP
Bit 17-23: Reserved
Bits [24:31] are for Keep modes:
Bit 24: CAPTURE_KEEP_ALL
Bit 25: CAPTURE_KEEP_FCSERR
Bit 26: CAPTURE_KEEP_NOTPLD
Bit 27: CAPTURE_KEEP_TPLD
Bit 28: CAPTURE_KEEP_FILTER
Bit 29: CAPTURE_KEEP_PLDERR
Bit 30-31: Reserved
- editable_mixlength_indicesο
Bit 0: Is Mix length index 0 editable
Bit 1: Is Mix length index 1 editable
Bit 2: Is Mix length index 2 editable
Bit 3: Is Mix length index 3 editable
Bit 4: Is Mix length index 4 editable
Bit 5: Is Mix length index 5 editable
Bit 6: Is Mix length index 6 editable
Bit 7: Is Mix length index 7 editable
Bit 8: Is Mix length index 8 editable
Bit 9: Is Mix length index 9 editable
Bit 10: Is Mix length index 10 editable
Bit 11: Is Mix length index 11 editable
Bit 12: Is Mix length index 12 editable
Bit 13: Is Mix length index 13 editable
Bit 14: Is Mix length index 14 editable
Bit 15: Is Mix length index 15 editable
- has_p2p_loop_partnerο
integer, whether this port currently has a port-to-port loop partner
- is_chimeraο
integer, whether this is a Chimera port
- lane_countο
integer, number of lanes (virtual)
- latency_histogram_step_maxο
maximum step size for latency histograms.
- latency_histogram_step_minο
minimum step size for latency histograms.
- layer1_miscο
Bit 0: Can IEEE variant
Bit 1: Can ETC (Ethernet Consortium) PCS variant
Bit 2: Can monitor PCS RX Lane Map
Bit 3: Can control PCS TX Lane Map
Bit 4: Can monitor PCS RX Lane Skew
Bit 5: Can control PCS TX Lane Skew
Bit 6: Can FEC error injection
Bit 8: Can Pre-coding
Bit 9: Can Gray-coding
- length_histogram_step_maxο
maximum step size for length histograms.
- length_histogram_step_minο
minimum step size for length histograms.
- max_32bit_modifiersο
integer, max 32-bit modifiers per stream
- max_burst_sizeο
integer, max packets per burst
- max_captured_packetsο
integer, max captured packets at one time
- max_fec_correctable_symbol_countο
integer, max number of symbols correctable by the current FEC
- max_filtersο
integer, max filters per port
- max_header_lengthο
integer, max bytes in auto-generated packet header
- max_histogramο
integer, max number of sampled histograms
- max_i2c_frequencyο
maximum I2C frequency
- max_interframe_gapο
integer, max explicit bytes between frames
- max_length_termsο
integer, max filter length terms per port
- max_manual_packetsο
integer, max manual packets
- max_match_term_posο
integer, max match term position in bytes
- max_match_termsο
integer, max filter match terms per port
- max_mbpsο
integer, max input rate in mbps
- max_modifier_bytesο
integer, max bytes in modified field
- max_modifiersο
integer, max 16-bit modifiers per stream
- max_notsο
integer, max or-terms with nots per filter
- max_orsο
integer, max or-terms per filter
- max_packet_lengthο
integer, max bytes in total packet
- max_pattern_lengthο
integer, max bytes in repeating payload pattern
- max_percentο
integer, max input rate in percent
- max_ppsο
integer, max input rate in pps
- max_preambleο
integer, max preamble bytes included in frame
- max_protocol_segmentsο
integer, max number of protocol segments
- max_repeatο
integer, max packet repeats for modifier
- max_seedο
integer, max random seed
- max_speedο
integer, max wire speed in Mbps, for fastest transceiver and mode
- max_speed_reductionο
integer, max ppm value of speed reduction
- max_streams_per_portο
integer, max streams per port
- max_tpidο
integer, max test payload id
- max_tpld_statsο
integer, max number of different tplds for rx statistics
- max_tx_packet_limitο
integer, max stop-after-n-packet limitation
- max_xmit_one_packet_lengthο
integer, maximum size (in bytes) of packets, which can be sent using xmitone (replay/streaming interface)
- min_i2c_frequencyο
minimum I2C frequency
- min_interframe_gapο
integer, min bytes between frames
- min_packet_lengthο
integer, min bytes in total packet
- num_txeq_preο
The number of postcursors = num_txeq - num_txeq_pre - 1.
- p2p_loop_partnerο
integer, The port-to-port loop partner for the port. N/A = -1.
- prbs_inversions_supportedο
bit map encoded, [0] = lane-based supports inv, [1] = PHY-based supports inv, [2-31] = reserved
- prbs_polys_supportedο
5 integers, bit map for each PRBS type (above). [0] = PRBS7, [1] = PRBS9, [2] = PRBS11, [3] = PRBS15, [4] = PRBS23, [5] = PRBS31, [6] = PRBS58, [7] = PRBS49, [8] = PRBS10, [9] = PRBS20, [10] = PRBS13
- prbs_types_supportedο
bit map encoded, [0] = lane-based, [1] = PHY-based, [2-31] = reserved
- reconc_sublayerο
integer, Reconciliation Sublayer support, bitmask, 0 = fault signalling not support; 1 = fault signalling supported (XMP: P_FAULTSTATUS/P_FAULTSIGNALING)
- reserved_max_1ο
Reserved.
- reserved_max_2ο
Reserved.
- reserved_max_3ο
Reserved.
- reserved_max_4ο
Reserved.
- reserved_max_5ο
Reserved.
- reserved_max_6ο
Reserved.
- reserved_max_7ο
Reserved.
- reserved_max_8ο
Reserved.
- reserved_min_1ο
Reserved.
- reserved_min_2ο
Reserved.
- reserved_min_3ο
Reserved.
- reserved_min_4ο
Reserved.
- reserved_min_5ο
Reserved.
- reserved_min_6ο
Reserved.
- reserved_min_7ο
Reserved.
- reserved_min_8ο
Reserved.
- rx_runt_packet_min_lengthο
integer, minimum RX packet size supported by runt block. Zero = not supported
- rxeq_cap_agc_maxο
max value of Automatic Gain Control.
- rxeq_cap_agc_minο
min value of Automatic Gain Control.
- rxeq_cap_cdr_maxο
max value of CDR, always 0.
- rxeq_cap_cdr_minο
min value of CDR, always 0.
- rxeq_cap_ctle_high_maxο
max value of CTLE HIGH.
- rxeq_cap_ctle_high_minο
min value of CTLE HIGH.
- rxeq_cap_ctle_low_maxο
max value of CTLE LOW.
- rxeq_cap_ctle_low_minο
min value of CTLE LOW.
- rxeq_cap_dfe_maxο
max value of DFE, always 0.
- rxeq_cap_dfe_minο
min value of DFE, always 0.
- rxeq_cap_ffe_post10_maxο
max value of FFE Post 10.
- rxeq_cap_ffe_post10_minο
min value of FFE Post 10.
- rxeq_cap_ffe_post11_maxο
max value of FFE Post 11.
- rxeq_cap_ffe_post11_minο
min value of FFE Post 11.
- rxeq_cap_ffe_post12_maxο
max value of FFE Post 12.
- rxeq_cap_ffe_post12_minο
min value of FFE Post 12.
- rxeq_cap_ffe_post13_maxο
max value of FFE Post 13.
- rxeq_cap_ffe_post13_minο
min value of FFE Post 13.
- rxeq_cap_ffe_post14_maxο
max value of FFE Post 14.
- rxeq_cap_ffe_post14_minο
min value of FFE Post 14.
- rxeq_cap_ffe_post15_maxο
max value of FFE Post 15.
- rxeq_cap_ffe_post15_minο
min value of FFE Post 15.
- rxeq_cap_ffe_post16_maxο
max value of FFE Post 16.
- rxeq_cap_ffe_post16_minο
min value of FFE Post 16.
- rxeq_cap_ffe_post17_maxο
max value of FFE Post 17.
- rxeq_cap_ffe_post17_minο
min value of FFE Post 17.
- rxeq_cap_ffe_post18_maxο
max value of FFE Post 18.
- rxeq_cap_ffe_post18_minο
min value of FFE Post 18.
- rxeq_cap_ffe_post19_maxο
max value of FFE Post 19.
- rxeq_cap_ffe_post19_minο
min value of FFE Post 19.
- rxeq_cap_ffe_post1_maxο
max value of FFE Post 1.
- rxeq_cap_ffe_post1_minο
min value of FFE Post 1.
- rxeq_cap_ffe_post20_maxο
max value of FFE Post 20.
- rxeq_cap_ffe_post20_minο
min value of FFE Post 20.
- rxeq_cap_ffe_post21_maxο
max value of FFE Post 21.
- rxeq_cap_ffe_post21_minο
min value of FFE Post 21.
- rxeq_cap_ffe_post22_maxο
max value of FFE Post 22.
- rxeq_cap_ffe_post22_minο
min value of FFE Post 22.
- rxeq_cap_ffe_post23_maxο
max value of FFE Post 23.
- rxeq_cap_ffe_post23_minο
min value of FFE Post 23.
- rxeq_cap_ffe_post2_maxο
max value of FFE Post 2.
- rxeq_cap_ffe_post2_minο
min value of FFE Post 2.
- rxeq_cap_ffe_post3_maxο
max value of FFE Post 3.
- rxeq_cap_ffe_post3_minο
min value of FFE Post 3.
- rxeq_cap_ffe_post4_maxο
max value of FFE Post 4.
- rxeq_cap_ffe_post4_minο
min value of FFE Post 4.
- rxeq_cap_ffe_post5_maxο
max value of FFE Post 5.
- rxeq_cap_ffe_post5_minο
min value of FFE Post 5.
- rxeq_cap_ffe_post6_maxο
max value of FFE Post 6.
- rxeq_cap_ffe_post6_minο
min value of FFE Post 6.
- rxeq_cap_ffe_post7_maxο
max value of FFE Post 7.
- rxeq_cap_ffe_post7_minο
min value of FFE Post 7.
- rxeq_cap_ffe_post8_maxο
max value of FFE Post 8.
- rxeq_cap_ffe_post8_minο
min value of FFE Post 8.
- rxeq_cap_ffe_post9_maxο
max value of FFE Post 9.
- rxeq_cap_ffe_post9_minο
min value of FFE Post 9.
- rxeq_cap_ffe_pre1_maxο
max value of FFE Pre 1.
- rxeq_cap_ffe_pre1_minο
min value of FFE Pre 1.
- rxeq_cap_ffe_pre2_maxο
max value of FFE Pre 2.
- rxeq_cap_ffe_pre2_minο
min value of FFE Pre 2.
- rxeq_cap_ffe_pre3_maxο
max value of FFE Pre 3.
- rxeq_cap_ffe_pre3_minο
min value of FFE Pre 3.
- rxeq_cap_ffe_pre4_maxο
max value of FFE Pre 4.
- rxeq_cap_ffe_pre4_minο
min value of FFE Pre 4.
- rxeq_cap_ffe_pre5_maxο
max value of FFE Pre 5.
- rxeq_cap_ffe_pre5_minο
min value of FFE Pre 5.
- rxeq_cap_ffe_pre6_maxο
max value of FFE Pre 6.
- rxeq_cap_ffe_pre6_minο
min value of FFE Pre 6.
- rxeq_cap_ffe_pre7_maxο
max value of FFE Pre 7.
- rxeq_cap_ffe_pre7_minο
min value of FFE Pre 7.
- rxeq_cap_ffe_pre8_maxο
max value of FFE Pre 8.
- rxeq_cap_ffe_pre8_minο
min value of FFE Pre 8.
- rxeq_cap_oc_maxο
max value of Offset Cancellation.
- rxeq_cap_oc_minο
min value of Offset Cancellation.
- serdes_countο
integer, number of physical serdes on line-side
- stream_miscο
integer, bit pattern, what streams on this port can do. [0]: Whether the port supports streams with DEC8/INC16/DEC16 payload. [1]: Whether the port supports INCPLDFROM0 stream option (refer to the PS_OPTIONS command).
- traffic_engineο
integer, Enabled traffic engine on port. 0x01 = TGA, 0x02 = uTGA.
- tx_eq_tap_countο
integer, number of TXEQ taps
- tx_eq_tap_max_valο
10 integers, max-value of individual TXEQ taps
- tx_eq_tap_min_valο
10 integers, min-value of individual TXEQ taps
- tx_runt_packet_min_lengthο
integer, minimum TX packet size supported by runt block. Zero = not supported
- txeq_max_seqο
max value of individual TXEQ taps, SEQuential: <pre-n> <pre-(n-q)> β¦ <prr1> <main> <post1> <post2> β¦.
- txeq_min_seqο
min-value of individual TXEQ taps, SEQuential: <pre-n> <pre-(n-q)> β¦ <prr1> <main> <post1> <post2> β¦.
- class P_CAPABILITIES_EXT[source]ο
Bases:
objectGet the Port Capabilities in JSON Format. The same as P_CAPABILITIES but in JSON.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- dataο
string, containing the port capabilities in JSON format
- class P_CAPTURE[source]ο
Bases:
objectWhether a port is capturing packets. When on, the port retains the received packets and makes them available for inspection. The capture criteria are configured using the PC_xxx parameters. While capture is on the capture parameters cannot be changed.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- on_offο
coded byte, whether capture is active for this port.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- on_offο
coded byte, whether capture is active for this port.
- get()[source]ο
Get whether the port is capturing packets.
- Returns:
whether the port is capturing packets.
- Return type:
- set(on_off)[source]ο
Set whether the port is capturing packets.
- Parameters:
on_off (StartOrStop) β whether the port is capturing packets.
- set_start()ο
Start packet capturing on the port.
- set_stop()ο
Stop packet capturing on the port.
- class P_CHECKSUM[source]ο
Bases:
objectControls an extra payload integrity checksum, which also covers the header protocols following the Ethernet header. It will therefore catch any modifications to the protocol fields (which should therefore not have modifiers on them).
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- offsetο
byte, the offset in the packet where the calculation of the extra checksum is started from. Set to OFF or 0 to disable. Valid enable range is [8 .. 127, ON]. Please observe that ON equals the value 14. Please also observe that P_CHECKSUM ? will return OFF if set to 0 (or OFF) and that P_CHECKSUM ? will return ON if set to 14 (or ON).
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- offsetο
byte, the offset in the packet where the calculation of the extra checksum is started from. Set to OFF or 0 to disable. Valid enable range is [8 .. 127]. Please observe that ON equals the value 14. Please also observe that P_CHECKSUM ? will return OFF if set to 0 (or OFF) and that P_CHECKSUM ? will return ON if set to 14 (or ON).
- get()[source]ο
Get the offset in the packet where the calculation of the extra checksum is started from. Set to OFF or 0 to disable. Valid enable range is [8 .. 127, ON]. Please observe that ON equals the value 14. Please also observe that P_CHECKSUM ? will return OFF if set to 0 (or OFF) and that P_CHECKSUM ? will return ON if set to 14 (or ON).
- Returns:
the offset in the packet where the calculation of the extra checksum is started from
- Return type:
- set(offset)[source]ο
Set the offset in the packet where the calculation of the extra checksum is started from. Set to OFF or 0 to disable. Valid enable range is [8 .. 127, ON]. Please observe that ON equals the value 14. Please also observe that P_CHECKSUM ? will return OFF if set to 0 (or OFF) and that P_CHECKSUM ? will return ON if set to 14 (or ON).
- Parameters:
offset (int) β the offset in the packet where the calculation of the extra checksum is started from
- set_off()ο
Set portβs payload checksum off (offset = 0).
- set_on()ο
Set portβs payload checksum on (offset = 14).
- class P_COMMENT[source]ο
Bases:
objectThe description of a port.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- commentο
string, containing the description of the port.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- commentο
string, containing the description of the port.
- class P_DYNAMIC[source]ο
Bases:
objectControls if a >10G port supports dynamic changes when the traffic is running. This command is only supported by ports >10G.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- on_offο
coded byte, whether dynamic traffic change is enabled.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- on_offο
coded byte, whether dynamic traffic change is enabled.
- get()[source]ο
Get whether the port should support dynamic changes when the traffic is running.
- Returns:
whether the port should support dynamic changes when the traffic is running.
- Return type:
- set(on_off)[source]ο
Set whether the port should support dynamic changes when the traffic is running.
- Parameters:
on_off (OnOff) β whether the port should support dynamic changes when the traffic is running
- set_off()ο
Disable dynamic traffic change on the port.
- set_on()ο
Enable dynamic traffic change on the port.
- class P_EDUN_RX_STATUS[source]ο
Bases:
objectEdun Rx status values for the specified SerDes index on the port.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- dcoο
DC Offset compensation value
- dfe1ο
ISI correction tap 1
- dfe2ο
ISI correction tap 2
- eye_slicer_lowerο
Lower eye slicer value. Unit is in mV.
- eye_slicer_middleο
Middle eye slicer value. Unit is in mV.
- eye_slicer_upperο
Upper eye slicer value. Unit is in mV.
- ffe_mainο
Main cursor of the RX equalizer
- ffe_post1ο
Post-cursor 1 of the RX equalizer
- ffe_post2ο
Post-cursor 2 of the RX equalizer
- ffe_pre1ο
Pre-cursor 1 of the RX equalizer
- ffe_pre2ο
Pre-cursor 2 of the RX equalizer
- ffe_pre3ο
Pre-cursor 3 of the RX equalizer
- flt_mο
Max. floating tap value
- flt_sο
Sum of floating taps
- pmd_lockο
1=Lock, 0=No Lock
- signal_detectedο
1=Detected, 0=not detected
- snrο
Signal to Noise ratio, 1/100 dB
- tp0ο
RX Channel Loss hint given by user (dB)
- tp1ο
RX Channel Loss (initial) estimate
- tp2ο
AFE static bandwitdh setting (200G == 0 else 100G if < 3 else 50GPAM4/NRZ if <5 else LinkCAT)
- tuning_doneο
1=Done, 0=Not Done
- vgaο
Variable Gain Amplifier setting (0 to 64)
- class P_ERRORS[source]ο
Bases:
objectObtains the total number of errors detected across all streams on the port, including lost packets, misorder events, and payload errors.
Note
FCS errors are included, which will typically lead to double-counting of lost packets.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- error_countο
list of long integers, the total number of errors across all streams, and including FCS errors.
- class P_FAULTSIGNALING[source]ο
Bases:
objectSets the remote/local fault signaling behavior of the port (performed by the Reconciliation Sub-layer). By default, the port acts according to the standard, i.e. when receiving a bad signal, it transmits βRemote Fault indicationsβon the output and when receiving a βRemote Fault indicationβfrom the far-side it will transmit IDLE sequences.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- fault_signalingο
coded byte, specifying remote/local fault signaling behavior of the port.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- fault_signalingο
coded byte, specifying remote/local fault signaling behavior of the port.
- get()[source]ο
Get the remote/local fault signaling behavior of the port (performed by the Reconciliation Sub-layer).
- Returns:
remote/local fault signaling behavior of the port
- Return type:
- set(fault_signaling)[source]ο
Set the remote/local fault signaling behavior of the port (performed by the Reconciliation Sub-layer).
- Parameters:
fault_signaling (FaultSignaling) β remote/local fault signaling behavior of the port
- set_disabled()ο
Disable the remote/local fault signaling behavior of the port.
- set_force_local()ο
Set the remote/local fault signaling behavior of the port to Forced Local.
- set_force_remote()ο
Set the remote/local fault signaling behavior of the port to Forced Remote.
- set_normal()ο
Set the remote/local fault signaling behavior of the port to Normal.
- class P_FAULTSTATUS[source]ο
Bases:
objectShows if a local or remote fault is currently being detected by the Reconciliation Sub-layer of the port.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- local_fault_statusο
coded byte, specifying the local fault.
- remote_fault_statusο
coded byte, specifying the remote fault.
- class P_FLASH[source]ο
Bases:
objectMake the test port LED for a particular port flash on and off with a 1-second interval. This is helpful when you need to identify a specific port within a chassis.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- on_offο
coded byte, whether the test port LED is blinking.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- on_offο
coded byte, whether the test port LED is blinking.
- get()[source]ο
Get the status of the LED flashing status of the port.
- Returns:
the status of the LED flashing status of the port.
- Return type:
- set(on_off)[source]ο
Set the status of the LED flashing status of the port.
- Parameters:
on_off (OnOff) β the status of the LED flashing status of the port.
- set_off()ο
Disable port LED from flashing.
- set_on()ο
Enable port LED to flash.
- class P_GAPMONITOR[source]ο
Bases:
objectThe gap-start and gap-stop criteria for the portβs gap monitor. The gap monitor expects a steady stream of incoming packets, and detects larger-than-allowed gaps between them. Once a gap event is encountered it requires a certain number of consecutive packets below the threshold to end the event.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- startο
integer, the maximum allowed gap between packets, in microseconds. (0 to 134.000 microseconds) 0 = disable gap monitor.
- stopο
integer, the minimum number of good packets required. (0 to 1024 packets) 0 = disable gap monitor.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- startο
integer, the maximum allowed gap between packets, in microseconds. (0 to 134.000 microseconds) 0 = disable gap monitor.
- stopο
integer, the minimum number of good packets required. (0 to 1024 packets) 0 = disable gap monitor.
- get()[source]ο
Get the gap-start and gap-stop criteria for the portβs gap monitor.
- Returns:
the gap-start and gap-stop criteria for the portβs gap monitor
- Return type:
- set(start, stop)[source]ο
Set the gap-start and gap-stop criteria for the portβs gap monitor. :param start: the maximum allowed gap between packets, in microseconds. (0 to 134.000 microseconds) 0 = disable gap monitor :type start: int :param stop: the minimum number of good packets required. (0 to 1024 packets) 0 = disable gap monitor :type stop: int
- class P_IGMPV3_GROUP_RECORD_BUNDLE[source]ο
Bases:
objectConfigure if a single membership report bundles multiple multicast group records to decrease the number of packets sent when using IGMPv3. This command returns <NOTVALID> when the IGMP version is not IGMPv3.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- modeο
byte, if a single membership report bundles multiple multicast group records to decrease the number of packets sent when using IGMPv3.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- modeο
byte, if a single membership report bundles multiple multicast group records to decrease the number of packets sent when using IGMPv3.
- class P_INTERFACE[source]ο
Bases:
objectObtains the name of the physical interface type of a port.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- interfaceο
string, describing the interface type.
- class P_INTERFRAMEGAP[source]ο
Bases:
objectThe minimum gap between packets in the traffic generated for a port. The gap includes the Ethernet preamble.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- min_byte_countο
integer, specifying the minimum number of byte-times between generated packets.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- min_byte_countο
integer, specifying the minimum number of byte-times between generated packets.
- class P_IPADDRESS[source]ο
Bases:
objectAn IPv4 network configuration specified for a port. The address is used as the default source address field in the IP header of generated traffic, and the configuration is also used for support of the ARP and PING protocols.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- gatewayο
address, the gateway of the local network segment for the port.
- ipv4_addressο
address, the IP address of the port.
- subnet_maskο
address, the subnet mask of the local network segment for the port.
- wildο
address, wildcards used for ARP and PING replies, and each byte must be 255 (0xFF) or 0 (0x00).
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- gatewayο
address, the gateway of the local network segment for the port.
- ipv4_addressο
address, the IP address of the port.
- subnet_maskο
address, the subnet mask of the local network segment for the port.
- wildο
address, wildcards used for ARP and PING replies, must be 255 or 0.
- get()[source]ο
Get the IPv4 address, subnet mask, gateway address and wildcard used for ARP and PING replies of the port.
- Returns:
the IPv4 address, subnet mask, gateway address and wildcard used for ARP and PING replies of the port
- Return type:
- set(ipv4_address, subnet_mask, gateway, wild)[source]ο
Set the IPv4 address, subnet mask, gateway address and wildcard used for ARP and PING replies of the port.
- Parameters:
ipv4_address (Union[str, int, ipaddress.IPv4Address]) β the IPv4 address of the port
subnet_mask (Union[str, int, ipaddress.IPv4Address]) β the subnet mask of the local network segment for the port
gateway (Union[str, int, ipaddress.IPv4Address]) β the gateway of the local network segment for the port
wild (Union[str, int, ipaddress.IPv4Address]) β wildcards used for ARP and PING replies, and each byte must be 255 (0xFF) or 0 (0x00)
- class P_IPV6ADDRESS[source]ο
Bases:
objectAn IPv6 network configuration specified for a port. The address is used as the default source address field in the IP header of generated traffic, and the configuration is also used for support of the NDP and PINGv6 protocols.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- gatewayο
address, the gateway of the local network segment for the port.
- ipv6_addressο
address, the IPv6 address of the port.
- subnet_prefixο
byte, the subnet prefix of the local network segment for the port.
- wildcard_prefixο
byte, a prefix that makes the port replies to NDP/PING for the masked addresses, valid value 0-255
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- gatewayο
address, the gateway of the local network segment for the port.
- ipv6_addressο
address, the IPv6 address of the port.
- subnet_prefixο
byte, the subnet prefix of the local network segment for the port.
- wildcard_prefixο
byte, a prefix that makes the port replies to NDP/PING for the masked addresses, valid value 0-255
- get()[source]ο
Get the portβs IPv6 address settings.
- Returns:
the portβs IPv6 address settings
- Return type:
- set(ipv6_address, gateway, subnet_prefix, wildcard_prefix)[source]ο
Set the portβs IPv6 settings.
- Parameters:
ipv6_address (Union[str, int, ipaddress.IPv6Address]) β the IPv6 address of the port
gateway (Union[str, int, ipaddress.IPv6Address]) β the gateway of the local network segment for the port
subnet_prefix (int) β the subnet prefix of the local network segment for the port
wildcard_prefix (int) β a prefix that makes the port replies to NDP/PING for the masked addresses, valid value 0-255
- class P_LATENCYMODE[source]ο
Bases:
objectLatency is measured by inserting a time-stamp in each packet when it is transmitted, and relating it to the time when the packet is received. There are four separate modes for calculating the latency:
Last-bit-out to last-bit-in, which measures basic bit-transit time, independent of packet length.
First-bit-out to last-bit-in, which adds the time taken to transmit the packet itself.
Last-bit-out to first-bit-in, which subtracts the time taken to transmit the packet itself. The same latency mode must be configured for the transmitting port and the receiving port; otherwise invalid measurements will occur.
First-bit-out to first-bit-in, which adds the time taken to transmit the packet itself, and subtracts the time taken to transmit the packet itself. The same latency mode must be configured for the transmitting port and the receiving port; otherwise invalid measurements will occur.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- modeο
coded byte, which calculation mode to use.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- modeο
coded byte, which calculation mode to use.
- get()[source]ο
Get the latency measurement mode of the port.
- Returns:
the latency measurement mode of the port
- Return type:
- set(mode)[source]ο
Set the latency measurement mode of the port.
- Parameters:
mode (LatencyMode) β the latency measurement mode of the port
- set_first2first()ο
Set the port latency mode to FIRST2FIRST (First-bit-out to first-bit-in, which adds the time taken to transmit the packet itself, and subtracts the time taken to transmit the packet itself. The same latency mode must be configured for the transmitting port and the receiving port; otherwise invalid measurements will occur).
- set_first2last()ο
Set the port latency mode to FIRST2LAST (First-bit-out to last-bit-in, which adds the time taken to transmit the packet itself).
- set_last2first()ο
Set the port latency mode to LAST2FIRST (Last-bit-out to first-bit-in, which subtracts the time taken to transmit the packet itself. The same latency mode must be configured for the transmitting port and the receiving port; otherwise invalid measurements will occur).
- set_last2last()ο
Set the port latency mode to LAST2LAST (Last-bit-out to last-bit-in, which measures basic bit-transit time, independent of packet length).
- class P_LATENCYOFFSET[source]ο
Bases:
objectAn offset applied to the latency measurements performed for received traffic containing test payloads. This value affects the minimum, average, and maximum latency values obtained through the PR_TPLDLATENCY command.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- offsetο
integer, specifying the offset for the latency measurements.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- offsetο
integer, specifying the offset for the latency measurements.
- class P_LOOPBACK[source]ο
Bases:
objectThe loopback mode for a port. Ports can be configured to perform two different kinds of loopback: 1) External RX-to-TX loopback, where the received packets are re-transmitted immediately. The packets are still processed by the receive logic, and can be captured and analyzed. 2) Internal TX-to-RX loopback, where the transmitted packets are received directly by the port itself. This is mainly useful for testing the generated traffic patterns before actual use.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- modeο
coded byte, specifying the loopback mode of the port.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- modeο
coded byte, specifying the loopback mode of the port.
- get()[source]ο
Get the loop back mode of the port.
- Returns:
the loop back mode of the port.
- Return type:
- set(mode)[source]ο
Set the loop back mode of the port.
- Parameters:
mode (LoopbackMode) β the loop back mode of the port
- set_l1rx2tx()ο
Set the port loop back mode to L1RX2TX, transmit byte-by-byte copy of the incoming packet.
- set_l2rx2tx()ο
Set the port loop back mode to L2RX2TX, swap source and destination MAC addresses.
- set_l3rx2tx()ο
Set the port loop back mode to L3RX2TX, swap source and destination MAC addresses and swap source and destination IP addresses.
- set_none()ο
Set the port loop back mode to non-looped.
- set_port2port()ο
Set the port loop back mode to PORT2PORT, packets received on one port is sent out again on the neighbor port for inline monitoring.
- set_txoff2rx()ο
Set the port loop back mode to TXOFF2RX, port transmitter is off.
- set_txon2rx()ο
Set the port loop back mode to TXON2RX, packet is also transmitted from the port.
- class P_LPENABLE[source]ο
Bases:
objectEnables/disables Energy Efficient Ethernet (EEE) on the port.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- on_offο
coded byte, whether the EEE feature is activated or not.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- on_offο
coded byte, whether the EEE feature is activated or not.
- get()[source]ο
Get whether Energy Efficient Ethernet (EEE) is enabled on the port.
- Returns:
whether Energy Efficient Ethernet (EEE) is enabled on the port
- Return type:
- set(on_off)[source]ο
Set whether Energy Efficient Ethernet (EEE) is enabled on the port.
- Parameters:
on_off (OnOff) β whether Energy Efficient Ethernet (EEE) is enabled on the port
- set_off()ο
Disable Energy Efficient Ethernet (EEE) on the port.
- set_on()ο
Enable Energy Efficient Ethernet (EEE) on the port.
- class P_LPPARTNERAUTONEG[source]ο
Bases:
objectDisplays the EEE capabilities advertised during auto-negotiation by the far side (link partner).
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- can_1000base_tο
coded byte. specifying whether the link partner is capable of 1000BASE-T.
- can_100base_txο
coded byte, specifying whether the link partner is capable of 100BASE-TX.
- can_10gbase_krο
coded byte. specifying whether the link partner is capable of 10GBASE-KR.
- can_10gbase_tο
coded byte. specifying whether the link partner is capable of 10GBASE-T.
- can_2p5gbase_tο
coded byte. specifying whether the link partner is capable of 2.5GBASE-T.
- can_5gbase_tο
coded byte. specifying whether the link partner is capable of 5GBASE-T.
- get()[source]ο
- Get the the Energy Efficient Ethernet (EEE) capabilities advertised during auto-negotiation by the far side (link partner).
whether the link partner is capable of 100BASE-TX
whether the link partner is capable of 1000BASE-T
whether the link partner is capable of 10GBASE-T
whether the link partner is capable of 2.5GBASE-T
whether the link partner is capable of 5GBASE-T
whether the link partner is capable of 10GBASE-KR
- Returns:
the the Energy Efficient Ethernet (EEE) capabilities advertised during auto-negotiation by the far side (link partner)
- Return type:
- class P_LPRXPOWER[source]ο
Bases:
objectObtain the RX power recorded during training for the four channels.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- channel_aο
integer, the RX power on link channel A.
- channel_bο
integer, the RX power on link channel B.
- channel_cο
integer, the RX power on link channel C.
- channel_dο
integer, the RX power on link channel D.
- get()[source]ο
Get the the RX power recorded during training for the four channels.
- Returns:
the the RX power recorded during training for the four channels * the RX power on link channel A * the RX power on link channel B * the RX power on link channel C * the RX power on link channel D
- Return type:
- class P_LPSNRMARGIN[source]ο
Bases:
objectDisplays the SNR margin on the four link channels (Channel A-D) as reported by the PHY. It is displayed in units of 0.1dB.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- channel_aο
integer, the SNR margin on link channel A.
- channel_bο
integer, the SNR margin on link channel B.
- channel_cο
integer, the SNR margin on link channel C.
- channel_dο
integer, the SNR margin on link channel D.
- get()[source]ο
- Get the SNR margin on the four link channels (Channel A-D) as reported by the PHY. It is displayed in units of 0.1dB.
the SNR margin on link channel A
the SNR margin on link channel B
the SNR margin on link channel C
the SNR margin on link channel D
- Returns:
the SNR margin on the four link channels (Channel A-D) as reported by the PHY. It is displayed in units of 0.1dB
- Return type:
- class P_LPSTATUS[source]ο
Bases:
objectDisplays the Energy Efficient Ethernet (EEE) status as reported by the PHY.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- link_upο
shows if the link is up (seen from perspective of the the PHYβs PCS).
- rxcο
shows the current EEE state of the receiver (in low power or active).
- rxhο
shows if there has been any recent change in the EEE state on the receiver side (either going into low power mode or leaving low power mode.
- txcο
shows the current EEE state of the transmitter (in low power or active)
- txhο
coded bytes, shows if there has been any recent change in the EEE state on the transmission side (either going into low power mode or leaving low power mode.
- get()[source]ο
- Get the the Energy Efficient Ethernet (EEE) status as reported by the PHY.
if there has been any recent change in the EEE state on the transmission side
if there has been any recent change in the EEE state on the receiver side
the current EEE state of the transmitter
the current EEE state of the receiver
if the link is up
- Returns:
the the Energy Efficient Ethernet (EEE) status
- Return type:
- class P_LPSUPPORT[source]ο
Bases:
objectRead EEE capabilities of the port (variable size, one for each supported speed, returns 0s if no EEE).
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- eee_capabilitiesο
list of integers,EEE capabilities of the port.
- class P_LPTXMODE[source]ο
Bases:
objectEnables/disables the transmission of Low Power Idles (LPIs) on the port. When enabled, the transmit side of the port will automatically enter low-power mode (and leave) low-power mode in periods of low or no traffic. LPIs will only be transmitted if the Link Partner (receiving port) has advertised EEE capability for the selected port speed during EEE auto-negotiation.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- on_offο
coded byte, whether low power idles will be transmitted or not. OFF (0) ON (1)
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- on_offο
coded byte, whether low power idles will be transmitted or not. OFF (0) ON (1)
- get()[source]ο
Get whether the transmission of Low Power Idles (LPIs) is enabled on the port.
- Returns:
whether the transmission of Low Power Idles (LPIs) is enabled on the port
- Return type:
- set(on_off)[source]ο
Set whether the transmission of Low Power Idles (LPIs) is enabled on the port.
- Parameters:
on_off (OnOff) β whether the transmission of Low Power Idles (LPIs) is enabled on the port
- set_off()ο
Disable the transmission of Low Power Idles (LPIs) on the port.
- set_on()ο
Enable the transmission of Low Power Idles (LPIs) on the port.
- class P_MACADDRESS[source]ο
Bases:
objectA 48-bit Ethernet MAC address specified for a port. This address is used as the default source MAC field in the header of generated traffic for the port, and is also used for support of the ARP protocol.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- mac_addressο
six hex bytes, specifying the six bytes of the MAC address.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- mac_addressο
six hex bytes, specifying the six bytes of the MAC address.
- class P_MACSEC_RXSC_AN[source]ο
Bases:
objectRX SCβs next AN
- class P_MACSEC_RXSC_CIPHERSUITE[source]ο
Bases:
objectThe cipher suite of the portβs RX SC.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- cipher_suiteο
coded byte, the cipher suite of the portβs RX SC.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- cipher_suiteο
coded byte, the cipher suite of the portβs RX SC.
- get()[source]ο
Get the cipher suite of the portβs RX SC.
- Returns:
the cipher suite of the portβs RX SC.
- Return type:
- set(cipher_suite)[source]ο
Set the cipher suite of the portβs RX SC.
- Parameters:
cipher_suite (MACSecCipherSuite) β the cipher suite of the portβs RX SC.
- set_gcm_aes_128()ο
Set cipher suite to GCM_AES_128.
- set_gcm_aes_256()ο
Set cipher suite to GCM_AES_256.
- set_gcm_aes_xpn_128()ο
Set cipher suite to GCM_AES_XPN_128.
- set_gcm_aes_xpn_256()ο
Set cipher suite to GCM_AES_XPN_256.
- class P_MACSEC_RXSC_CONF_OFFSET[source]ο
Bases:
objectThe confidentiality offset of the portβs RX SC.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- offsetο
integer, the RX Secure Channel (SC) offset. Allowed values are 0, 30, and 50.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- offsetο
integer, the RX Secure Channel (SC) offset. Allowed values are 0, 30, and 50
- class P_MACSEC_RXSC_DESCR[source]ο
Bases:
objectThe description of the portβs RX SC.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- descriptionο
string, the description of the RX Secure Channel (SC).
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- descriptionο
string, the description of the RX Secure Channel (SC).
- class P_MACSEC_RXSC_INDICES[source]ο
Bases:
objectCreate multiple RX SCs or query the existing RX SCs on the port.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- rxsc_indicesο
list of integers, the sub-indices of RX SCs on the port.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- rxsc_indicesο
list of integers, the sub-indices of RX SCs on the port.
- class P_MACSEC_RXSC_LOWEST_PN[source]ο
Bases:
objectThe lowest PN number of the portβs RX SC expects to receive.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- lowest_pnο
hex, The lowest PN number of the portβs RX SC expects to receive. Default to 1, maximum 2^64. Allowed to be 0.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- lowest_pnο
hex, The lowest PN number of the portβs RX SC expects to receive. Default to 1, maximum 2^64. Allowed to be 0.
- class P_MACSEC_RXSC_NEXT_PN[source]ο
Bases:
objectThe next PN number of the portβs RX SC expects to receive.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- next_pnο
hex, The next PN number of the portβs RX SC expects to receive. Default to 1, maximum 2^64. Allowed to be 0.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- next_pnο
hex, The next PN number of the portβs RX SC expects to receive. Default to 1, maximum 2^64. Allowed to be 0.
- class P_MACSEC_RXSC_PN[source]ο
Bases:
objectRX SCβs next PN
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- pnο
hex, 8-byte long, the latest recovered PN for the Rx SC
- class P_MACSEC_RXSC_SAK_VALUE[source]ο
Bases:
objectConfigure the value of a SAK key on the portβs RX SC.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- sak_key_valueο
integer, the SAK key. Default to all-zero. Allowed to be empty.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- sak_key_valueο
integer, the SAK key. Default to all-zero. Allowed to be empty.
- class P_MACSEC_RXSC_SCI[source]ο
Bases:
objectThe SCI of the portβs RX SC.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- sciο
hex 8 bytes, the SCI of the portβs RX SC.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- sciο
hex 8 bytes, the SCI of the portβs RX SC.
- class P_MACSEC_RXSC_STATS[source]ο
Bases:
objectSC/stream-level MACsec RX counters
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- bits_secο
long integer, number of MACsec L2 bits received of the previous second.
- bytes_secο
long integer, number of MACsec L2 bytes received of the previous second.
- frames_secο
long integer, number of MACsec frames received of the previous second.
- total_bitsο
long integer, number of MACsec L2 bits received since last cleared.
- total_bytesο
long integer, number of MACsec L2 bytes received since last cleared.
- total_delayed_framesο
long integer, the number of frames with the PN lower than the minmum expected since cleared.
- total_framesο
long integer, number of MACsec frames received since last cleared.
- total_icv_check_failed_framesο
long integer, the number of frames with ICV check failed recevied since cleared.
- total_ok_framesο
long integer, the number of good MACsec frames received since cleared.
- class P_MACSEC_RXSC_TPLDID[source]ο
Bases:
objectAssociate a TPLD ID with the RX SC.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- tpld_idο
integer, the TPLD ID to associate with the RX SC.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- tpld_idο
integer, the TPLD ID to associate with the RX SC.
- class P_MACSEC_RXSC_XPN_SALT[source]ο
Bases:
objectThe XPN salt of the portβs RX SC when XPN cipher suite is in use.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- xpn_saltο
hex 12 bytes, XPN salt of the portβs RX SC when XPN cipher suite is in use.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- xpn_saltο
hex 12 bytes, XPN salt of the portβs RX SC when XPN cipher suite is in use.
- class P_MACSEC_RXSC_XPN_SSCI[source]ο
Bases:
objectThe XPN Short SCI of the portβs RX SC when XPN cipher suite is in use.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- xpn_ssciο
hex 4 bytes, The XPN Short SCI of the portβs RX SC when XPN cipher suite is in use
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- xpn_ssciο
hex 4 bytes, The XPN Short SCI of the portβs RX SC when XPN cipher suite is in use
- class P_MACSEC_RX_ENABLE[source]ο
Bases:
objectThis will enable/disable the MACSec functionality on the RX side. With it ON, the RX port will try to decode the received packets. If it is OFF, the port will not try to decode any received packets.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- on_offο
coded byte, enable or disable MACsec on the RX port.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- on_offο
coded byte, enable or disable MACsec on the RX port.
- set(on_off)[source]ο
Set the RX port MACSec stat.
- Parameters:
on_off (OnOff) β the RX port MACSec stat
- set_off()ο
Disable the RX port MACSec.
- set_on()ο
Enable the RX port MACSec.
- class P_MACSEC_RX_STATS[source]ο
Bases:
objectPort-level MACsec RX counters
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- bits_secο
long integer, number of MACsec L2 bits received of the previous second.
- bytes_secο
long integer, number of MACsec L2 bytes received of the previous second.
- frames_secο
long integer, number of MACsec frames received of the previous second.
- total_bitsο
long integer, number of MACsec L2 bits received since last cleared.
- total_bytesο
long integer, number of MACsec L2 bytes received since last cleared.
- total_delayed_framesο
long integer, the number of frames with the PN lower than the minmum expected since cleared.
- total_framesο
long integer, number of MACsec frames received since last cleared.
- total_icv_check_failed_framesο
long integer, the number of frames with ICV check failed recevied since cleared.
- total_ok_framesο
long integer, the number of good MACsec frames received since cleared.
- class P_MACSEC_TXSC_CIPHERSUITE[source]ο
Bases:
objectThe cipher suite of the portβs TX SC.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- cipher_suiteο
coded byte, the cipher suite of the portβs TX SC.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- cipher_suiteο
coded byte, the cipher suite of the portβs TX SC.
- get()[source]ο
Get the cipher suite of the portβs TX SC.
- Returns:
the cipher suite of the portβs TX SC.
- Return type:
- set(cipher_suite)[source]ο
Set the cipher suite of the portβs TX SC.
- Parameters:
cipher_suite (MACSecCipherSuite) β the cipher suite of the portβs TX SC.
- set_gcm_aes_128()ο
Set cipher suite to GCM_AES_128.
- set_gcm_aes_256()ο
Set cipher suite to GCM_AES_256.
- set_gcm_aes_xpn_128()ο
Set cipher suite to GCM_AES_XPN_128.
- set_gcm_aes_xpn_256()ο
Set cipher suite to GCM_AES_XPN_256.
- class P_MACSEC_TXSC_CONF_OFFSET[source]ο
Bases:
objectThe confidentiality offset of the portβs TX SC.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- offsetο
integer, the TX Secure Channel (SC) offset. Allowed values are 0, 30, and 50
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- offsetο
integer, the TX Secure Channel (SC) offset. Allowed values are 0, 30, and 50
- class P_MACSEC_TXSC_DESCR[source]ο
Bases:
objectThe description of the portβs TX SC.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- descriptionο
string, the description of the TX Secure Channel (SC).
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- descriptionο
string, the description of the TX Secure Channel (SC).
- class P_MACSEC_TXSC_ENCRYPT[source]ο
Bases:
objectThe encryption mode of the portβs TX SC.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- modeο
byte, the encryption mode of the portβs TX SC
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- modeο
byte, the encryption mode of the portβs TX SC
- get()[source]ο
Get the encryption mode of the portβs TX SC
- Returns:
the encryption mode of the portβs TX SC
- Return type:
- set(mode)[source]ο
Set the encryption mode.
- Parameters:
mode (MACSecEncryptionMode) β the encryption mode.
- set_encrypt_integrity()ο
Set encryption mode to encryption and integrity.
- set_integrity_only()ο
Set encryption mode to integrity only.
- class P_MACSEC_TXSC_INDICES[source]ο
Bases:
objectCreate multiple TX SCs or query the existing TX SCs on the port.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- txsc_indicesο
list of integers, the sub-indices of TX SCs on the port.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- txsc_indicesο
list of integers, the sub-indices of TX SCs on the port.
- class P_MACSEC_TXSC_NEXT_AN[source]ο
Bases:
objectThe next AN number of the portβs TX SC expects to receive.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- next_anο
integer, The next AN number of the portβs TX SC expects to receive. Allowed to be 0.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- next_anο
integer, The next AN number of the portβs TX SC expects to receive. Allowed to be 0.
- class P_MACSEC_TXSC_NEXT_PN[source]ο
Bases:
objectThe next PN number of the portβs TX SC expects to receive.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- next_pnο
hex, The next PN number of the portβs TX SC expects to receive. Default to 1, maximum 2^64. Allowed to be 0.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- next_pnο
hex, The next PN number of the portβs TX SC expects to receive. Default to 1, maximum 2^64. Allowed to be 0.
- class P_MACSEC_TXSC_REKEY_MODE[source]ο
Bases:
objectThe rekey mode of the portβs TX SC defines when to switch to the next SAK.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- modeο
byte, the rekey mode of the portβs TX SC
- valueο
integer, defines the packet number that triggers the rekey. This value will be ignored if the mode is set to PN_EXHAUSTION
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- modeο
byte, the rekey mode of the portβs TX SC
- valueο
integer, defines the packet number that triggers the rekey. This value will be ignored if the mode is set to PN_EXHAUSTION
- get()[source]ο
Get the rekey mode of the portβs TX SC
- Returns:
the rekey mode of the portβs TX SC
- Return type:
- set(mode, value)[source]ο
Set the rekey mode.
- Parameters:
mode (MACSecRekeyMode) β the rekey mode.
- class P_MACSEC_TXSC_SAK_VALUE[source]ο
Bases:
objectConfigure the value of a SAK key on the portβs TX SC.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- sak_key_valueο
integer, the SAK key. Default to all-zero. Allowed to be empty.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- sak_key_valueο
integer, the SAK key. Default to all-zero. Allowed to be empty.
- class P_MACSEC_TXSC_SCI[source]ο
Bases:
objectThe SCI of the portβs TX SC.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- sciο
hex 8 bytes, the SCI of the portβs TX SC.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- sciο
hex 8 bytes, the SCI of the portβs TX SC.
- class P_MACSEC_TXSC_SCI_MODE[source]ο
Bases:
objectThe mode of the portβs TX SCI in MACsec.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- modeο
coded byte, the mode of the portβs TX SCI in MACsec.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- modeο
coded byte, the mode of the portβs TX SCI in MACsec.
- get()[source]ο
Get the mode of the portβs TX SCI in MACsec.
- Returns:
the mode of the portβs TX SCI in MACsec.
- Return type:
- set(mode)[source]ο
Set the mode of the portβs TX SCI in MACsec.
- Parameters:
mode (MACSecSCIMode) β the mode of the portβs TX SCI in MACsec.
- set_end_station()ο
Set SCI Mode to END STATION.
- set_with_sci()ο
Set SCI Mode to WITH SCI.
- class P_MACSEC_TXSC_STARTING_PN[source]ο
Bases:
objectThe starting PN number of the portβs TX SC uses.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- modeο
byte, defining how to continue the TX PN after the start-traffic. Default to CONTINUOUS.
- starting_pnο
integer, the starting PN number. Default to 1, maximum 2^64. Allowed to be 0.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- modeο
byte, defining how to continue the TX PN after the start-traffic. Default to CONTINUOUS.
- starting_pnο
integer, the starting PN number. Default to 1, maximum 2^64. Allowed to be 0.
- get()[source]ο
Get the starting PN number. Default to 1, maximum 2^64. Allowed to be 0.
- Returns:
the starting PN number. Default to 1, maximum 2^64.
- Return type:
- set(starting_pn, mode)[source]ο
Set the starting PN number. Default to 1, maximum 2^64. Allowed to be 0.
- Parameters:
starting_pn (int) β the starting PN number. Default to 1, maximum 2^64.
mode (MACSecPNMode) β defining how to continue the TX PN after the start-traffic.
- class P_MACSEC_TXSC_STATS[source]ο
Bases:
objectSC/stream-level MACsec TX counters.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- bits_secο
long integer, the number of MACsec L2 bits transmitted of the previous second.
- bytes_secο
long integer, the number of MACsec L2 bytes transmitted of the previous second.
- frames_secο
long integer, the number of MACsec frames transmitted of the previous second.
- total_bitsο
long integer, the number of MACsec L2 bits transmitted since last cleared.
- total_bytesο
long integer, the number of MACsec L2 bytes transmitted since last cleared.
- total_encrypted_bitsο
long integer, the number of encrypted bits transmitted since cleared, excluding the bytes in the Confidentiality Offset.
- total_encrypted_bytesο
long integer, the number of encrypted bytes transmitted since cleared, excluding the bytes in the Confidentiality Offset.
- total_framesο
long integer, the number of MACsec frames transmitted since last cleared.
- total_protected_only_bitsο
long integer, the number of protected-only (non-encrypted) bits transmitted since cleared.
- total_protected_only_bytesο
long integer, the number of protected-only (non-encrypted) bytes transmitted since cleared.
- class P_MACSEC_TXSC_XPN_SALT[source]ο
Bases:
objectThe XPN salt of the portβs TX SC when XPN cipher suite is in use.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- xpn_saltο
hex 12 bytes, XPN salt of the portβs TX SC when XPN cipher suite is in use.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- xpn_saltο
hex 12 bytes, XPN salt of the portβs TX SC when XPN cipher suite is in use.
- class P_MACSEC_TXSC_XPN_SSCI[source]ο
Bases:
objectThe XPN Short SCI of the portβs TX SC when XPN cipher suite is in use.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- xpn_ssciο
hex 4 bytes, The XPN Short SCI of the portβs TX SC when XPN cipher suite is in use
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- xpn_ssciο
hex 4 bytes, The XPN Short SCI of the portβs TX SC when XPN cipher suite is in use
- class P_MACSEC_TX_STATS[source]ο
Bases:
objectPort-level MACsec TX counters
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- bits_secο
long integer, the number of MACsec L2 bits transmitted of the previous second.
- bytes_secο
long integer, the number of MACsec L2 bytes transmitted of the previous second.
- frames_secο
long integer, the number of MACsec frames transmitted of the previous second.
- total_bitsο
long integer, the number of MACsec L2 bits transmitted since last cleared.
- total_bytesο
long integer, the number of MACsec L2 bytes transmitted since last cleared.
- total_encrypted_bitsο
long integer, the number of encrypted bits transmitted by the port since cleared, excluding the bytes in the Confidentiality Offset.
- total_encrypted_bytesο
long integer, the number of encrypted bytes transmitted by the port since cleared, excluding the bytes in the Confidentiality Offset.
- total_framesο
long integer, the number of MACsec frames transmitted since last cleared.
- total_protected_only_bitsο
long integer, the number of protected-only (non-encrypted) bits transmitted by the port since cleared.
- total_protected_only_bytesο
long integer, the number of protected-only (non-encrypted) bytes transmitted by the port since cleared.
- class P_MAXHEADERLENGTH[source]ο
Bases:
objectThe maximum number of header content bytes that can be freely specified for each generated stream. The remaining payload bytes of the packet are auto-generated.The default is 128 bytes. When a larger number is select there is a corresponding proportional reduction in the number of stream definitions that are available for the port. Possible values: 128 (default), 256, 512, 1024, 2048.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- max_header_lengthο
integer, specifying the maximum number of header bytes.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- max_header_lengthο
integer, specifying the maximum number of header bytes.
- get()[source]ο
Get the maximum number of header content bytes that can be freely specified for each generated stream on the port.
- Returns:
the maximum number of header content bytes that can be freely specified for each generated stream on the port
- Return type:
- set(max_header_length)[source]ο
Set the maximum number of header content bytes that can be freely specified for each generated stream on the port. Possible values: 128 (default), 256, 512, 1024, 2048.
- Parameters:
max_header_length (int) β the maximum number of header content bytes that can be freely specified for each generated stream on the port
- class P_MCSRCLIST[source]ο
Bases:
objectMulticast source list of the port. Only valid if the IGMP protocol version is IGMPv3 set by P_MULTICASTEXT.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- ipv4_addressesο
list of addresses, multicast source list addresses (max 8) in Group Record field of the IGMPv3 membership report packet.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- ipv4_addressesο
list of addresses, multicast source list addresses (max 8) in Group Record field of the IGMPv3 membership report packet.
- get()[source]ο
Get the multicast source list of the port. Only valid if the IGMP protocol version is IGMPv3 set by P_MULTICASTEXT.
- Returns:
the multicast source list of the port
- Return type:
- set(ipv4_addresses)[source]ο
Set the multicast source list of the port.
- Parameters:
ipv4_addresses (List[ipaddress.IPv4Address]) β the multicast source list of the port
- class P_MDIXMODE[source]ο
Bases:
objectSelects the MDI/MDIX behavior of copper interfaces (Currently supported on M6SFP and M2SFPT).
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- modeο
coded byte, containing the MDI/MDIX mode for the port.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- modeο
coded byte, containing the MDI/MDIX mode for the port.
- get()[source]ο
Get the MDI/MDIX mode of the port.
- Returns:
the MDI/MDIX mode of the port.
- Return type:
- set(mode)[source]ο
Set the MDI/MDIX mode of the port.
- Parameters:
mode (MDIXMode) β the MDI/MDIX mode of the port.
- set_auto()ο
Set the MDI/MDIX mode of the port to Auto.
- set_mdi()ο
Set the MDI/MDIX mode of the port to MDI.
- set_mdix()ο
Set the MDI/MDIX mode of the port to MDIX.
- class P_MIXLENGTH[source]ο
Bases:
objectAllows inspecting the frame sizes defined for each position of the P_MIXWEIGHTS command. By default, the 16 frame sizes are: 56 (not valid for 40G/100G), 60, 64, 70, 78, 92, 256, 496, 512, 570, 576, 594, 1438, 1518, 9216, and 16360. In addition to inspecting these sizes one by one, it also allows changing frame size for positions 0, 1, 14 and 15 (default values 56, 60, 9216 and 16360).
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- frame_sizeο
integer, frame size of the position
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- frame_sizeο
integer, frame size of the position
- get()[source]ο
Get frame sizes defined for each position of the P_MIXWEIGHTS command. By default, the 16 frame sizes are: 56 (not valid for 40G/100G), 60, 64, 70, 78, 92, 256, 496, 512, 570, 576, 594, 1438, 1518, 9216, and 16360.
- Returns:
frame sizes defined for each position of the P_MIXWEIGHTS command
- Return type:
- class P_MIXWEIGHTS[source]ο
Bases:
objectAllow changing the distribution of the MIX packet length by specifying the percentage of each of the 16 possible frame sizes used in the MIX. The sum of the percentage values specified must be 100. The command will affect the mix-distribution for all streams on the port. The possible 16 frame sizes are: 56 (not valid for 40G/100G), 60, 64, 70, 78, 92, 256, 496, 512, 570, 576, 594, 1438, 1518, 9216, and 16360.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- weight_1438_bytesο
integer, specifying the percentage of 1438-byte frame sizes.
- weight_1518_bytesο
integer, specifying the percentage of 1518-byte frame sizes.
- weight_16360_bytesο
integer, specifying the percentage of 16360-byte frame sizes.
- weight_256_bytesο
integer, specifying the percentage of 256-byte frame sizes.
- weight_496_bytesο
integer, specifying the percentage of 496-byte frame sizes.
- weight_512_bytesο
integer, specifying the percentage of 512-byte frame sizes.
- weight_56_bytesο
integer, specifying the percentage of 56-byte frame sizes.
- weight_570_bytesο
integer, specifying the percentage of 570-byte frame sizes.
- weight_576_bytesο
integer, specifying the percentage of 576-byte frame sizes.
- weight_594_bytesο
integer, specifying the percentage of 594-byte frame sizes.
- weight_60_bytesο
integer, specifying the percentage of 60-byte frame sizes.
- weight_64_bytesο
integer, specifying the percentage of 64-byte frame sizes.
- weight_70_bytesο
integer, specifying the percentage of 70-byte frame sizes.
- weight_78_bytesο
integer, specifying the percentage of 78-byte frame sizes.
- weight_9216_bytesο
integer, specifying the percentage of 9216-byte frame sizes.
- weight_92_bytesο
integer, specifying the percentage of 92-byte frame sizes.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- weight_1438_bytesο
integer, specifying the percentage of 1438-byte frame sizes.
- weight_1518_bytesο
integer, specifying the percentage of 1518-byte frame sizes.
- weight_16360_bytesο
integer, specifying the percentage of 16360-byte frame sizes.
- weight_256_bytesο
integer, specifying the percentage of 256-byte frame sizes.
- weight_496_bytesο
integer, specifying the percentage of 496-byte frame sizes.
- weight_512_bytesο
integer, specifying the percentage of 512-byte frame sizes.
- weight_56_bytesο
integer, specifying the percentage of 56-byte frame sizes.
- weight_570_bytesο
integer, specifying the percentage of 570-byte frame sizes.
- weight_576_bytesο
integer, specifying the percentage of 576-byte frame sizes.
- weight_594_bytesο
integer, specifying the percentage of 594-byte frame sizes.
- weight_60_bytesο
integer, specifying the percentage of 60-byte frame sizes.
- weight_64_bytesο
integer, specifying the percentage of 64-byte frame sizes.
- weight_70_bytesο
integer, specifying the percentage of 70-byte frame sizes.
- weight_78_bytesο
integer, specifying the percentage of 78-byte frame sizes.
- weight_9216_bytesο
integer, specifying the percentage of 9216-byte frame sizes.
- weight_92_bytesο
integer, specifying the percentage of 92-byte frame sizes.
- get()[source]ο
Get the percentage of each of the 16 possible frame sizes used in the MIX. The sum of the percentage values specified must be 100. The command will affect the mix-distribution for all streams on the port. The possible 16 frame sizes are: 56 (not valid for 40G and above), 60, 64, 70, 78, 92, 256, 496, 512, 570, 576, 594, 1438, 1518, 9216, and 16360.
- Returns:
the percentage of each of the 16 possible frame sizes used in the MIX.
- Return type:
- set(weight_56_bytes, weight_60_bytes, weight_64_bytes, weight_70_bytes, weight_78_bytes, weight_92_bytes, weight_256_bytes, weight_496_bytes, weight_512_bytes, weight_570_bytes, weight_576_bytes, weight_594_bytes, weight_1438_bytes, weight_1518_bytes, weight_9216_bytes, weight_16360_bytes)[source]ο
Set the percentage of each of the 16 possible frame sizes used in the MIX. The sum of the percentage values specified must be 100. The command will affect the mix-distribution for all streams on the port. The possible 16 frame sizes are: 56 (not valid for 40G and above), 60, 64, 70, 78, 92, 256, 496, 512, 570, 576, 594, 1438, 1518, 9216, and 16360.
- Parameters:
weight_56_bytes (int) β specifying the percentage of 56-byte frame sizes
weight_60_bytes (int) β specifying the percentage of 60-byte frame sizes
weight_64_bytes (int) β specifying the percentage of 64-byte frame sizes
weight_70_bytes (int) β specifying the percentage of 70-byte frame sizes
weight_78_bytes (int) β specifying the percentage of 78-byte frame sizes
weight_92_bytes (int) β specifying the percentage of 92-byte frame sizes
weight_256_bytes (int) β specifying the percentage of 256-byte frame sizes
weight_496_bytes (int) β specifying the percentage of 496-byte frame sizes
weight_512_bytes (int) β specifying the percentage of 512-byte frame sizes
weight_570_bytes (int) β specifying the percentage of 570-byte frame sizes
weight_576_bytes (int) β specifying the percentage of 576-byte frame sizes
weight_594_bytes (int) β specifying the percentage of 594-byte frame sizes
weight_1438_bytes (int) β specifying the percentage of 1438-byte frame sizes
weight_1518_bytes (int) β specifying the percentage of 1518-byte frame sizes
weight_9216_bytes (int) β specifying the percentage of 9216-byte frame sizes
weight_16360_bytes (int) β specifying the percentage of 16360-byte frame sizes
- class P_MULTICAST[source]ο
Bases:
objectA multicast mode for a port. Ports can use the IGMPv2 protocol to join or leave multicast groups, either on an on-off basis or repeatedly.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- ipv4_multicast_addressesο
a multicast group address to join or leave
- operationο
coded byte, specifying the operation.
- second_countο
the interval between repeated joins in seconds.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- ipv4_multicast_addressesο
a multicast group address to join or leave
- operationο
coded byte, specifying the operation.
- second_countο
the interval between repeated joins in seconds.
- get()[source]ο
Get the portβs multicast information (IGMPv2).
- Returns:
the portβs multicast information (IGMPv2)
- Return type:
- set(ipv4_multicast_addresses, operation, second_count)[source]ο
Set the portβs multicast information (IGMPv2).
- Parameters:
ipv4_multicast_addresses (List[ipaddress.IPv4Address]) β a multicast group address to join or leave
operation (MulticastOperation) β the operation
second_count (int) β the interval between repeated joins in seconds.
- set_join(ipv4_multicast_addresses, *, operation=MulticastOperation.JOIN, second_count)ο
Set portβs multicast operation to Join.
- set_leave(ipv4_multicast_addresses, *, operation=MulticastOperation.LEAVE, second_count)ο
Set portβs multicast operation to Join.
- set_off(ipv4_multicast_addresses, *, operation=MulticastOperation.OFF, second_count)ο
Set portβs multicast operation to Off.
- set_on(ipv4_multicast_addresses, *, operation=MulticastOperation.ON, second_count)ο
Set portβs multicast operation to On.
- class P_MULTICASTEXT[source]ο
Bases:
objectA multicast mode for a port. Ports can use the IGMPv2/IGMPv3 protocol to join or leave multicast groups, either on an on-off basis or repeatedly.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- igmp_versionο
coded byte, specifying the IGMP version.
- ipv4_multicast_addressesο
list of addresses, up to 8 multicast group addresses to receive an operation
- operationο
coded byte, specifying the operation.
- second_countο
byte, the interval between repeated joins/excludes in seconds.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- igmp_versionο
coded byte, specifying the IGMP version.
- ipv4_multicast_addressesο
list of addresses, up to 8 multicast group addresses to receive an operation
- operationο
coded byte, specifying the operation.
- second_countο
byte, the interval between repeated joins/excludes in seconds.
- get()[source]ο
Get the portβs multicast information (IGMPv2/IGMPv3).
- Returns:
the portβs multicast information (IGMPv2/IGMPv3)
- Return type:
- set(ipv4_multicast_addresses, operation, second_count, igmp_version)[source]ο
Set the portβs multicast information (IGMPv2/IGMPv3).
- Parameters:
ipv4_multicast_addresses (List[ipaddress.IPv4Address]) β a multicast group address to join or leave
operation (MulticastExtOperation) β the operation
second_count (int) β the interval between repeated joins in seconds.
igmp_version (IGMPVersion) β IGMP version
- class P_MULTICASTHDR[source]ο
Bases:
objectAllows addition of a VLAN tag to IGMPv2 and IGPMv3 packets.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- deiο
byte, drop-eligible indicator
- header_countο
byte, number of additional headers. Currently only 0 or 1 supported.
- header_formatο
byte, indicates the header format. 0 = no header, 1 = VLAN
- pcpο
byte, VLAN Priority code point
- tagο
integer, VLAN tag (VID)
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- deiο
byte, drop-eligible indicator.
- header_countο
byte, number of additional headers. Currently only 0 or 1 supported.
- header_formatο
byte, indicates the header format. 0 = no header, 1 = VLAN
- pcpο
byte, VLAN Priority code point
- tagο
integer, VLAN tag (VID)
- get()[source]ο
Get the VLAN tag to the IGMPv2 and IGMPv3 packets of the port.
- Returns:
the VLAN tag to the IGMPv2 and IGMPv3 packets of the port
- Return type:
- set(header_count, header_format, tag, pcp, dei)[source]ο
Set the VLAN tag to the IGMPv2 and IGMPv3 packets of the port.
- Parameters:
header_count (int) β number of additional headers. Currently only 0 or 1 supported
header_format (MulticastHeaderFormat) β indicates the header format
tag (int) β VLAN tag (VID)
pcp (int) β VLAN Priority code point
dei (OnOff) β drop-eligible indicator
- class P_NDPRXTABLE[source]ο
Bases:
objectPort NDP table used to reply to incoming NDP Neighbor Solicitation.
- get()[source]ο
Get the portβs NDP table used to reply to incoming NDP Neighbor Solicitation.
- Returns:
the portβs NDP table used to reply to incoming NDP Neighbor Solicitation. * IP address to match to the Target IP address in the NDP Neighbor Solicitation * The prefix used for address matching * Whether the target MAC address will be patched with the part of the IP address that is not masked by the prefix * The target MAC address to return in the NDP Neighbor Advertisement
- Return type:
- set(entries)[source]ο
Set the portβs NDP table used to reply to incoming NDP Neighbor Solicitation.
- Parameters:
entries (List[subtypes.NdpChunkList]) β
IP address to match to the Target IP address in the NDP Neighbor Solicitation
The prefix used for address matching
Whether the target MAC address will be patched with the part of the IP address that is not masked by the prefix
The target MAC address to return in the NDP Neighbor Advertisement
- class P_PAUSE[source]ο
Bases:
objectWhether a port responds to incoming Ethernet PAUSE frames by holding back outgoing traffic.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- on_offο
coded byte, whether PAUSE response is enabled.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- on_offο
coded byte, whether PAUSE response is enabled.
- get()[source]ο
Get the status of whether the port responds to incoming Ethernet PAUSE frames by holding back outgoing traffic.
- Returns:
the status of whether the port responds to incoming Ethernet PAUSE frames by holding back outgoing traffic.
- Return type:
- set(on_off)[source]ο
Set the status of whether the port responds to incoming Ethernet PAUSE frames by holding back outgoing traffic.
- Parameters:
on_off (OnOff) β the status of whether the port responds to incoming Ethernet PAUSE frames by holding back outgoing traffic.
- set_off()ο
Disable the port to respond to incoming Ethernet PAUSE frames.
- set_on()ο
Enable the port to respond to incoming Ethernet PAUSE frames.
- class P_PAYLOADMODE[source]ο
Bases:
objectSet this command to configure the port to use different payload modes, i.e. normal, extend payload, and custom payload field, for ALL streams on this port. The extended payload feature allows the definition of a much larger (up to MTU) payload buffer for each stream. The custom payload field feature allows you to define a sequence of custom data fields for each stream. The data fields will then be used in a round robin fashion when packets are sent based on the stream definition.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- modeο
coded byte, which is the payload mode the port should be set.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- modeο
coded byte, which is the payload mode the port should be set.
- get()[source]ο
Get the portβs payload mode, i.e. normal, extend payload, and custom payload field, for ALL streams on this port.
- Returns:
the portβs payload mode, i.e. normal, extend payload, and custom payload field, for ALL streams on this port.
- Return type:
- set(mode)[source]ο
Set the portβs payload mode, i.e. normal, extend payload, and custom payload field, for ALL streams on this port.
- Parameters:
mode (PayloadMode) β the portβs payload mode, i.e. normal, extend payload, and custom payload field, for ALL streams on this port
- set_cdf()ο
Set the portβs payload mode to Custom Payload Field.
- set_extpl()ο
Set the portβs payload mode to Extend Payload.
- set_normal()ο
Set the portβs payload mode to Normal.
- class P_PFCENABLE[source]ο
Bases:
objectThis setting control whether a port responds to incoming Ethernet Priority Flow Control (PFC) frames, by holding back outgoing traffic for that priority.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- cos_0ο
coded bytes, indicating whether PFC response is enabled for that CoS 0.
- cos_1ο
coded bytes, indicating whether PFC response is enabled for that CoS 1.
- cos_2ο
coded bytes, indicating whether PFC response is enabled for that CoS 2.
- cos_3ο
coded bytes, indicating whether PFC response is enabled for that CoS 3.
- cos_4ο
coded bytes, indicating whether PFC response is enabled for that CoS 4.
- cos_5ο
coded bytes, indicating whether PFC response is enabled for that CoS 5.
- cos_6ο
coded bytes, indicating whether PFC response is enabled for that CoS 6.
- cos_7ο
coded bytes, indicating whether PFC response is enabled for that CoS 7.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- cos_0ο
coded bytes, indicating whether PFC response is enabled for that CoS 0.
- cos_1ο
coded bytes, indicating whether PFC response is enabled for that CoS 1.
- cos_2ο
coded bytes, indicating whether PFC response is enabled for that CoS 2.
- cos_3ο
coded bytes, indicating whether PFC response is enabled for that CoS 3.
- cos_4ο
coded bytes, indicating whether PFC response is enabled for that CoS 4.
- cos_5ο
coded bytes, indicating whether PFC response is enabled for that CoS 5.
- cos_6ο
coded bytes, indicating whether PFC response is enabled for that CoS 6.
- cos_7ο
coded bytes, indicating whether PFC response is enabled for that CoS 7.
- get()[source]ο
Get whether the port responds to incoming Ethernet Priority Flow Control (PFC) frames.
- Returns:
whether PFC response is enabled for CoS 0, Cos 1, Cos 2, Cos 3, Cos 4, Cos 5, Cos 6, and Cos 7
- Return type:
- set(cos_0, cos_1, cos_2, cos_3, cos_4, cos_5, cos_6, cos_7)[source]ο
Set whether the port responds to incoming Ethernet Priority Flow Control (PFC) frames.
- Parameters:
cos_0 (OnOff) β whether PFC response is enabled for CoS 0
cos_1 (OnOff) β whether PFC response is enabled for CoS 1
cos_2 (OnOff) β whether PFC response is enabled for CoS 2
cos_3 (OnOff) β whether PFC response is enabled for CoS 3
cos_4 (OnOff) β whether PFC response is enabled for CoS 4
cos_5 (OnOff) β whether PFC response is enabled for CoS 5
cos_6 (OnOff) β whether PFC response is enabled for CoS 6
cos_7 (OnOff) β whether PFC response is enabled for CoS 7
- class P_PINGREPLY[source]ο
Bases:
objectWhether the port replies to IPv4/IPv6 PING. The port can reply to incoming IPv4/IPv6 PING requests to the IP address specified for the port. IPv4/IPv6 PING reply generation is independent of whether traffic and capture is on for the port.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- on_offο
coded byte, whether the port replies to PING requests.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- on_offο
coded byte, whether the port replies to PING requests.
- get()[source]ο
Get the status of whether the port replies to IPv4/IPv6 PING requests.
- Returns:
the status of whether the port replies to IPv4/IPv6 PING requests
- Return type:
- set(on_off)[source]ο
Set the status of whether the port replies to IPv4/IPv6 PING requests.
- Parameters:
on_off (OnOff) β whether the port replies to IPv4/IPv6 PING requests
- set_off()ο
Enable IPv4/IPv6 PING reply on the port.
- set_on()ο
Enable IPv4/IPv6 PING reply on the port.
- class P_PINGV6REPLY[source]ο
Bases:
objectWhether the port generates PINGv6 replies using the ICMP protocol received over IPv6. The port can reply to incoming PINGv6 requests to the IPv6 address specified for the port. PINGv6 reply generation is independent of whether traffic and capture is on for the port.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- on_offο
coded byte, whether the port replies to PINGv6 requests.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- on_offο
coded byte, whether the port replies to PINGv6 requests.
- get()[source]ο
Get whether the port replies to incoming PINGv6.
- Returns:
whether the port replies to incoming PINGv6
- Return type:
- set(on_off)[source]ο
Set whether the port replies to incoming PINGv6.
- Parameters:
on_off (OnOff) β whether the port replies to incoming PINGv6.
- set_off()ο
Disable the port from replying to PINGv6.
- set_on()ο
Enable the port to reply to PINGv6.
- class P_RANDOMSEED[source]ο
Bases:
objectA fixed seed value specified for a port. This value is used for a pseudo-random number generator used when generating traffic that requires random variation in packet length, payload, or modified fields. As long as no part of the port configuration is changed, the generated traffic patterns are reproducible when restarting traffic for the port. A specified seed value of -1 instead creates variation by using a new time-based seed value each time traffic generation is restarted.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- seedο
integer, specifying a fixed seed value for the pseudo-random number generator. -1 = new random sequence for each start.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- seedο
integer, specifying a fixed seed value for the pseudo-random number generator. -1 = new random sequence for each start.
- class P_RATEFRACTION[source]ο
Bases:
objectThe port-level rate of the traffic transmitted for a port in sequential tx mode, expressed in millionths of the effective rate for the port. The bandwidth consumption includes the inter-frame gaps, and does not depend on the length of the packets for the streams.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- port_rate_ppmο
integer, port rate expressed as a value between 0 and 1,000,000.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- port_rate_ppmο
integer, port rate expressed as a value between 0 and 1,000,000.
- get()[source]ο
Get the port-level rate of the traffic transmitted for a port in sequential tx mode, expressed in millionths of the effective rate for the port.
- Returns:
the port-level rate of the traffic transmitted for a port in sequential tx mode, expressed in millionths of the effective rate for the port.
- Return type:
- set(port_rate_ppm)[source]ο
Set the port-level rate of the traffic transmitted for a port in sequential tx mode, expressed in millionths of the effective rate for the port.
- Parameters:
port_rate_ppm (int) β the port-level rate of the traffic transmitted for a port in sequential tx mode, expressed in millionths of the effective rate for the port
- class P_RATEL2BPS[source]ο
Bases:
objectThe port-level rate of the traffic transmitted for a port in sequential tx mode, expressed in units of bits per-second at layer-2, thus including the Ethernet header but excluding the inter-frame gap. The bandwidth consumption is somewhat dependent on the length of the packets generated for the stream, and also on the inter-frame gap for the port.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- port_rate_bpsο
long integer, port rate expressed as bits-per-second.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- port_rate_bpsο
long integer, port rate expressed as bits-per-second.
- get()[source]ο
Get the port-level rate of the traffic transmitted for a port in sequential tx mode, expressed in units of bits per-second at layer-2, thus including the Ethernet header but excluding the inter-frame gap.
- Returns:
the port-level rate of the traffic transmitted for a port in sequential tx mode, expressed in units of bits per-second at layer-2, thus including the Ethernet header but excluding the inter-frame gap
- Return type:
- set(port_rate_bps)[source]ο
Set the port-level rate of the traffic transmitted for a port in sequential tx mode, expressed in units of bits per-second at layer-2, thus including the Ethernet header but excluding the inter-frame gap.
- Parameters:
port_rate_bps (int) β the port-level rate of the traffic transmitted for a port in sequential tx mode, expressed in units of bits per-second at layer-2, thus including the Ethernet header but excluding the inter-frame gap
- class P_RATEPPS[source]ο
Bases:
objectThe port-level rate of the traffic transmitted for a port in sequential tx mode, expressed in packets per second. The bandwidth consumption is heavily dependent on the length of the packets generated for the streams, and also on the inter-frame gap for the port.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- port_rate_ppsο
integer, port rate expressed as packets per second.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- port_rate_ppsο
integer, port rate expressed as packets per second.
- class P_RECEIVESYNC[source]ο
Bases:
objectObtains the current in-sync status of a portβs receive interface.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- sync_statusο
coded byte, describing the current sync status of the port.
- class P_RESERVATION[source]ο
Bases:
objectYou set this command to reserve, release, or relinquish a port. The port must be reserved before any of its configuration can be changed, including streams, filters, capture, and datasets.The owner of the session must already have been specified. Reservation will fail if the chassis or module is reserved to other users.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- statusο
coded byte, containing the operation to perform. The reservation parameters are asymmetric with respect to set/get. When set, it contains the operation to perform. When get, it contains the status.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- operationο
coded byte, containing the operation to perform. The reservation parameters are asymmetric with respect to set/get. When set, it contains the operation to perform. When get, it contains the status.
- get()[source]ο
Get the reservation status of the test port.
- Returns:
the reservation status of the test port.
- Return type:
- set(operation)[source]ο
Set the reservation of the test port, i.e., reserve, release, or relinquish.
- Parameters:
operation (ReservedAction) β the reservation of the test port, i.e., reserve, release, or relinquish.
- set_release()ο
Release the port from your ownership.
- set_relinquish()ο
Release the port from othersβ ownership.
- set_reserve()ο
Reserve the port.
- class P_RESERVEDBY[source]ο
Bases:
objectIdentify the user who has a port reserved. The empty string if the port is not currently reserved. Note that multiple connections can specify the same name with C_OWNER, but a resource can only be reserved to one connection. Therefore you cannot count on having the port just because it is reserved in your name. The port is reserved to this connection only if P_RESERVATION returns RESERVED_BY_YOU.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- usernameο
string, containing the name of the current owner of the port.
- class P_RESET[source]ο
Bases:
objectReset port-level parameters to standard values, and delete all streams, filters, capture, and dataset definitions.
- class P_RXPREAMBLE_INSERT[source]ο
Bases:
objectInsert preambles to the incoming frames.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- on_offο
coded byte, insert preamble to incoming frames.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- on_offο
coded byte, insert preamble to incoming frames.
- get()[source]ο
Get whether the port should insert preambles to the incoming frames.
- Returns:
whether the port should insert preambles to the incoming frames
- Return type:
- set(on_off)[source]ο
Set whether the port should insert preambles to the incoming frames.
- Parameters:
on_off (OnOff) β whether the port should insert preambles to the incoming frames
- set_off()ο
Disable frame preamble insertion on the port.
- set_on()ο
Enable frame preamble insertion on the port.
- class P_RXRUNTLENGTH[source]ο
Bases:
objectEnable RX runt length detection to flag if packets are seen with length not being I bytes.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- runt_lengthο
integer, enable RX runt length detection to flag if packets are seen with length not being I bytes. Set to -1 to disabled.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- runt_lengthο
integer, enable RX runt length detection to flag if packets are seen with length not being I bytes. Set to -1 to disabled.
- class P_RXRUNTLEN_ERRS[source]ο
Bases:
objectSticky clear on read: Have packets with wrong runt length been detected since last read?
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- statusο
coded integer, have packets with wrong runt length been detected since last read?
- class P_SPEED[source]ο
Bases:
objectObtains the current physical speed of a portβs interface.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- port_speedο
integer, current speed in units of Mbps.
- class P_SPEEDREDUCTION[source]ο
Bases:
objectA speed reduction applied to the transmitting side of a port, resulting in an effective traffic rate that is slightly lower than the rate of the physical interface. Speed reduction is effectuated by inserting short idle periods in the generated traffic pattern to consume part of the portβs physical bandwidth. The portβs clock speed is not altered.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- ppmο
integer, specifying the speed reduction in units of parts-per-million.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- ppmο
integer, specifying the speed reduction in units of parts-per-million.
- class P_SPEEDSELECTION[source]ο
Bases:
objectThe speed mode of an autoneg port with an interface type supporting multiple speeds.
Note
This is only a settable command when speed is selected at the port level. Use the M_CFPCONFIGEXT command when speed is selected at the module level.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- modeο
coded byte, containing the speed mode for the port.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- modeο
coded byte, containing the speed mode for the port.
- get()[source]ο
Get the speed mode of the port with an interface type supporting multiple speeds.
- Returns:
the speed mode of the port with an interface type supporting multiple speeds.
- Return type:
- set(mode)[source]ο
Set the speed mode of the port with an interface type supporting multiple speeds.
- Parameters:
mode (PortSpeedMode) β the speed mode of the port with an interface type supporting multiple speeds
- set_auto()ο
Set the speed mode to auto (all speeds used in auto negotiation).
- set_f100g()ο
Set the speed mode to 100 Gbit/s.
- set_f100m()ο
Set the speed mode to 100 Mbit/s.
- set_f100m1g()ο
Set the speed mode to 100 Mbit/s / 1 Gbit/s.
- set_f100m1g10g()ο
Set the speed mode to 100 Mbit/s / 1 Gbit/s / 10 Gbit/s.
- set_f100m1g2500m()ο
Set the speed mode to 100 Mbit/s / 1 Gbit/s / 2500 Mbit/s.
- set_f100mhdx()ο
Set the speed mode to 100 Mbit/s Half Duplex.
- set_f10g()ο
Set the speed mode to 10 Gbit/s.
- set_f10m()ο
Set the speed mode to 10 Mbit/s.
- set_f10m100m()ο
Set the speed mode to 10/100 Mbit/s.
- set_f10mhdx()ο
Set the speed mode to 10 Mbit/s Half Duplex.
- set_f1g()ο
Set the speed mode to 1 Gbit/s.
- set_f2500m()ο
Set the speed mode to 2500 Mbit/s.
- set_f40g()ο
Set the speed mode to 40 Gbit/s.
- set_f5g()ο
Set the speed mode to 5 Gbit/s.
- set_unknown()ο
Set the speed mode to unknown.
- class P_SPEEDS_SUPPORTED[source]ο
Bases:
objectRead the speeds supported by the port. The speeds supported by a port depends on the transceiver inserted into the port. A series of 0/1 values, identifying which speeds are supported by the port.
Note
Ports can support zero (in case of e.g. empty cage), one, or multiple speeds.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- autoο
auto-negotiated speed, the actual speed depends on the negotiation result.
- f100Gο
100 Gbps.
- f100Mο
100 Mbps.
- f100M1Gο
100/1000 Mbps.
- f100M1G10Gο
100/1000/10000 Mbps.
- f100M1G2500Mο
100/1000/2500 Mbps.
- f100MHDXο
100 Mbps half duplex.
- f10Gο
10 Gbps.
- f10Mο
10 Mbps.
- f10M100Mο
10/100 Mbps.
- f10MHDXο
10 Mbps half duplex.
- f1600Gο
1600 Gbps.
- f1Gο
1 Gbps.
- f200Gο
200 Gbps.
- f2500Mο
2500 Mbps.
- f25Gο
25 Gbps.
- f400Gο
400 Gbps.
- f40Gο
40 Gbps.
- f50Gο
50 Gbps.
- f5Gο
5 Gbps.
- f800Gο
800 Gbps.
- class P_STATUS[source]ο
Bases:
objectGet the received signal level for optical ports.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- optical_powerο
list of integers, received signal level for optical ports, in nanowatts, -1 when not available.
- class P_TCVRSTATUS[source]ο
Bases:
objectGet various tcvr status information. RX loss status of the individual RX optical lanes (only 4 lanes are supported currently).
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- rx_loss_lane_0ο
RX loss of lane 0
- rx_loss_lane_1ο
RX loss of lane 1
- rx_loss_lane_2ο
RX loss of lane 2
- rx_loss_lane_3ο
RX loss of lane 3
- class P_TPLDMODE[source]ο
Bases:
objectSets the size of the Xena Test Payload (TPLD) used to track streams, perform latency measurements etc. Default is βNormalβ, which is a 20 byte TPLD. βMicroβ is a condensed version, which is useful when generating very small packets with relatively long headers (like IPv6). It has the following characteristics compared to the βnormalβ TPLD. When the TPLDMODE is changed, it will affect ALL streams on the port. 1) Only 6 byte long. 2) Less accurate mechanism to separate Xena-generated packets from other packets is the network - it is recommended not to have too much other traffic going into the receive Xena port, when micro TPLD is used. 3) No sequence checking (packet loss or packet misordering). The number of received packets for each stream can still be compared to the number of transmitted packets to detect packet loss once traffic has been stopped. Note: Currently not available on M6SFP, M2SFPT, M6RJ45+/M2RJ45+, M2CFP40, M1CFP100, M2SFP+4SFP
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- modeο
coded byte, specifying TPLDβs mode.
- get()[source]ο
Get the Test Payload mode of the port.
- Returns:
the Test Payload mode of the port
- Return type:
- set(mode)[source]ο
Set the Test Payload mode of the port.
- Parameters:
mode (TPLDMode) β the Test Payload mode of the port.
- set_micro()ο
Set the Test Payload mode of the port to Micro.
- set_normal()ο
Set the Test Payload mode of the port to Normal.
- class P_TRAFFIC[source]ο
Bases:
objectWhether a port is transmitting packets. When on, the port generates a sequence of packets with contributions from each stream that is enabled. The streams are configured using the PS_xxx parameters.
Note
If any of the specified packet sizes cannot fit into the packet generator, this command will return FAILED and not start the traffic. While traffic is on the streams for this port cannot be enabled or disabled, and the configuration of those streams that are enabled cannot be changed.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- on_offο
coded byte, determines whether to start or stop traffic generation on this port.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- on_offο
coded byte, determines whether to start or stop traffic generation on this port.
- get()[source]ο
Get the traffic generation status of the port.
- Returns:
the traffic generation status of the port
- Return type:
- set(on_off)[source]ο
Set the traffic generation status of the port.
- Parameters:
on_off (StartOrStop) β the traffic generation status of the port.
- set_start()ο
Start the traffic generation of the port.
- set_stop()ο
Stop the traffic generation of the port.
- class P_TRAFFICERR[source]ο
Bases:
objectObtain the traffic error which has occurred in the last
*_TRAFFICorC_TRAFFICSYNCcommand.- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- errorο
coded byte, specifies the port traffic error.
- class P_TXBURSTPERIOD[source]ο
Bases:
objectIn Burst TX mode this command defines the time from the start of one sequence of bursts (from a number of streams) to the start of next sequence of bursts. NB: Only used when Port TX Mode is βBURSTβ.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- burst_periodο
integer, burst period expressed in microseconds.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- burst_periodο
integer, burst period expressed in microseconds.
- get()[source]ο
Get the duration in microseconds from the start of one sequence of bursts (from a number of streams) to the start of next sequence of bursts in Burst TX mode.
- Returns:
the duration in microseconds from the start of one sequence of bursts (from a number of streams) to the start of next sequence of bursts
- Return type:
- set(burst_period)[source]ο
Set the duration in microseconds from the start of one sequence of bursts (from a number of streams) to the start of next sequence of bursts in Burst TX mode.
- Parameters:
burst_period (int) β the duration in microseconds from the start of one sequence of bursts (from a number of streams) to the start of next sequence of bursts in Burst TX mode
- class P_TXDELAY[source]ο
Bases:
objectSets a variable delay from a traffic start command received by the port until it starts transmitting. The delay is specified in multiples of 64 microseconds. Valid values are 0-31250 (0 to 2,000,000 microseconds).
Note
You must use C_TRAFFIC instead of P_TRAFFIC to start traffic for P_TXDELAY to take effect.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- delay_valο
integer, TX delay in multiples of 64 microseconds. (TX delay = delay_val * 64 microseconds).
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- delay_valο
integer, TX delay in multiples of 64 microseconds. (TX delay = delay_val * 64 microseconds).
- class P_TXENABLE[source]ο
Bases:
objectWhether a port should enable its transmitter, or keep the outgoing link down.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- on_offο
coded byte, whether the transmitter is enabled or disabled.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- on_offο
coded byte, whether the transmitter is enabled or disabled.
- get()[source]ο
Get the portβs transmitter status.
- Returns:
the portβs transmitter status
- Return type:
- set(on_off)[source]ο
Set the the portβs transmitter status.
- Parameters:
on_off (OnOff) β the portβs transmitter status
- set_off()ο
Disable the portβs transmitter and keep the outgoing link down.
- set_on()ο
Enable the portβs transmitter.
- class P_TXMODE[source]ο
Bases:
objectThe scheduling mode for outgoing traffic from the port, specifying how multiple logical streams are merged onto one physical port. There are four primary modes: Normal Interleaved: The streams are treated independently, and are merged into a combined traffic pattern for the port, which honors each streamβs ideal packet placements as well as possible. This is the default mode. Strict Uniform: This is a slight variation of normal interleaved scheduling, which emphasizes strict uniformity of the inter-packet-gaps as more important than hitting the stream rates absolutely precisely. Sequential: Each stream in turn contribute one or more packets, before continuing to the next stream, in a cyclical pattern. The count of packets for each stream is obtained from the PS_PACKETLIMIT command value for the stream. The individual rates for each stream are ignored, and instead the overall rate is determined at the port-level. This in turn determines the rates for each stream, taking into account their packet lengths and counts. The maximum number of packets in a cycle (i.e. the sum of PS_PACKETLIMIT for all enabled streams) is 500. If the packet number is larger than 500, will be returned when attempting to start the traffic (P_TRAFFIC ON). Burst*: When this mode is selected, frames from the streams on a port are sent as bursts as depicted below: The Burst Period is defined in the P_TXBURSTPERIOD command. For the individual streams the number of packets in a burst is defined by the PS_BURST command, while the Inter Packet Gap and the Inter Burst Gap are defined by the PS_BURSTGAP command.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- modeο
coded byte, containing the loopback mode for the port: NORMAL (interleaved packet scheduling), STRICTUNIFORM (strict uniform mode), SEQUENTIAL (sequential packet scheduling), BURST (burst mode).
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- modeο
coded byte, containing the loopback mode for the port: NORMAL (interleaved packet scheduling), STRICTUNIFORM (strict uniform mode), SEQUENTIAL (sequential packet scheduling), BURST (burst mode).
- get()[source]ο
Get the scheduling mode for outgoing traffic from the port.
- Returns:
the scheduling mode for outgoing traffic from the port, containing the loopback mode for the port: NORMAL (interleaved packet scheduling), STRICTUNIFORM (strict uniform mode), SEQUENTIAL (sequential packet scheduling), BURST (burst mode).
- Return type:
- set(mode)[source]ο
Set the the scheduling mode for outgoing traffic from the port.
- Parameters:
mode (TXMode) β the scheduling mode for outgoing traffic from the port, containing the loopback mode for the port: NORMAL (interleaved packet scheduling), STRICTUNIFORM (strict uniform mode), SEQUENTIAL (sequential packet scheduling), BURST (burst mode).
- set_burst()ο
Set the port scheduling mode to Burst.
- set_normal()ο
Set the port scheduling mode to Normal.
- set_sequential()ο
Set the port scheduling mode to Sequential.
- set_strictuniform()ο
Set the port scheduling mode to Strict Uniform.
- class P_TXPACKETLIMIT[source]ο
Bases:
objectThe number of packets that will be transmitted from a port when traffic is started on the port. A value of 0 or -1 makes the port transmit continuously. Traffic from the streams on the port can however also be set to stop after transmitting a number of packets.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- packet_count_limitο
integer, number of packets that will be transmitted by the port.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- packet_count_limitο
integer, number of packets that will be transmitted by the port.
- get()[source]ο
Get the number of packets that will be transmitted from the port when traffic is started on the port.
- Returns:
the number of packets that will be transmitted from the port when traffic is started on the port.
- Return type:
- set(packet_count_limit)[source]ο
- Set the number of packets that will be transmitted from the port when traffic is started on the port.
A value of 0 or -1 makes the port transmit continuously. Traffic from the streams on the port can however also be set to stop after transmitting a number of packets.
- Parameters:
packet_count_limit (int) β the number of packets that will be transmitted from the port when traffic is started on the port
- class P_TXPREAMBLE_REMOVE[source]ο
Bases:
objectRemove preamble from outgoing frames.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- on_offο
coded byte, remove preamble from outgoing frames.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- on_offο
coded byte, remove preamble from outgoing frames.
- get()[source]ο
Get whether the preambles from outgoing frames are to be removed by the port.
- Returns:
whether the preambles from outgoing frames are to be removed by the port
- Return type:
- set(on_off)[source]ο
Set whether the preambles from outgoing frames are to be removed by the port.
- Parameters:
on_off (OnOff) β whether the preambles from outgoing frames are to be removed by the port
- set_off()ο
Disable frame preamble removal on the port.
- set_on()ο
Enable frame preamble removal on the port.
- class P_TXRUNTLENGTH[source]ο
Bases:
objectEnable TX runt feature to cut all packets to a number of bytes.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- runt_lengthο
integer, enable TX runt feature to cut all packets to I bytes. Set to -1 to disable.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- runt_lengthο
integer, enable TX runt feature to cut all packets to I bytes. Set to -1 to disable.
- class P_TXTIME[source]ο
Bases:
objectHow long the port has been transmitting, the elapsed time since traffic was started.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- microsecondsο
long integer, elapsed time since traffic was started.
- class P_TXTIMELIMIT[source]ο
Bases:
objectA port-level time-limit on how long it keeps transmitting when started. After the elapsed time traffic must be stopped and restarted. This complements the stream-level PS_PACKETLIMIT function.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- microsecondsο
long integer, time limit after which the port stops transmitting.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- microsecondsο
long integer, time limit after which the port stops transmitting.
- class P_UAT_FLR[source]ο
Bases:
objectThis command defines the threshold for the Frame Loss Ratio, where a second is declared as a Severely Errored Second (SES). In Valkyrie1564 UnAvailable Time (UAT) is declared after 10 consecutive SES has been detected
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- frame_loss_ratioο
byte, specifies the Frame Loss Ratio threshold for SES as a fraction of 1 * 100 (i.e. if the threshold is 0.50, value is 50)
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- frame_loss_ratioο
byte, Frame Loss Ratio specified as a number times 1/100, 0..100
- class P_UAT_MODE[source]ο
Bases:
objectThis command defines if a port is currently used by test suite Valkyrie1564, which means that UAT (UnAvailable Time) will be detected for the port.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- delayο
integer,time in milliseconds to wait before detection of UAT is started. Default value: 500. This parameter is ignored when state is set to OFF.
- modeο
specifies the state of the affected stream counters
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- delayο
integer, time in milliseconds to wait before detection of UAT is started. Default value: 500. This parameter is ignored when state is set to OFF.
- modeο
specifies the state of the affected stream counters
- get()[source]ο
Get the state of the affected stream counters and time in milliseconds to wait before detection of UAT is started. Default value: 500. This command is ignored when state is set to OFF.
- Returns:
the state of the affected stream counters and time in milliseconds to wait before detection of UAT is started. Default value: 500. This command is ignored when state is set to OFF.
- Return type:
- set_off(delay)ο
Disable UAT on the port.
- set_on(delay)ο
Enable UAT on the port.
- class P_USED_TPLDID[source]ο
Bases:
objectGet the used TPLD IDs from the port. If the port doesnβt support TPLD ID traffic, the port will return <NOTSUPPORTED>
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- used_tpld_idsο
integer list, the used TPLD IDs from the port.
- class P_XMITONE[source]ο
Bases:
objectTransmits a single packet from a port, independent of the stream definitions, and independent of whether traffic is on. A valid Frame Check Sum is written into the final four bytes.
- class P_XMITONETIME[source]ο
Bases:
objectThe time at which the latest packet was transmitted using the P_XMITONE command. The time reference is the same used by the time stamps of captured packets.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- nanosecondsο
long integer, the time at which packet was transmitted.
Impairment Port Specific Commandsο
- class P_EMULATE[source]ο
Bases:
objectThe action determines if emulation functionality is enabled or disabled
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- actionο
coded byte, specifying whether the emulate function is enabled.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- actionο
coded byte, specifying whether the emulate function is enabled.
- get()[source]ο
Get whether the Chimera portβs emulation functionality is enabled.
- Returns:
whether the Chimera portβs emulation functionality is enabled
- Return type:
- set(action)[source]ο
Set whether the Chimera portβs emulation functionality is enabled.
- Parameters:
action (OnOff) β whether the Chimera portβs emulation functionality is enabled
- set_off()ο
Disable the Chimera portβs emulation functionality.
- set_on()ο
Enable the Chimera portβs emulation functionality.
- class P_LOADMODE[source]ο
Bases:
objectThe action determines if config load mode is enabled or disabled for the Chimera port.
- class GetDataAttr[source]ο
Bases:
ResponseBodyStruct- on_offο
coded byte, specifying whether the config load function is enabled.
- class SetDataAttr[source]ο
Bases:
RequestBodyStruct- on_offο
coded byte, specifying whether the config load function is enabled.
- get()[source]ο
Get the status of config load mode of the Chimera port.
- Returns:
the status of config load mode on the Chimera port
- Return type:
- set(on_off)[source]ο
Set the status of config load mode of the Chimera port.
- Parameters:
on_off (OnOff) β whether config load is enabled on the Chimera port
- set_off()ο
Disable config load on the Chimera port.
- set_on()ο
Enable config load on the Chimera port.