Start Nm Listener
Starts Udp_nm listener over a bus.
Arguments Description
bus_name (str): name of Udp_nm bus
keep_cache (boolean, optional): True when you need to save the previous cache of received packets.
- silent_mode (boolean, optional): Flag to choose the listening mode. (Default to True)
When silent_mode = False, both the MTF-Pyapi and MTF-Core callbacks will work. Else When silent_mode = True, only the MTF-Core callback will be activated.
filter_struct (dict, optional): The Udp_Nm filter structure that should be of this format using python:
Returns
bool : True if listener is stopped; otherwise, False.
Example
# Create the UDP_NM filter:${source_ip}= Create List ${160} ${48} ${199} ${16}${destination_ip_1}= Create List ${160} ${48} ${249} ${1}${destination_ip_2}= Create List ${160} ${48} ${249} ${1}${destination_ips}= Create List ${destination_ip_1} ${destination_ip_2}${udp_nm_filter}= Create Dictionary filter_name=udp_nm ip_address_destination=${destination_ips} ip_address_source=${source_ip} port_destination=30491 port_source=34019 ${channel_id}=${24}# Start NM listenerStart Nm Listener ${bus_name} keep_cache=${True} silent_mode=${False} filter_struct=${udp_nm_filter}
Note
It is highly recommended to set the silent mode to True with high-network traffic.