CSIT-125: Add test for lisp remote static mapping
[csit.git] / tests / suites / lisp / resources / lisp_static_mapping.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 remote static mapping test suite."""
15
16 #Lisp default global value
17 locator_name = 'ls1'
18
19 #Lisp default locator_set value
20 duts_locator_set = {'locator_name': locator_name,
21                     'priority': 1,
22                     'weight': 1}
23
24 # IPv4 Lisp static mapping configuration
25 dut1_to_dut2_ip4 = '6.0.3.1'
26 dut2_to_dut1_ip4 = '6.0.3.2'
27 dut1_to_tg_ip4 = '6.0.1.1'
28 dut2_to_tg_ip4 = '6.0.2.1'
29 tg1_ip4 = '6.0.1.2'
30 tg2_ip4 = '6.0.2.2'
31 prefix4 = 24
32 dut1_ip4_static_mapping = {'vni': 0,
33                            'deid': '6.0.2.0',
34                            'seid': '6.0.1.0',
35                            'rloc': '6.0.3.2',
36                            'prefix': 24}
37 dut2_ip4_static_mapping = {'vni': 0,
38                            'deid': '6.0.1.0',
39                            'seid': '6.0.2.0',
40                            'rloc': '6.0.3.1',
41                            'prefix': 24}
42 dut1_ip4_eid = {'locator_name': locator_name,
43                 'eid': '6.0.1.0',
44                 'prefix': 24}
45 dut2_ip4_eid = {'locator_name': locator_name,
46                 'eid': '6.0.2.0',
47                 'prefix': 24}
48
49 # IPv6 Lisp static mapping configuration
50 dut1_to_dut2_ip6 = '6:0:3::1'
51 dut2_to_dut1_ip6 = '6:0:3::2'
52 dut1_to_tg_ip6 = '6:0:1::1'
53 dut2_to_tg_ip6 = '6:0:2::1'
54 tg1_ip6 = '6:0:1::2'
55 tg2_ip6 = '6:0:2::2'
56 prefix6 = 64
57 dut1_ip6_static_mapping = {'vni': 0,
58                            'deid': '6:0:2::0',
59                            'seid': '6:0:1::0',
60                            'rloc': '6:0:3::2',
61                            'prefix': 64}
62 dut2_ip6_static_mapping = {'vni': 0,
63                            'deid': '6:0:1::0',
64                            'seid': '6:0:2::0',
65                            'rloc': '6:0:3::1',
66                            'prefix': 64}
67 dut1_ip6_eid = {'locator_name': locator_name,
68                 'eid': '6:0:1::0',
69                 'prefix': 64}
70 dut2_ip6_eid = {'locator_name': locator_name,
71                 'eid': '6:0:2::0',
72                 'prefix': 64}
73
74 # IPv4 over IPv6 Lisp static mapping configuration
75 dut1_to_dut2_ip4o6 = '6:0:3::1'
76 dut2_to_dut1_ip4o6 = '6:0:3::2'
77 dut1_to_tg_ip4o6 = '6.0.1.1'
78 dut2_to_tg_ip4o6 = '6.0.2.1'
79 tg1_ip4o6 = '6.0.1.2'
80 tg2_ip4o6 = '6.0.2.2'
81 tg_prefix4o6 = 24
82 dut_prefix4o6 = 64
83 dut1_ip4o6_static_mapping = {'vni': 0,
84                              'deid': '6.0.2.0',
85                              'seid': '6.0.1.0',
86                              'rloc': '6:0:3::2',
87                              'prefix': 24}
88 dut2_ip4o6_static_mapping = {'vni': 0,
89                              'deid': '6.0.1.0',
90                              'seid': '6.0.2.0',
91                              'rloc': '6:0:3::1',
92                              'prefix': 24}
93 dut1_ip4o6_eid = {'locator_name': locator_name,
94                   'eid': '6.0.1.0',
95                   'prefix': 24}
96 dut2_ip4o6_eid = {'locator_name': locator_name,
97                   'eid': '6.0.2.0',
98                   'prefix': 24}
99
100 # IPv6 over IPv4 Lisp static mapping configuration
101 dut1_to_dut2_ip6o4 = '6.0.3.1'
102 dut2_to_dut1_ip6o4 = '6.0.3.2'
103 dut1_to_tg_ip6o4 = '6:0:1::1'
104 dut2_to_tg_ip6o4 = '6:0:2::1'
105 tg1_ip6o4 = '6:0:1::2'
106 tg2_ip6o4 = '6:0:2::2'
107 tg_prefix6o4 = 64
108 dut_prefix6o4 = 24
109 dut1_ip6o4_static_mapping = {'vni': 0,
110                              'deid': '6:0:2::0',
111                              'seid': '6:0:1::0',
112                              'rloc': '6.0.3.2',
113                              'prefix': 64}
114 dut2_ip6o4_static_mapping = {'vni': 0,
115                              'deid': '6:0:1::0',
116                              'seid': '6:0:2::0',
117                              'rloc': '6.0.3.1',
118                              'prefix': 64}
119 dut1_ip6o4_eid = {'locator_name': locator_name,
120                   'eid': '6:0:1::0',
121                   'prefix': 64}
122 dut2_ip6o4_eid = {'locator_name': locator_name,
123                   'eid': '6:0:2::0',
124                   'prefix': 64}