Python3: resources and libraries
[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 = b"tst_locator"
18
19 # Test configuration data
20 tg_if1_ip4= u"6.0.0.2"
21 tg_if2_ip4= u"6.0.1.2"
22 dut_if1_ip4= u"6.0.0.1"
23 dut_if2_ip4= u"6.0.1.1"
24 tg_if2_ip6= u"6:0:1::2"
25 dut_if2_ip6= u"6:0:1::1"
26 ip4_plen= 24
27 src_ip4= u"6.0.0.2"
28 dst_ip4= u"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= u"6::2"
36 dut_if1_ip6= u"6:0:0::1"
37 src_ip6= u"6::2"
38 dst_ip6= u"6:0:2::2"
39 ip6_plen=64
40
41 # Lisp default locator_set value
42 duts_locator_set = {
43     u"locator_name": locator_name,
44     u"priority": 1,
45     u"weight": 1
46 }
47
48 # IPv4 Lisp static mapping configuration
49
50 dut1_to_tg_ip4_static_adjacency = {
51     u"vni": 0,
52     u"deid": u"6.0.2.0",
53     u"seid": u"6.0.0.0",
54     u"rloc": u"6.0.1.2",
55     u"prefix": 24
56 }
57
58 dut1_ip4_eid = {
59     u"locator_name": locator_name,
60     u"vni": 0,
61     u"eid": u"6.0.0.0",
62     u"prefix": 24
63 }
64
65 # IPv6 Lisp static mapping configuration
66
67 dut1_to_tg_ip6_static_adjacency = {
68     u"vni": 0,
69     u"deid": u"6:0:2::0",
70     u"seid": u"6:0:0::0",
71     u"rloc": u"6:0:1::2",
72     u"prefix": 64
73 }
74
75 dut1_ip6_eid = {
76     u"locator_name": locator_name,
77     u"vni": 0,
78     u"eid": u"6:0:0::0",
79     u"prefix": 64
80 }
81
82
83 #IPv6 over IPv4 LISP mapping
84 dut1_ip6o4_static_adjacency = {
85     u"vni": 0,
86     u"deid": u"6:0:2::0",
87     u"seid": u"6:0:0::0",
88     u"rloc": u"6.0.1.2",
89     u"prefix": 64
90 }
91 dut1_ip6o4_eid = {
92     u"locator_name": locator_name,
93     u"vni": 0,
94     u"eid": u"6:0:0::0",
95     u"prefix": 64
96 }
97
98 #IPv4 over IPv6 LISP mapping
99 dut1_ip4o6_static_adjacency = {
100     u"vni": 0,
101     u"deid": u"6.0.2.0",
102     u"seid": u"6.0.0.0",
103     u"rloc": u"6:0:1::2",
104     u"prefix": 24
105 }
106 dut1_ip4o6_eid = {
107     u"locator_name": locator_name,
108     u"vni": 0,
109     u"eid": u"6.0.0.0",
110     u"prefix": 24
111 }