c393493fa210f2229c12b5ca9c4a014860e35d19
[csit.git] / resources / libraries / robot / lisp / l2lisp.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-gpe encapsulation suite keywords
16 | Library | resources.libraries.python.topology.Topology
17 | Resource | resources/libraries/robot/lisp/lisp_api.robot
18 | Library  | resources.libraries.python.LispSetup.LispLocatorSet
19 | Library  | resources.libraries.python.LispSetup.LispLocator
20 | Library  | resources.libraries.python.LispSetup.LispLocalEid
21 | Library  | resources.libraries.python.LispSetup.LispAdjacency
22 | Library  | resources.libraries.python.LispSetup.LispRemoteMapping
23 | Library  | resources.libraries.python.LispSetup.LispMapResolver
24 | Library  | resources.libraries.python.LispSetup.LispEidTableMap
25
26 *** Keywords ***
27 | Set up L2 Lisp on DUT
28 | | [Documentation] | Set up LISP L2 topology.
29 | | ...
30 | | ... | *Arguments:*
31 | | ... | - dut_node - DUT node. Type: dictionary
32 | | ... | - adjacency - DUT static adjacency settings. Type: dict
33 | | ... | - settings - DUT other LISP related settings. Type: dict
34 | | ...
35 | | ... | *Return:*
36 | | ... | - No value returned
37 | | ...
38 | | ... | *Example:*
39 | | ... | \| Set up LISP GPE topology \| ${dut_node} \| ${adjacency} \
40 | | ... | \| ${settings} \|
41 | | ...
42 | | [Arguments]
43 | | ... | ${dut_node} | ${adjacency} | ${settings}
44 | | ...
45 | | ${int_idx}= | Get Interface Sw Index | ${dut_node} | ${${adjacency['int']}}
46 | | Enable Lisp | ${dut_node}
47 | | Vpp Add Lisp Locator Set | ${dut_node}
48 | | ... | ${settings['locator_name']}
49 | | Vpp Add Lisp Locator | ${dut_node}
50 | | ... | ${settings['locator_name']}
51 | | ... | ${int_idx}
52 | | ... | ${settings['priority']}
53 | | ... | ${settings['weight']}
54 | | Vpp Lisp Eid Table Mapping | ${dut_node}
55 | | ... | ${settings['vni']}
56 | | ... | bd_id=${settings['bd']}
57 | | Vpp Add Lisp Local Eid | ${dut_node}
58 | | ... | ${settings['locator_name']}
59 | | ... | ${settings['vni']}
60 | | ... | ${adjacency['seid']}
61 | | Vpp Add Map Resolver | ${dut_node}
62 | | ... | ${adjacency['map_res']}
63 | | Vpp Add Lisp Remote Mapping | ${dut_node}
64 | | ... | ${settings['vni']}
65 | | ... | ${adjacency['eid']}
66 | | ... | 0
67 | | ... | ${adjacency['seid']}
68 | | ... | 0
69 | | ... | ${adjacency['rloc']}
70 | | ... | is_mac=${TRUE}
71 | | Vpp Add Lisp Adjacency | ${dut_node}
72 | | ... | ${settings['vni']}
73 | | ... | ${adjacency['eid']}
74 | | ... | 0
75 | | ... | ${adjacency['seid']}
76 | | ... | 0
77 | | ... | is_mac=${TRUE}