Fix VPP sends ARP requests for unknown destinations TC destination MAC address
[csit.git] / resources / libraries / robot / traffic.robot
index 7dba5ef..29635c0 100644 (file)
 | | ... | ${tg_node} | ${args}
 
 | Send Packet And Check ARP Request
-| | [Documentation] | Send IP packet from tx_port and check if ARP Request
+| | [Documentation] | Send IP packet from tx_port and check if ARP Request\
 | | ...             | packet is received on rx_port.
 | | ...
 | | ... | *Arguments:*
 | | ...
 | | ... | \| Send Packet And Check ARP Packet \| ${nodes['TG']} \| 16.0.0.1 \
 | | ... | \| 32.0.0.1 \| eth2 \| 08:00:27:cc:4f:54 \
-| | ... | \| eth4 \| 08:00:27:5b:49:dd \| 08:00:27:54:71:02 \|
+| | ... | \| eth4 \| 08:00:27:5b:49:dd \| 192.168.2.1 \| 192.168.2.2 \|
 | | ...
 | | [Arguments] | ${tg_node} | ${tx_src_ip} | ${tx_dst_ip} | ${tx_port}
-| | ... | ${tx_dst_mac} | ${rx_port} | ${rx_dst_mac} | ${rx_arp_src_ip}
+| | ... | ${tx_dst_mac} | ${rx_port} | ${rx_src_mac} | ${rx_arp_src_ip}
 | | ... | ${rx_arp_dst_ip}
 | | ${args}= | Catenate
-| | ... | --tx_dst_mac | ${tx_dst_mac} | --rx_dst_mac | ${rx_dst_mac}
+| | ... | --tx_dst_mac | ${tx_dst_mac} | --rx_src_mac | ${rx_src_mac}
 | | ... | --tx_src_ip | ${tx_src_ip} | --tx_dst_ip | ${tx_dst_ip}
 | | ... | --tx_if | ${tx_port} | --rx_if | ${rx_port}
 | | ... | --rx_arp_src_ip ${rx_arp_src_ip} | --rx_arp_dst_ip ${rx_arp_dst_ip}
 | | Run Keyword And Expect Error | TCP/UDP Rx timeout
 | | ... | Run Traffic Script On Node | send_tcp_udp.py
 | | ... | ${tg_node} | ${args}
+
+| Receive And Check Router Advertisement Packet
+| | [Documentation] | Wait until RA packet is received and then check
+| | ...             | specific packet fields whether they are correct.
+| | ...
+| | ... | *Arguments:*
+| | ...
+| | ... | - node - Node where to check for RA packet. Type: dictionary
+| | ... | - rx_port - Interface where the packet is received. Type: string
+| | ... | - src_mac - MAC address of source interface from which the link-local
+| | ... |             IPv6 address is constructed and checked. Type: string
+| | ...
+| | ... | *Return:*
+| | ... | - No value returned
+| | ...
+| | ... | *Example:*
+| | ...
+| | ... | \| Receive And Check Router Advertisement Packet \
+| | ... | \| ${nodes['DUT1']} \| eth2 \| 08:00:27:cc:4f:54 \|
+| | ...
+| | [Arguments] | ${node} | ${rx_port} | ${src_mac}
+| | ${args}= | Catenate | --rx_if | ${rx_port} | --src_mac | ${src_mac}
+| | Run Traffic Script On Node | check_ra_packet.py | ${node} | ${args}