4502c3cb495de82374a356b2ea38e41d7e9e661e
[csit.git] / resources / test_data / lisp / api / 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 it is set correctly.
24 eid_table = [{'eid': '192.168.0.1',
25               'vni': 0,
26               'eid-prefix-len': 24,
27               'locator-set': 'ls1'},
28              {'eid': '192.168.1.1',
29               'vni': 0,
30               'eid-prefix-len': 24,
31               'locator-set': 'ls1'},
32              {'eid': '192.168.2.1',
33               'vni': 0,
34               'eid-prefix-len': 24,
35               'locator-set': 'ls1'},
36              {'eid': '192.168.3.1',
37               'vni': 0,
38               'eid-prefix-len': 24,
39               'locator-set': 'ls1'},
40              {'eid': '10:1::1',
41               'vni': 0,
42               'eid-prefix-len': 32,
43               'locator-set': 'ls1'},
44              {'eid': '10:2::1',
45               'vni': 0,
46               'eid-prefix-len': 32,
47               'locator-set': 'ls1'},
48              {'eid': '10:3::1',
49               'vni': 0,
50               'eid-prefix-len': 32,
51               'locator-set': 'ls1'}]
52
53 # Example lisp map resolvers data we want set to VPP
54 # and then check if it is set correctly.
55 map_resolver = [{'map resolver': '192.169.0.1'},
56                 {'map resolver': '192.169.1.1'},
57                 {'map resolver': '192.169.2.1'},
58                 {'map resolver': '12:1::1'},
59                 {'map resolver': '12:2::1'}]