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:
6 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 | Resource | resources/libraries/robot/interfaces.robot
16 | Library | resources.libraries.python.NodePath
17 | Library | resources.libraries.python.LispSetup.LispSetup
18 | Library | resources.libraries.python.LispUtil
22 | Lisp locator_set data is prepared
23 | | [Documentation] | Generate lisp locator_set data for test
24 | | ... | the lisp locator_set and locator API.
26 | | ... | *Arguments:*
27 | | ... | - ${dut_node} - DUT node. Type: dictionary
28 | | ... | - ${locator_set_number} - Number how many locator_set data
29 | | ... | will be generated. Type: integer
32 | | ... | - No value returned
34 | | ... | _NOTE:_ This KW sets following test case variables:
35 | | ... | - ${locator_set_values} - New generated locator_set data.
38 | | ... | \| Given Lisp locator_set data is prepared \| ${nodes['DUT1']} \
39 | | ... | \| ${locator_set_number} \|
41 | | [Arguments] | ${dut_node} | ${locator_set_number}
42 | | ${locator_set_values}= | Generate Lisp Locator Set Data |
43 | | ... | ${dut_node} | ${locator_set_number}
44 | | Set Test Variable | ${locator_set_values}
46 | Lisp locator_set data is set
47 | | [Documentation] | Set the lisp locator_set and locator on the VPP node.
49 | | ... | *Arguments:*
50 | | ... | - ${dut_node} - DUT node. Type: dictionary
53 | | ... | - No value returned
55 | | ... | _NOTE:_ This KW requires following test case variables:
56 | | ... | - ${locator_set_values} - Generated locator_set data from
57 | | ... | KW locator_set data is prepared,
58 | | ... | which will be set on the VPP node.
61 | | ... | \| When Lisp locator_set data is set \| ${nodes['DUT1']} \|
63 | | [Arguments] | ${dut_node}
64 | | Vpp Set Lisp Locator Set | ${dut_node} | ${locator_set_values}
66 | Lisp locator_set is set correct
67 | | [Documentation] | Test if the locator_set is set correct on the VPP node.
69 | | ... | *Arguments:*
70 | | ... | - ${dut_node} - DUT node. Type: dictionary
73 | | ... | - No value returned
75 | | ... | _NOTE:_ This KW requires following test case variables:
76 | | ... | - ${locator_set_values} - Generated locator_set data from
77 | | ... | KW locator_set data is prepared,
78 | | ... | which were set to VPP node.
81 | | ... | \| Then Lisp locator_set is set correct \| ${nodes['DUT1']} \|
83 | | [Arguments] | ${dut_node}
84 | | ${show_locator_set}= | Vpp Show Lisp Locator Set | ${dut_node}
85 | | Lisp Locator S Should Be Equal
86 | | ... | ${locator_set_values} | ${show_locator_set}
88 | Delete all lisp locator_set from VPP
89 | | [Documentation] | Delete all lisp locator_set on the VPP node.
91 | | ... | *Arguments:*
92 | | ... | - ${dut_node} - DUT node. Type: dictionary
95 | | ... | - No value returned
97 | | ... | _NOTE:_ This KW requires following test case variables:
98 | | ... | - ${locator_set_values} - Generated locator_set data from
99 | | ... | KW locator_set data is prepared,
100 | | ... | which was set on the VPP node.
103 | | ... | \| When Delete all lisp locator_set from VPP \
104 | | ... | \| ${nodes['DUT1']} \|
106 | | [Arguments] | ${dut_node}
107 | | Vpp Unset Lisp Locator Set | ${dut_node} | ${locator_set_values}
109 | Lisp locator_set should be unset
110 | | [Documentation] | Test if all locator_set are unset from VPP node.
112 | | ... | *Arguments:*
113 | | ... | - ${dut_node} - DUT node. Type: dictionary
116 | | ... | - No value returned
119 | | ... | \| Then Lisp locator_set should be unset \| ${nodes['DUT1']} \|
121 | | [Arguments] | ${dut_node}
122 | | ${show_locator_set}= | Vpp Show Lisp Locator Set | ${dut_node}
123 | | Lisp Is Empty | ${show_locator_set}
125 | Lisp locator_set data use for test reset locator_set are prepared
126 | | [Documentation] | Generate lisp special type of locator_set data.
127 | | ... | This data will be use for test reset locator_set.
129 | | ... | *Arguments:*
130 | | ... | - ${dut_node} - DUT node. Type: dictionary
131 | | ... | - ${locator_set_number} - Number how many locator_set data
132 | | ... | it will generate. Type: int
135 | | ... | - No value returned
137 | | ... | _NOTE:_ This KW sets following test case variables:
138 | | ... | - ${locator_set_values} - New generate locator_set data.
141 | | ... | \| Given Lisp locator_set data use for test reset locator_set \
142 | | ... | are prepared \| ${nodes['DUT1']} \| ${locator_set_number} \|
144 | | [Arguments] | ${dut_node} | ${locator_set_number}
145 | | ${locator_set_values}= | Generate Lisp Locator Set Reset Data |
146 | | ... | ${dut_node} | ${locator_set_number}
147 | | Set Test Variable | ${locator_set_values}
149 | Lisp eid address is prepared
150 | | [Documentation] | Generate lisp eid address for testing lisp eid API.
152 | | ... | *Arguments:*
153 | | ... | - ${dut_node} - DUT node. Type: dictionary
154 | | ... | - ${eid_ipv4_num} - Number of generate ipv4 address. Type: int
155 | | ... | - ${eid_ipv6_num} - Number of generate ipv6 address. Type: int
158 | | ... | - No value returned
160 | | ... | _NOTE:_ This KW sets following test case variables:
161 | | ... | - ${set_eid} - New generate eid data.
164 | | ... | \| Given Lisp eid address is prepared \| ${nodes['DUT1']} \
165 | | ... | \| ${eid_ipv4_num} \| ${eid_ipv6_num} \|
167 | | [Arguments] | ${dut_node} | ${eid_ipv4_num} | ${eid_ipv6_num}
168 | | ${set_eid} = | Generate Lisp Local Eid Data
169 | | ... | ${eid_ipv4_num} | ${eid_ipv6_num}
170 | | Set Test Variable | ${set_eid}
172 | Lisp eid address is set
173 | | [Documentation] | Set the lisp eid address on the VPP node.
175 | | ... | *Arguments:*
176 | | ... | - ${dut_node} - DUT node. Type: dictionary
179 | | ... | - No value returned
181 | | ... | _NOTE:_ This KW requires following test case variables:
182 | | ... | - ${set_eid} - Generated eid data which will be set to VPP.
185 | | ... | \| When Lisp eid address is set \| ${nodes['DUT1']} \|
187 | | [Arguments] | ${dut_node}
188 | | Vpp Set Lisp Eid Table | ${dut_node} | ${set_eid}
190 | Lisp eid address is set correct to eid table
191 | | [Documentation] | Test if the locator_set is set correct on the VPP node.
193 | | ... | *Arguments:*
194 | | ... | - ${dut_node} - DUT node. Type: dictionary
197 | | ... | - No value returned
199 | | ... | _NOTE:_ This KW requires following test case variables:
200 | | ... | - ${set_eid} - Generated eid data which will be set to the VPP node.
203 | | ... | \| Then Lisp eid address is set correct to eid table \
204 | | ... | \| ${nodes['DUT1']} \|
206 | | [Arguments] | ${dut_node}
207 | | ${show_eid}= | Vpp Show Lisp Local Eid Table | ${dut_node}
208 | | Lisp Should Be Equal | ${set_eid} | ${show_eid}
210 | Delete all lisp eid address from VPP
211 | | [Documentation] | Delete all lisp eid address from the VPP node.
213 | | ... | *Arguments:*
214 | | ... | - ${dut_node} - DUT node. Type: dictionary
217 | | ... | - No value returned
219 | | ... | _NOTE:_ This KW requires following test case variables:
220 | | ... | - ${set_eid} - Generated eid data which was set to the VPP node.
223 | | ... | \| When Delete all lisp eid address from VPP \
224 | | ... | \| ${nodes['DUT1']} \|
226 | | [Arguments] | ${dut_node}
227 | | Vpp Unset Lisp Eid Table | ${dut_node} | ${set_eid}
229 | Lisp eid table should be empty
230 | | [Documentation] | Test if the eid table is empty.
232 | | ... | *Arguments:*
233 | | ... | - ${dut_node} - DUT node. Type: dictionary
236 | | ... | - No value returned
239 | | ... | \| Then Lisp eid table should be empty \| ${nodes['DUT1']} \|
241 | | [Arguments] | ${dut_node}
242 | | ${show_eid}= | Vpp Show Lisp Local Eid Table | ${dut_node}
243 | | Lisp Is Empty | ${show_eid}
245 | Lisp map resolver address is prepared
246 | | [Documentation] | Generate map resolver address for testing
247 | | ... | lisp map resolver API.
249 | | ... | *Arguments:*
250 | | ... | - ${dut_node} - DUT node. Type: dictionary
251 | | ... | - ${map_resolver_ipv4_num} - Number of generate ipv4 address.
253 | | ... | - ${map_resolver_ipv6_num} - Number of generate ipv6 address.
257 | | ... | - No value returned
259 | | ... | _NOTE:_ This KW sets following test case variables:
260 | | ... | - ${set_map_resolver} - Generate map resolver data.
263 | | ... | \| Given Lisp map resolver address is prepared \
264 | | ... | \| ${nodes['DUT1']} \| ${map_resolver_ipv4_num} \
265 | | ... | \| ${map_resolver_ipv6_num} \|
267 | | [Arguments] | ${dut_node} | ${map_resolver_ipv4_num} | ${map_resolver_ipv6_num}
268 | | ${set_map_resolver} = | Generate Lisp Map Resolver Data
269 | | ... | ${map_resolver_ipv4_num} | ${map_resolver_ipv6_num}
270 | | Set Test Variable | ${set_map_resolver}
272 | Lisp map resolver address is set
273 | | [Documentation] | Set the lisp map resolver address in the VPP node.
275 | | ... | *Arguments:*
276 | | ... | - ${dut_node} - DUT node. Type: dictionary
279 | | ... | - No value returned
281 | | ... | _NOTE:_ This KW requires following test case variables:
282 | | ... | - ${set_map_resolver} - Map resolver data which will be set
283 | | ... | to the VPP node.
286 | | ... | \| When Lisp map resolver address is set \| ${nodes['DUT1']} \|
288 | | [Arguments] | ${dut_node}
289 | | Vpp Set Lisp Map Resolver | ${dut_node} | ${set_map_resolver}
291 | Lisp map resolver address is set correct
292 | | [Documentation] | Test if the map resolver address is set correct
293 | | ... | on the VPP node.
295 | | ... | *Arguments:*
296 | | ... | - ${dut_node} - DUT node. Type: dictionary
299 | | ... | - No value returned
301 | | ... | _NOTE:_ This KW requires following test case variables:
302 | | ... | - ${set_map_resolver} - Map resolver data which was set
303 | | ... | to the VPP node.
306 | | ... | \| Then Lisp map resolver address is set correct \
307 | | ... | \| ${nodes['DUT1']} \|
309 | | [Arguments] | ${dut_node}
310 | | ${show_map_resolver}= | Vpp Show Lisp Map Resolver | ${dut_node}
311 | | Lisp Should Be Equal | ${set_map_resolver} | ${show_map_resolver}
313 | Delete all lisp map resolver address from VPP
314 | | [Documentation] | Delete all lisp map resolver address on the VPP node.
316 | | ... | *Arguments:*
317 | | ... | - ${dut_node} - DUT node. Type: dictionary
320 | | ... | - No value returned
322 | | ... | _NOTE:_ This KW requires following test case variables:
323 | | ... | - ${set_map_resolver} - Map resolver data which was set
324 | | ... | to the VPP node.
327 | | ... | \| When Delete all lisp map resolver address from VPP \
328 | | ... | \| ${nodes['DUT1']} \|
330 | | [Arguments] | ${dut_node}
331 | | Vpp Unset Lisp Map Resolver | ${dut_node} | ${set_map_resolver}
333 | Lip map resolver address should be empty
334 | | [Documentation] | Test if the map resolver are empty.
336 | | ... | *Arguments:*
337 | | ... | - ${dut_node} - DUT node. Type: dictionary
340 | | ... | - No value returned
343 | | ... | \| Then Lip map resolver address should be empty \
344 | | ... | \| ${nodes['DUT1']} \|
346 | | [Arguments] | ${dut_node}
347 | | ${show_map_resolver}= | Vpp Show Lisp Map Resolver | ${dut_node}
348 | | Lisp Is Empty | ${show_map_resolver}