CSIT-199: Use static adjacencies in LISP dp tests
[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
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_to_dut2_ip4_static_adjacency = {'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_to_dut1_ip4_static_adjacency = {'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                 'vni': 0,
44                 'eid': '6.0.1.0',
45                 'prefix': 24}
46 dut2_ip4_eid = {'locator_name': locator_name,
47                 'vni': 0,
48                 'eid': '6.0.2.0',
49                 'prefix': 24}
50
51 # IPv6 Lisp static mapping configuration
52 dut1_to_dut2_ip6 = '6:0:3::1'
53 dut2_to_dut1_ip6 = '6:0:3::2'
54 dut1_to_tg_ip6 = '6:0:1::1'
55 dut2_to_tg_ip6 = '6:0:2::1'
56 tg1_ip6 = '6:0:1::2'
57 tg2_ip6 = '6:0:2::2'
58 prefix6 = 64
59 dut1_to_dut2_ip6_static_adjacency = {'vni': 0,
60                                      'deid': '6:0:2::0',
61                                      'seid': '6:0:1::0',
62                                      'rloc': '6:0:3::2',
63                                      'prefix': 64}
64 dut2_to_dut1_ip6_static_adjacency = {'vni': 0,
65                                      'deid': '6:0:1::0',
66                                      'seid': '6:0:2::0',
67                                      'rloc': '6:0:3::1',
68                                      'prefix': 64}
69 dut1_ip6_eid = {'locator_name': locator_name,
70                 'vni': 0,
71                 'eid': '6:0:1::0',
72                 'prefix': 64}
73 dut2_ip6_eid = {'locator_name': locator_name,
74                 'vni': 0,
75                 'eid': '6:0:2::0',
76                 'prefix': 64}
77
78 # IPv4 over IPv6 Lisp static mapping configuration
79 dut1_to_dut2_ip4o6 = '6:0:3::1'
80 dut2_to_dut1_ip4o6 = '6:0:3::2'
81 dut1_to_tg_ip4o6 = '6.0.1.1'
82 dut2_to_tg_ip4o6 = '6.0.2.1'
83 tg1_ip4o6 = '6.0.1.2'
84 tg2_ip4o6 = '6.0.2.2'
85 tg_prefix4o6 = 24
86 dut_prefix4o6 = 64
87 dut1_ip4o6_static_adjacency = {'vni': 0,
88                                'deid': '6.0.2.0',
89                                'seid': '6.0.1.0',
90                                'rloc': '6:0:3::2',
91                                'prefix': 24}
92 dut2_ip4o6_static_adjacency = {'vni': 0,
93                                'deid': '6.0.1.0',
94                                'seid': '6.0.2.0',
95                                'rloc': '6:0:3::1',
96                                'prefix': 24}
97 dut1_ip4o6_eid = {'locator_name': locator_name,
98                   'vni': 0,
99                   'eid': '6.0.1.0',
100                   'prefix': 24}
101 dut2_ip4o6_eid = {'locator_name': locator_name,
102                   'vni': 0,
103                   'eid': '6.0.2.0',
104                   'prefix': 24}
105
106 # IPv6 over IPv4 Lisp static mapping configuration
107 dut1_to_dut2_ip6o4 = '6.0.3.1'
108 dut2_to_dut1_ip6o4 = '6.0.3.2'
109 dut1_to_tg_ip6o4 = '6:0:1::1'
110 dut2_to_tg_ip6o4 = '6:0:2::1'
111 tg1_ip6o4 = '6:0:1::2'
112 tg2_ip6o4 = '6:0:2::2'
113 tg_prefix6o4 = 64
114 dut_prefix6o4 = 24
115 dut1_ip6o4_static_adjacency = {'vni': 0,
116                                'deid': '6:0:2::0',
117                                'seid': '6:0:1::0',
118                                'rloc': '6.0.3.2',
119                                'prefix': 64}
120 dut2_ip6o4_static_adjacency = {'vni': 0,
121                                'deid': '6:0:1::0',
122                                'seid': '6:0:2::0',
123                                'rloc': '6.0.3.1',
124                                'prefix': 64}
125 dut1_ip6o4_eid = {'locator_name': locator_name,
126                   'vni': 0,
127                   'eid': '6:0:1::0',
128                   'prefix': 64}
129 dut2_ip6o4_eid = {'locator_name': locator_name,
130                   'vni': 0,
131                   'eid': '6:0:2::0',
132                   'prefix': 64}