aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/robot
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2019-08-09 12:57:00 +0000
committerPeter Mikus <pmikus@cisco.com>2019-10-16 08:26:42 +0000
commitfba708653f0c3bdc01ffcd86a10e5aab379380a5 (patch)
treec8f99d33c65d86af66b0ef8177c9d34124ae6c26 /resources/libraries/robot
parentf4604e91598ef6f914b7ce1ab57f7d44dc043460 (diff)
VPPD: GBP test case
Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: I020cdb6ced70a9c22773dfbe1662aecd2b744d2d
Diffstat (limited to 'resources/libraries/robot')
-rw-r--r--resources/libraries/robot/shared/traffic.robot7
1 files changed, 4 insertions, 3 deletions
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.