Lisp enable/disable test
[csit.git] / tests / suites / lisp / resources / lisp_api_resources.py
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 """Test variables for Lisp API test suite."""
15
16 """Lisp status example test data."""
17 lisp_status = [[{"gpe_status":"disabled",
18                  "feature_status":"disabled"}],
19                [{"gpe_status":"enabled",
20                  "feature_status":"enabled"}]]
21
22 """Example lisp local eid we want set to VPP
23 and then check if is set correct."""
24 eid_table = [{'eid address': '192.168.0.1',
25               'eid prefix len': 24,
26               'locator-set': 'ls1'},
27              {'eid address': '192.168.1.1',
28               'eid prefix len': 24,
29               'locator-set': 'ls1'},
30              {'eid address': '192.168.2.1',
31               'eid prefix len': 24,
32               'locator-set': 'ls1'},
33              {'eid address': '192.168.3.1',
34               'eid prefix len': 24,
35               'locator-set': 'ls1'},
36              {'eid address': '10:1::1',
37               'eid prefix len': 32,
38               'locator-set': 'ls1'},
39              {'eid address': '10:2::1',
40               'eid prefix len': 32,
41               'locator-set': 'ls1'},
42              {'eid address': '10:3::1',
43               'eid prefix len': 32,
44               'locator-set': 'ls1'}]
45
46 """Example lisp map resolvers data we want set to VPP
47 and then check if is set correct."""
48 map_resolver = [{'map resolver': '192.169.0.1'},
49                 {'map resolver': '192.169.1.1'},
50                 {'map resolver': '192.169.2.1'},
51                 {'map resolver': '12:1::1'},
52                 {'map resolver': '12:2::1'}]