forty_g_xg_core

Overview

configures the 40g version of the udp core (used by default on both TPMs)

Python Class & Methods Index

class pyfabil.plugins.tpm.forty_g_xg_core.TpmFortyGCoreXg(board, **kwargs)[source]

TpmFortyGCoreXg plugin

check_errors()[source]
check_linkup_loss_cnt(show_result=True)[source]
clean_up()[source]

Perform cleanup :return: Success

get_arp_table_status(idx, silent_mode=True)[source]
get_bip_error_count()[source]
get_crc_error_count()[source]
get_decode_error_count()[source]
get_dst_ip(slot=0)[source]

Get destination ip :param slot: entry in the tx config table

get_dst_mac()[source]

Get destination MAC address

get_dst_port(slot=0)[source]

Set source IP address :param port: Port :param slot: entry in the core tx config table

get_gateway_ip()[source]

Get gateway :return gateway

get_netmask()[source]

Set netmask :return Netmask

get_number_of_arp_table_entries()[source]
get_packet_counter()[source]
get_src_ip()[source]

Get source IP address

get_src_mac()[source]

Get source MAC address

get_src_port(slot=0)[source]

Get source IP address :param port: Port :param slot: entry in the tx config table

initialise()[source]

Initialise TpmFortyGCoreXg

initialise_core()[source]

Initialise 40G core

is_tx_disabled()[source]
renew_arp_table()[source]

Renew ARP table. This will be called after netmask or gateway are written to the registers, if there are entries that forward packets to the gateway,

reset_core(timeout=10)[source]
reset_errors()[source]
set_dst_ip(ip, slot=0)[source]

Set source IP address :param ip: IP address :param slot: entry in the tx config table

set_dst_mac(mac)[source]

Set destination MAC address :param mac: MAC address

set_dst_port(port, slot=0)[source]

Set source IP address :param port: Port :param slot: entry in the core tx config table

set_gateway_ip(gateway=0)[source]

Set gateway :param gateway: Gateway

set_netmask(netmask=4278190080)[source]

Set netmask :param netmask: Netmask

set_rx_port_filter(port, slot)[source]
set_src_ip(ip)[source]

Set source IP address :param ip: IP address

set_src_mac(mac)[source]

Set source MAC address :param mac: MAC address

set_src_port(port, slot=0)[source]

Set source IP address :param port: Port :param slot: entry in the tx config table

status_check()[source]

Perform status check :return: Status

test_check_result()[source]
test_start_rx(single_packet_mode=False)[source]
test_start_tx(dst_ip=None, ipg=4, packet_len=8192)[source]
test_stop()[source]
tx_disable()[source]