X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Frobot%2Fshared%2Ftraffic.robot;fp=resources%2Flibraries%2Frobot%2Fshared%2Ftraffic.robot;h=5d11618f625f07770b676d8850628a7f3d651062;hb=fba708653f0c3bdc01ffcd86a10e5aab379380a5;hp=b3e030986e3590a6674de9d8ad56999336058a45;hpb=f4604e91598ef6f914b7ce1ab57f7d44dc043460;p=csit.git diff --git a/resources/libraries/robot/shared/traffic.robot b/resources/libraries/robot/shared/traffic.robot index b3e030986e..5d11618f62 100644 --- a/resources/libraries/robot/shared/traffic.robot +++ b/resources/libraries/robot/shared/traffic.robot @@ -53,6 +53,8 @@ | | ... | - vlan_rx - VLAN (inner) tag on RX side (Optional). Type: integer | | ... | - vlan_outer_rx - .1AD VLAN (outer) tag on RX side (Optional). | | ... | Type: integer +| | ... | - traffic_script - Scapy Traffic script used for validation. +| | ... | Type: string | | ... | | ... | *Return:* | | ... | - No value returned @@ -68,6 +70,7 @@ | | ... | ${rx_dst_mac} | ${encaps_tx}=${EMPTY} | ${vlan_tx}=${EMPTY} | | ... | ${vlan_outer_tx}=${EMPTY} | ${encaps_rx}=${EMPTY} | | ... | ${vlan_rx}=${EMPTY} | ${vlan_outer_rx}=${EMPTY} +| | ... | ${traffic_script}=send_icmp_check_headers | | ... | | ${tx_port_name}= | Get interface name | ${tg_node} | ${tx_src_port} | | ${rx_port_name}= | Get interface name | ${tg_node} | ${rx_port} @@ -89,8 +92,7 @@ | | ${args}= | Run Keyword If | '${vlan_outer_rx}' == '${EMPTY}' | | | ... | Set Variable | ${args} | | ... | ELSE | Catenate | ${args} | --vlan_outer_rx ${vlan_outer_rx} -| | Run Traffic Script On Node | send_icmp_check_headers.py | ${tg_node} | -| | ... | ${args} +| | Run Traffic Script On Node | ${traffic_script}.py | ${tg_node} | ${args} | Packet transmission from port to port should fail | | [Documentation] | Sends packet from ip (with specified mac) to ip\ @@ -709,7 +711,6 @@ | | Run Traffic Script On Node | | ... | send_icmp_check_gre_headers.py | ${tg_node} | ${args} - | Send GRE and check received ICMPv4 header | | [Documentation] | Send IPv4 ICMPv4 packet encapsulated into GRE and \ | | ... | check IP, MAC headers on received packed.