aboutsummaryrefslogtreecommitdiffstats
path: root/resources/test_data/lisp/performance/lisp_static_adjacency.py
blob: 11648b91a37e9985e45017324b4ffce3a383f0b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# Copyright (c) 2016 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Test variables for Lisp remote static mapping test suite."""

# Lisp default global value
locator_name = 'ls1'

# Lisp default locator_set value
duts_locator_set = {'locator_name': locator_name,
                    'priority': 1,
                    'weight': 1}

# IPv4 Lisp static mapping configuration
dut1_to_dut2_ip4 = '1.1.1.1'
dut2_to_dut1_ip4 = '1.1.1.2'
dut1_to_tg_ip4 = '10.10.10.1'
dut2_to_tg_ip4 = '20.20.20.1'
prefix4 = 24
dut1_ip4_static_adjacency = {'vni': 0,
                             'deid': '20.20.20.0',
                             'seid': '10.10.10.0',
                             'rloc': '1.1.1.2',
                           'prefix': 24}
dut2_ip4_static_adjacency = {'vni': 0,
                             'deid': '10.10.10.0',
                             'seid': '20.20.20.0',
                             'rloc': '1.1.1.1',
                             'prefix': 24}
dut1_ip4_eid = {'locator_name': locator_name,
                'vni': 0,
                'eid': '10.10.10.0',
                'prefix': 24}
dut2_ip4_eid = {'locator_name': locator_name,
                'vni': 0,
                'eid': '20.20.20.0',
                'prefix': 24}

# IPv6 Lisp static mapping configuration
dut1_to_dut2_ip6 = '2001:3::1'
dut2_to_dut1_ip6 = '2001:3::2'
dut1_to_tg_ip6 = '2001:1::1'
dut2_to_tg_ip6 = '2001:2::1'
prefix6 = 64
dut1_ip6_static_adjacency = {'vni': 0,
                             'deid': '2001:2::0',
                             'seid': '2001:1::0',
                             'rloc': '2001:3::2',
                             'prefix': 64}
dut2_ip6_static_adjacency = {'vni': 0,
                             'deid': '2001:1::0',
                             'seid': '2001:2::0',
                             'rloc': '2001:3::1',
                             'prefix': 64}
dut1_ip6_eid = {'locator_name': locator_name,
                'vni': 0,
                'eid': '2001:1::0',
                'prefix': 64}
dut2_ip6_eid = {'locator_name': locator_name,
                'vni': 0,
                'eid': '2001:2::0',
                'prefix': 64}

# IPv4 over IPv6 Lisp static mapping configuration
dut1_to_dut2_ip4o6 = '2001:3::1'
dut2_to_dut1_ip4o6 = '2001:3::2'
dut1_to_tg_ip4o6 = '10.10.10.1'
dut2_to_tg_ip4o6 = '20.20.20.1'
tg_prefix4o6 = 24
dut_prefix4o6 = 64
dut1_ip4o6_static_adjacency = {'vni': 0,
                               'deid': '20.20.20.0',
                               'seid': '10.10.10.0',
                               'rloc': '2001:3::2',
                               'prefix': 24}
dut2_ip4o6_static_adjacency = {'vni': 0,
                               'deid': '10.10.10.0',
                               'seid': '20.20.20.0',
                               'rloc': '2001:3::1',
                               'prefix': 24}
dut1_ip4o6_eid = {'locator_name': locator_name,
                  'vni': 0,
                  'eid': '10.10.10.0',
                  'prefix': 24}
dut2_ip4o6_eid = {'locator_name': locator_name,
                  'vni': 0,
                  'eid': '20.20.20.0',
                  'prefix': 24}

# IPv6 over IPv4 Lisp static mapping configuration
dut1_to_dut2_ip6o4 = '1.1.1.1'
dut2_to_dut1_ip6o4 = '1.1.1.2'
dut1_to_tg_ip6o4 = '2001:1::1'
dut2_to_tg_ip6o4 = '2001:2::1'
tg_prefix6o4 = 64
dut_prefix6o4 = 24
dut1_ip6o4_static_adjacency = {'vni': 0,
                               'deid': '2001:2::0',
                               'seid': '2001:1::0',
                               'rloc': '1.1.1.2',
                               'prefix': 64}
dut2_ip6o4_static_adjacency = {'vni': 0,
                               'deid': '2001:1::0',
                               'seid': '2001:2::0',
                               'rloc': '1.1.1.1',
                               'prefix': 64}
dut1_ip6o4_eid = {'locator_name': locator_name,
                  'vni': 0,
                  'eid': '2001:1::0',
                  'prefix': 64}
dut2_ip6o4_eid = {'locator_name': locator_name,
                  'vni': 0,
                  'eid': '2001:2::0',
                  'prefix': 64}