X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Frobot%2Ftraffic.robot;h=eb7dd7c6e100c891cdeefe957c8d77d47d55dd1f;hp=7dba5efbe3ea14fc79df35ecdf230e8ee16a5e8c;hb=8be64446049878a0fb4a91a3a8b0481e75b20205;hpb=559a2b904cf95e4a5a82726d8b3791e57e7a9f9c diff --git a/resources/libraries/robot/traffic.robot b/resources/libraries/robot/traffic.robot index 7dba5efbe3..eb7dd7c6e1 100644 --- a/resources/libraries/robot/traffic.robot +++ b/resources/libraries/robot/traffic.robot @@ -239,3 +239,26 @@ | | 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}