InputFilterToMtfWrapper

class mtf.utils.eth_filters.get_mtf_filter.InputFilterToMtfWrapper

Get the corresponding mtf filter class name, create an instance from it and update its attribute’s values.

static create_filter_instance(name: str) mtf_eth_filter

Returns the corresponding mtf filter class instance using the imported class above from mtf_binder. The possible mtf filter classes are:

mtf_eth_basic_filter, mtf_ipv4_layer_filter, mtf_tecmp_msg_type, mtf_tecmp_data_type, mtf_data_link_layer_filter, mtf_vlan_filter, mtf_net_layer_filter, mtf_eth_filter_vlan_type, mtf_eth_protocol_type, mtf_eth_tp_layer_filter, mtf_udp_layer_filter, mtf_tcp_layer_filter, mtf_eth_app_layer_filter, mtf_someip_filter, mtf_someipsd_filter, mtf_eth_npdu_filter, mtf_tecmp_filter

Return:

mtf class instance

static set_filter_attributes(mtf_filter_instance: mtf_eth_filter, map_attributes_values: dict)

Set the filter attribute values Note: The network layer is a special case; it could be UDP or TCP

static create_multifilter(attributes) mtf_eth_filter