CSIT-1459: Migrate IP libraries from VAT to PAPI
[csit.git] / tests / vpp / func / telemetry / eth2p-ethip6-ip6base-spanrx-func.robot
1 # Copyright (c) 2019 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 *** Settings ***
15 | Library | resources.libraries.python.IPUtil
16 | Library  | resources.libraries.python.IPv6Util
17 | Library  | resources.libraries.python.telemetry.SPAN
18 | Library  | resources.libraries.python.Trace
19 | ...
20 | Resource | resources/libraries/robot/shared/default.robot
21 | Resource | resources/libraries/robot/shared/testing_path.robot
22 | Resource | resources/libraries/robot/telemetry/span.robot
23 | ...
24 | Force Tags | HW_ENV | VM_ENV | 3_NODE_DOUBLE_LINK_TOPO
25 | ...
26 | Test Setup | Set up functional test
27 | ...
28 | Test Teardown | Tear down functional test
29 | ...
30 | Documentation | *SPAN test suite*
31 | ... | *[Top] Network Topologies:* TG=DUT1 2-node topology with two
32 | ... | links between nodes.
33 | ... | *[Cfg] DUT configuration:* DUT1 is configured with SPAN mirroring from
34 | ... | the first DUT1-TG interface to the second one.
35 | ... | *[Ver] TG verification:* Test ARP or ICMP packets are sent by TG
36 | ... | on first link to DUT1; On receipt through second link TG verifies
37 | ... | the copy of packet sent and the copy of DUT's reply packet.
38 | ... | *[Ref] Applicable standard specifications: None?*
39
40 *** Variables ***
41 | ${tg_to_dut_if1_ip6}= | 11::1
42 | ${dut_to_tg_if1_ip6}= | 10::1
43 | ${prefix}= | 24
44
45 *** Test Cases ***
46 | TC01: DUT mirrors IPv6 packets from one interface to another
47 | | [Documentation]
48 | | ... | [Top] TG=DUT1
49 | | ... | [Cfg] On DUT1 configure IPv6 address, add ARP entry for one TG \
50 | | ... | interface and set SPAN mirroring from one DUT interface to the other.
51 | | ... | [Ver] Make TG send an ICMP packet to DUT through one interface,\
52 | | ... | then receive a copy of sent packet and of DUT's ICMP reply\
53 | | ... | on the other interface.
54 | | Given Configure path in 2-node circular topology
55 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['TG']}
56 | | And Set interfaces in 2-node circular topology up
57 | | And VPP Interface Set IP Address
58 | | ... | ${dut_node} | ${dut_to_tg_if1} | ${dut_to_tg_if1_ip6} | ${prefix}
59 | | And VPP Add IP Neighbor | ${dut_node}
60 | | ... | ${dut_to_tg_if1} | ${tg_to_dut_if1_ip6} | ${tg_to_dut_if1_mac}
61 | | And Vpp Route Add | ${dut_node} | ${tg_to_dut_if1_ip6} | ${prefix}
62 | | ... | gateway=${dut_to_tg_if1_ip6} | interface=${dut_to_tg_if1}
63 | | And Vpp Ra Suppress Link Layer | ${dut_node} | ${dut_to_tg_if1}
64 | | And Set SPAN Mirroring | ${dut_node} | ${dut_to_tg_if1} | ${dut_to_tg_if2}
65 | | Then Send Packet And Check Received Copies
66 | | ... | ${tg_node} | ${tg_to_dut_if1} | ${tg_to_dut_if1_mac}
67 | | ... | ${dut_to_tg__if1_mac} | ${tg_to_dut_if2}
68 | | ... | ${tg_to_dut_if1_ip6} | ${dut_to_tg_if1_ip6} | ICMPv6