CSIT-23 Add ARP request test.
[csit.git] / tests / suites / lisp / lisp_untagged.robot
1 # Copyright (c) 2016 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 | Documentation | LISP API test.
16 | Library | resources.libraries.python.topology.Topology
17 | Library | resources.libraries.python.NodePath
18 | Library | resources.libraries.python.Trace
19 | Library | resources.libraries.python.LispUtil
20 | Resource | resources/libraries/robot/default.robot
21 | Resource | resources/libraries/robot/interfaces.robot
22 | Resource | resources/libraries/robot/lisp.robot
23 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | 3_NODE_DOUBLE_LINK_TOPO
24 | ... | VM_ENV | HW_ENV
25
26 *** Variables ***
27 | ${locator_set_num}= | 3
28 | ${eid_ipv4_num}= | 4
29 | ${eid_ipv6_num}= | 3
30 | ${map_resolver_ipv4_num}= | 3
31 | ${map_resolver_ipv6_num}= | 2
32
33 *** Test Cases ***
34
35 | VPP can add and delete locator_set
36 | | [Documentation] | Test lisp locator_set API
37 | | ...             | Set locator_set and locator on the VPP node,
38 | | ...             | check the configured data and then remove it.
39 | | ...             | Check if all locator_set and locators was unset
40 | | ...             | from the VPP node.
41 | | ...
42 | | Given Lisp locator_set data is prepared
43 | | ... | ${nodes['DUT1']} | ${locator_set_num}
44 | | When Lisp locator_set data is set | ${nodes['DUT1']}
45 | | Then Lisp locator_set is set correct | ${nodes['DUT1']}
46 | | When Delete all lisp locator_set from VPP | ${nodes['DUT1']}
47 | | Then Lisp locator_set should be unset | ${nodes['DUT1']}
48
49 | VPP can add, reset and delete locator_set
50 | | [Documentation] | Test lisp locator_set API
51 | | ...             | Set locator_set and locator on the VPP node,
52 | | ...             | then reset locator_set and set it again.
53 | | ...             | Check the configured data and then remove it.
54 | | ...             | Check if all locator_set and locators was unset
55 | | ...             | from the VPP node.
56 | | ...
57 | | Given Lisp locator_set data use for test reset locator_set are prepared
58 | | ... | ${nodes['DUT1']} | ${locator_set_num}
59 | | When Lisp locator_set data is set | ${nodes['DUT1']}
60 | | Then Lisp locator_set is set correct | ${nodes['DUT1']}
61 | | When Delete all lisp locator_set from VPP | ${nodes['DUT1']}
62 | | Then Lisp locator_set should be unset | ${nodes['DUT1']}
63
64 | Vpp can add and delete eid address
65 | | [Documentation] | Test lisp eid API
66 | | ...             | Set lisp eid IP address on the VPP node,
67 | | ...             | check the configured data and then remove it.
68 | | ...             | Check if all eid IP address was unset
69 | | ...             | from the VPP node.
70 | | ...
71 | | Given Lisp eid address is prepared
72 | | ... | ${nodes['DUT1']} | ${eid_ipv4_num} | ${eid_ipv6_num}
73 | | When Lisp eid address is set | ${nodes['DUT1']}
74 | | Then Lisp eid address is set correct to eid table | ${nodes['DUT1']}
75 | | When Delete all lisp eid address from VPP | ${nodes['DUT1']}
76 | | Then Lisp eid table should be empty | ${nodes['DUT1']}
77
78 | Vpp can add and delete lisp map resolver address
79 | | [Documentation] | Test lisp map resolver address API
80 | | ...             | Set lisp map resolver address on the VPP node,
81 | | ...             | check the configured data and then remove it.
82 | | ...             | Check if all map resolver address was unset
83 | | ...             | from the VPP node.
84 | | ...
85 | | Given Lisp map resolver address is prepared | ${nodes['DUT1']}
86 | | ... | ${map_resolver_ipv4_num} | ${map_resolver_ipv6_num}
87 | | When Lisp map resolver address is set | ${nodes['DUT1']}
88 | | Then Lisp map resolver address is set correct | ${nodes['DUT1']}
89 | | When Delete all lisp map resolver address from VPP | ${nodes['DUT1']}
90 | | Then Lip map resolver address should be empty | ${nodes['DUT1']}