56cda754262976b146ae18012fadd5bb04c439d6
[csit.git] / resources / test_data / lisp / static_adjacency / lisp_static_adjacency.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 fib_table1 = 1
19 dut1_dut2_vni = 1
20 sock1 = '/tmp/sock1'
21 sock2 = '/tmp/sock2'
22 bid = 10
23 vhost_ip = '6:0:1::3'
24
25 # Lisp default locator_set value
26 duts_locator_set = {'locator_name': locator_name,
27                     'priority': 1,
28                     'weight': 1}
29
30 # IPv4 Lisp static mapping configuration
31 dut1_to_dut2_ip4 = '6.0.3.1'
32 dut2_to_dut1_ip4 = '6.0.3.2'
33 dut1_to_tg_ip4 = '6.0.1.1'
34 dut2_to_tg_ip4 = '6.0.2.1'
35 tg1_ip4 = '6.0.1.2'
36 tg2_ip4 = '6.0.2.2'
37 prefix4 = 24
38 dut1_to_dut2_ip4_static_adjacency = {'vni': 0,
39                                      'deid': '6.0.2.0',
40                                      'seid': '6.0.1.0',
41                                      'rloc': '6.0.3.2',
42                                      'prefix': 24}
43 dut2_to_dut1_ip4_static_adjacency = {'vni': 0,
44                                      'deid': '6.0.1.0',
45                                      'seid': '6.0.2.0',
46                                      'rloc': '6.0.3.1',
47                                      'prefix': 24}
48 dut1_ip4_eid = {'locator_name': locator_name,
49                 'vni': 0,
50                 'eid': '6.0.1.0',
51                 'prefix': 24}
52 dut2_ip4_eid = {'locator_name': locator_name,
53                 'vni': 0,
54                 'eid': '6.0.2.0',
55                 'prefix': 24}
56 dut2_to_dut1_ip4_reconf = '6.0.3.20'
57 dut1_to_dut2_ip4_static_adjacency_reconf = {'vni': 0,
58                                             'deid': '6.0.2.0',
59                                             'seid': '6.0.1.0',
60                                             'rloc': '6.0.3.20',
61                                             'prefix': 24}
62
63 # IPv6 Lisp static mapping configuration
64 dut1_to_dut2_ip6 = '6:0:3::1'
65 dut2_to_dut1_ip6 = '6:0:3::2'
66 dut1_to_tg_ip6 = '6:0:1::1'
67 dut2_to_tg_ip6 = '6:0:2::1'
68 tg1_ip6 = '6:0:1::2'
69 tg2_ip6 = '6:0:2::2'
70 prefix6 = 64
71 dut1_to_dut2_ip6_static_adjacency = {'vni': 0,
72                                      'deid': '6:0:2::0',
73                                      'seid': '6:0:1::0',
74                                      'rloc': '6:0:3::2',
75                                      'prefix': 64}
76 dut2_to_dut1_ip6_static_adjacency = {'vni': 0,
77                                      'deid': '6:0:1::0',
78                                      'seid': '6:0:2::0',
79                                      'rloc': '6:0:3::1',
80                                      'prefix': 64}
81 dut1_ip6_eid = {'locator_name': locator_name,
82                 'vni': 0,
83                 'eid': '6:0:1::0',
84                 'prefix': 64}
85 dut2_ip6_eid = {'locator_name': locator_name,
86                 'vni': 0,
87                 'eid': '6:0:2::0',
88                 'prefix': 64}
89 dut2_to_dut1_ip6_reconf = '6:0:3::20'
90 dut1_to_dut2_ip6_static_adjacency_reconf = {'vni': 0,
91                                             'deid': '6:0:2::0',
92                                             'seid': '6:0:1::0',
93                                             'rloc': '6:0:3::20',
94                                             'prefix': 64}
95
96 # IPv4 over IPv6 Lisp static mapping configuration
97 dut1_to_dut2_ip4o6 = '6:0:3::1'
98 dut2_to_dut1_ip4o6 = '6:0:3::2'
99 dut1_to_tg_ip4o6 = '6.0.1.1'
100 dut2_to_tg_ip4o6 = '6.0.2.1'
101 tg1_ip4o6 = '6.0.1.2'
102 tg2_ip4o6 = '6.0.2.2'
103 tg_prefix4o6 = 24
104 dut_prefix4o6 = 64
105 dut1_ip4o6_static_adjacency = {'vni': 0,
106                                'deid': '6.0.2.0',
107                                'seid': '6.0.1.0',
108                                'rloc': '6:0:3::2',
109                                'prefix': 24}
110 dut2_ip4o6_static_adjacency = {'vni': 0,
111                                'deid': '6.0.1.0',
112                                'seid': '6.0.2.0',
113                                'rloc': '6:0:3::1',
114                                'prefix': 24}
115 dut1_ip4o6_eid = {'locator_name': locator_name,
116                   'vni': 0,
117                   'eid': '6.0.1.0',
118                   'prefix': 24}
119 dut2_ip4o6_eid = {'locator_name': locator_name,
120                   'vni': 0,
121                   'eid': '6.0.2.0',
122                   'prefix': 24}
123 dut2_to_dut1_ip4o6_reconf = '6:0:3::20'
124 dut1_ip4o6_static_adjacency_reconf = {'vni': 0,
125                                       'deid': '6.0.2.0',
126                                       'seid': '6.0.1.0',
127                                       'rloc': '6:0:3::20',
128                                       'prefix': 24}
129
130 # IPv6 over IPv4 Lisp static mapping configuration
131 dut1_to_dut2_ip6o4 = '6.0.3.1'
132 dut2_to_dut1_ip6o4 = '6.0.3.2'
133 dut1_to_tg_ip6o4 = '6:0:1::1'
134 dut2_to_tg_ip6o4 = '6:0:2::1'
135 tg1_ip6o4 = '6:0:1::2'
136 tg2_ip6o4 = '6:0:2::2'
137 tg_prefix6o4 = 64
138 dut_prefix6o4 = 24
139 dut1_ip6o4_static_adjacency = {'vni': 0,
140                                'deid': '6:0:2::0',
141                                'seid': '6:0:1::0',
142                                'rloc': '6.0.3.2',
143                                'prefix': 64}
144 dut2_ip6o4_static_adjacency = {'vni': 0,
145                                'deid': '6:0:1::0',
146                                'seid': '6:0:2::0',
147                                'rloc': '6.0.3.1',
148                                'prefix': 64}
149 dut1_ip6o4_eid = {'locator_name': locator_name,
150                   'vni': 0,
151                   'eid': '6:0:1::0',
152                   'prefix': 64}
153 dut2_ip6o4_eid = {'locator_name': locator_name,
154                   'vni': 0,
155                   'eid': '6:0:2::0',
156                   'prefix': 64}
157 dut2_to_dut1_ip6o4_reconf = '6.0.3.20'
158 dut1_ip6o4_static_adjacency_reconf = {'vni': 0,
159                                       'deid': '6:0:2::0',
160                                       'seid': '6:0:1::0',
161                                       'rloc': '6.0.3.20',
162                                       'prefix': 64}