CSIT-451 LISP vrf tests rework
[csit.git] / resources / test_data / lisp / ipv4_lispgpe_ipv4 / ipv4_lispgpe_ipv4.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 ip4-lispgpe-ip4 encapsulation test suite."""
15
16 # Lisp default global value
17 locator_name = 'tst_locator'
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 tg1_ip4 = '6.0.1.1'
26 dut1_to_tg_ip4 = '6.0.1.2'
27
28 dut1_vif1_ip4 = '6.0.2.1'
29 vm1_vif1_ip4 = '6.0.2.2'
30
31 vm1_vif2_ip4 = '6.0.3.1'
32 dut1_vif2_ip4 = '6.0.3.2'
33
34 dut1_to_dut2_ip4 = '6.0.4.1'
35 dut2_to_dut1_ip4 = '6.0.4.2'
36
37 dut2_to_tg_ip4 = '6.0.5.1'
38 tg2_ip4 = '6.0.5.2'
39
40 src_ip_range = '6.0.1.0'
41 dst_ip_range = '6.0.5.0'
42
43 vm1_vif1_mac = '52:54:00:00:04:01'
44 vm1_vif2_mac = '52:54:00:00:04:02'
45
46 vhost_ip = '6.0.1.3'
47
48 prefix4 = 24
49
50 dut1_to_dut2_ip4_static_adjacency = {'vni': 0,
51                                      'deid': dst_ip_range,
52                                      'seid': src_ip_range,
53                                      'rloc': dut2_to_dut1_ip4,
54                                      'prefix': prefix4}
55 dut2_to_dut1_ip4_static_adjacency = {'vni': 0,
56                                      'deid': src_ip_range,
57                                      'seid': dst_ip_range,
58                                      'rloc': dut1_to_dut2_ip4,
59                                      'prefix': prefix4}
60
61 dut1_ip4_eid = {'locator_name': locator_name,
62                 'vni': 0,
63                 'eid': src_ip_range,
64                 'prefix': prefix4}
65 dut2_ip4_eid = {'locator_name': locator_name,
66                 'vni': 0,
67                 'eid': dst_ip_range,
68                 'prefix': prefix4}
69
70 fib_table_1 = 1
71 dut1_dut2_vni = 1
72
73 sock1 = "/tmp/sock1"
74 sock2 = "/tmp/sock2"
75
76 bid = 10