4539f8208d88381417f5c948b3c720231ac51f3a
[csit.git] / resources / test_data / lisp / lisp.py
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 """Test variables of lisp and lispgpe (ip4/ip6) encapsulation test suite."""
15
16 # Lisp default global value
17 locator_name = 'tst_locator'
18
19 # Test configuration data
20 tg_if1_ip4= '6.0.0.2'
21 tg_if2_ip4= '6.0.1.2'
22 dut_if1_ip4= '6.0.0.1'
23 dut_if2_ip4= '6.0.1.1'
24 tg_if2_ip6= '6:0:1::2'
25 dut_if2_ip6= '6:0:1::1'
26 ip4_plen= 24
27 src_ip4= '6.0.0.2'
28 dst_ip4= '6.0.2.2'
29 src_rloc4= dut_if2_ip4
30 dst_rloc4= tg_if2_ip4
31 src_rloc6= dut_if2_ip6
32 dst_rloc6= tg_if2_ip6
33
34 #IP6 over IP4 LISP configuration data
35 tg_if1_ip6= '6::2'
36 dut_if1_ip6= '6:0:0::1'
37 src_ip6= '6::2'
38 dst_ip6= '6:0:2::2'
39 ip6_plen=64
40
41 # Lisp default locator_set value
42 duts_locator_set = {'locator_name': locator_name,
43                     'priority': 1,
44                     'weight': 1}
45
46 # IPv4 Lisp static mapping configuration
47
48 dut1_to_tg_ip4_static_adjacency = {'vni': 0,
49                                    'deid': '6.0.2.0',
50                                    'seid': '6.0.0.0',
51                                    'rloc': '6.0.1.2',
52                                    'prefix': 24}
53
54 dut1_ip4_eid = {'locator_name': locator_name,
55                 'vni': 0,
56                 'eid': '6.0.0.0',
57                 'prefix': 24}
58
59 # IPv6 Lisp static mapping configuration
60
61 dut1_to_tg_ip6_static_adjacency = {'vni': 0,
62                                    'deid': '6:0:2::0',
63                                    'seid': '6:0:0::0',
64                                    'rloc': '6:0:1::2',
65                                    'prefix': 64}
66
67 dut1_ip6_eid = {'locator_name': locator_name,
68                 'vni': 0,
69                 'eid': '6:0:0::0',
70                 'prefix': 64}
71
72
73 #IPv6 over IPv4 LISP mapping
74 dut1_ip6o4_static_adjacency = {'vni': 0,
75                                'deid': '6:0:2::0',
76                                'seid': '6:0:0::0',
77                                'rloc': '6.0.1.2',
78                                'prefix': 64}
79 dut1_ip6o4_eid = {'locator_name': locator_name,
80                   'vni': 0,
81                   'eid': '6:0:0::0',
82                   'prefix': 64}
83
84 #IPv4 over IPv6 LISP mapping
85 dut1_ip4o6_static_adjacency = {'vni': 0,
86                                'deid': '6.0.2.0',
87                                'seid': '6.0.0.0',
88                                'rloc': '6:0:1::2',
89                                'prefix': 24}
90 dut1_ip4o6_eid = {'locator_name': locator_name,
91                   'vni': 0,
92                   'eid': '6.0.0.0',
93                   'prefix': 24}