1 # Copyright (c) 2017 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:
6 # http://www.apache.org/licenses/LICENSE-2.0
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.
14 """Test variables for LISP GPE test suite."""
16 negative_mapping_ip4 = {
17 "id": "lispgpe_negative",
21 "address-type": "ietf-lisp-address-types:ipv4-prefix-afi",
22 "virtual-network-id": 0,
23 "ipv4-prefix": "192.168.0.0/24"
26 "address-type": "ietf-lisp-address-types:ipv4-prefix-afi",
27 "virtual-network-id": 0,
28 "ipv4-prefix": "192.168.1.0/24"
30 "action": "send-map-request"
33 # used for update operation
34 negative_mapping_ip4_edit = {
35 "id": "lispgpe_negative",
39 "address-type": "ietf-lisp-address-types:ipv4-prefix-afi",
40 "virtual-network-id": 0,
41 "ipv4-prefix": "192.168.2.0/24"
44 "address-type": "ietf-lisp-address-types:ipv4-prefix-afi",
45 "virtual-network-id": 0,
46 "ipv4-prefix": "192.168.3.0/24"
48 "action": "send-map-request"
51 # used for multiple entries
52 negative_mapping_ip4_2 = {
53 "id": "lispgpe_negative_2",
57 "address-type": "ietf-lisp-address-types:ipv4-prefix-afi",
58 "virtual-network-id": 0,
59 "ipv4-prefix": "192.168.2.0/24"
62 "address-type": "ietf-lisp-address-types:ipv4-prefix-afi",
63 "virtual-network-id": 0,
64 "ipv4-prefix": "192.168.3.0/24"
66 "action": "send-map-request"
69 positive_mapping_ip4 = {
70 "id": "lispgpe_positive",
74 "address-type": "ietf-lisp-address-types:ipv4-prefix-afi",
75 "virtual-network-id": 0,
76 "ipv4-prefix": "192.168.4.0/24"
79 "address-type": "ietf-lisp-address-types:ipv4-prefix-afi",
80 "virtual-network-id": 0,
81 "ipv4-prefix": "192.168.5.0/24"
85 "id": "gpe-entry-locator-1",
87 "local-locator": "192.168.6.2",
88 "remote-locator": "192.168.7.3",
93 "id": "gpe-entry-locator-2",
95 "local-locator": "192.168.5.2",
96 "remote-locator": "192.168.5.3",
103 negative_mapping_ip6 = {
104 "id": "lispgpe_negative6",
108 "address-type": "ietf-lisp-address-types:ipv6-prefix-afi",
109 "virtual-network-id": 0,
110 "ipv6-prefix": "10::/64"
113 "address-type": "ietf-lisp-address-types:ipv6-prefix-afi",
114 "virtual-network-id": 0,
115 "ipv6-prefix": "11::/64"
117 "action": "send-map-request"
120 positive_mapping_ip6 = {
121 "id": "lispgpe_positive6",
125 "address-type": "ietf-lisp-address-types:ipv6-prefix-afi",
126 "virtual-network-id": 0,
127 "ipv6-prefix": "12::/64"
130 "address-type": "ietf-lisp-address-types:ipv6-prefix-afi",
131 "virtual-network-id": 0,
132 "ipv6-prefix": "13::/64"
136 "id": "gpe-entry-locator-1",
138 "local-locator": "13::10",
139 "remote-locator": "13::11",
144 "id": "gpe-entry-locator-2",
146 "local-locator": "14::10",
147 "remote-locator": "14::11",
154 # variables for traffic test
155 dut_to_tg_if1_ip4 = "192.168.0.1"
156 dut_to_tg_if2_ip4 = "192.168.1.1"
157 tg_to_dut_if2_ip4 = "192.168.1.2"
158 src_ip4 = "192.168.0.2"
159 dst_ip4 = "192.168.2.2"
162 local_eid4 = "192.168.0.0/24"
163 remote_eid4 = "192.168.2.0/24"
164 src_rloc4 = dut_to_tg_if2_ip4
165 dst_rloc4 = tg_to_dut_if2_ip4
168 "id": "lispgpe_traffic_ip4",
172 "address-type": "ietf-lisp-address-types:ipv4-prefix-afi",
173 "virtual-network-id": 0,
174 "ipv4-prefix": local_eid4
177 "address-type": "ietf-lisp-address-types:ipv4-prefix-afi",
178 "virtual-network-id": 0,
179 "ipv4-prefix": remote_eid4
183 "id": "gpe-entry-locator-1",
185 "local-locator": src_rloc4,
186 "remote-locator": dst_rloc4,
193 dut_to_tg_if1_ip6 = "10::1"
194 dut_to_tg_if2_ip6 = "11::1"
195 tg_to_dut_if2_ip6 = "11::2"
200 local_eid6 = "10::/64"
201 remote_eid6 = "12::/64"
202 src_rloc6 = dut_to_tg_if2_ip6
203 dst_rloc6 = tg_to_dut_if2_ip6
206 "id": "lispgpe_traffic_ip6",
210 "address-type": "ietf-lisp-address-types:ipv6-prefix-afi",
211 "virtual-network-id": 0,
212 "ipv6-prefix": local_eid6
215 "address-type": "ietf-lisp-address-types:ipv6-prefix-afi",
216 "virtual-network-id": 0,
217 "ipv6-prefix": remote_eid6
221 "id": "gpe-entry-locator-1",
223 "local-locator": src_rloc6,
224 "remote-locator": dst_rloc6,