Deal with some "pylint: disable=" comments
[csit.git] / resources / libraries / robot / overlay / lispgpe.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 | Documentation | LISP-gpe encapsulation suite keywords
16 | Library | resources.libraries.python.topology.Topology
17 | Resource | resources/libraries/robot/overlay/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.LispEidTableMap
24
25 *** Keywords ***
26 | Configure LISP GPE topology in 3-node circular topology
27 | | [Documentation] | Configure LISP GPE topology in 3-node circular topology.
28 | |
29 | | ... | *Arguments:*
30 | | ... | - dut1_node - DUT1 node. Type: dictionary
31 | | ... | - dut1_if - DUT1 node interface. Type: string
32 | | ... | - dut1_int_index - DUT1 node interface index. Type: integer
33 | | ... | - dut2_node - DUT2 node. Type: dictionary
34 | | ... | - dut2_if - DUT2 node interface. Type: string
35 | | ... | - dut2_int_index - DUT2 node interface index. Type: integer
36 | | ... | - locator_set - Locator set values. Type: dictionary
37 | | ... | - dut1_eid - DUT1 node eid address. Type: dictionary
38 | | ... | - dut2_eid - DUT2 node eid address. Type: dictionary
39 | | ... | - dut1_static_adjacency - DUT1 static adjacency. Type: dictionary
40 | | ... | - dut2_static_adjacency - DUT2 static adjacency. Type: dictionary
41 | |
42 | | ... | *Return:*
43 | | ... | - No value returned
44 | |
45 | | ... | *Example:*
46 | | ... | \| Configure LISP GPE topology in 3-node circular topology \| ${dut1_node} \| ${interface_name} \
47 | | ... | \| None \| ${dut2_node} \| ${interface_name} \| None \
48 | | ... | \| ${locator_set} \| ${dut1_eid} \| ${dut2_eid} \
49 | | ... | \| ${dut1_static_adjacency} \| ${dut2_static_adjacency} \|
50 | |
51 | | [Arguments]
52 | | ... | ${dut1_node} | ${dut1_if} | ${dut1_int_index}
53 | | ... | ${dut2_node} | ${dut2_if} | ${dut2_int_index}
54 | | ... | ${locator_set} | ${dut1_eid} | ${dut2_eid}
55 | | ... | ${dut1_static_adjacency} | ${dut2_static_adjacency}
56 | | ... | ${vni_table}=0 | ${vrf_table}=0
57 | |
58 # DUT1 settings:
59 | | ${dut1_int_index}= | Run Keyword If | ${dut1_int_index} is None
60 | | | ... | Get Interface Sw Index | ${dut1_node} | ${dut1_if}
61 | | | ... | ELSE | Set Variable | ${dut1_int_index}
62 | | Enable Lisp | ${dut1_node}
63 | | Enable Lisp GPE | ${dut1_node}
64 | | Vpp Add Lisp Locator Set | ${dut1_node}
65 | | ... | ${locator_set['locator_name']}
66 | | Vpp Add Lisp Locator | ${dut1_node}
67 | | ... | ${locator_set['locator_name']}
68 | | ... | ${dut1_int_index}
69 | | ... | ${locator_set['priority']}
70 | | ... | ${locator_set['weight']}
71 | | Vpp Lisp Eid Table Mapping | ${dut1_node}
72 | | ... | ${vni_table}
73 | | ... | vrf=${vrf_table}
74 | | Vpp Add Lisp Local Eid | ${dut1_node}
75 | | ... | ${dut1_eid['locator_name']}
76 | | ... | ${vni_table}
77 | | ... | ${dut1_eid['eid']}
78 | | ... | ${dut1_eid['prefix']}
79 | | Vpp Add Lisp Remote Mapping | ${dut1_node}
80 | | ... | ${vni_table}
81 | | ... | ${dut1_static_adjacency['deid']}
82 | | ... | ${dut1_static_adjacency['prefix']}
83 | | ... | ${dut1_static_adjacency['seid']}
84 | | ... | ${dut1_static_adjacency['prefix']}
85 | | ... | ${dut1_static_adjacency['rloc']}
86 | | Vpp Add Lisp Adjacency | ${dut1_node}
87 | | ... | ${vni_table}
88 | | ... | ${dut1_static_adjacency['deid']}
89 | | ... | ${dut1_static_adjacency['prefix']}
90 | | ... | ${dut1_static_adjacency['seid']}
91 | | ... | ${dut1_static_adjacency['prefix']}
92 | |
93 # DUT2 settings:
94 | | ${dut2_int_index}= | Run Keyword If | ${dut2_int_index} is None
95 | | | ... | Get Interface Sw Index | ${dut2_node} | ${dut2_if}
96 | | | ... | ELSE | Set Variable | ${dut2_int_index}
97 | | Enable Lisp | ${dut2_node}
98 | | Enable Lisp GPE | ${dut2_node}
99 | | Vpp Add Lisp Locator Set | ${dut2_node}
100 | | ... | ${locator_set['locator_name']}
101 | | Vpp Add Lisp Locator | ${dut2_node}
102 | | ... | ${locator_set['locator_name']}
103 | | ... | ${dut2_int_index}
104 | | ... | ${locator_set['priority']}
105 | | ... | ${locator_set['weight']}
106 | | Vpp Lisp Eid Table Mapping | ${dut2_node}
107 | | ... | ${vni_table}
108 | | ... | vrf=${vrf_table}
109 | | Vpp Add Lisp Local Eid | ${dut2_node}
110 | | ... | ${dut2_eid['locator_name']}
111 | | ... | ${vni_table}
112 | | ... | ${dut2_eid['eid']}
113 | | ... | ${dut2_eid['prefix']}
114 | | Vpp Add Lisp Remote Mapping | ${dut2_node}
115 | | ... | ${vni_table}
116 | | ... | ${dut2_static_adjacency['deid']}
117 | | ... | ${dut2_static_adjacency['prefix']}
118 | | ... | ${dut2_static_adjacency['seid']}
119 | | ... | ${dut2_static_adjacency['prefix']}
120 | | ... | ${dut2_static_adjacency['rloc']}
121 | | Vpp Add Lisp Adjacency | ${dut2_node}
122 | | ... | ${vni_table}
123 | | ... | ${dut2_static_adjacency['deid']}
124 | | ... | ${dut2_static_adjacency['prefix']}
125 | | ... | ${dut2_static_adjacency['seid']}
126 | | ... | ${dut2_static_adjacency['prefix']}