4 def get_variables(mininet1_ip, mininet2_ip):
8 "description": "Test VPN Instance 1",
9 "vpn-instance-name": "testVpn1",
11 "route-distinguisher": "100:1",
12 "export-route-policy": "300:1",
13 "import-route-policy": "200:1",
14 "apply-label": {"apply-label-per-route": "true"},
18 "description": "Test VPN Instance 2",
19 "vpn-instance-name": "testVpn2",
21 "route-distinguisher": "400:1",
22 "export-route-policy": "500:1",
23 "import-route-policy": "600:1",
24 "apply-label": {"apply-label-per-route": "true"},
33 "type": "iana-if-type:l2vlan",
34 "odl-interface:of-port-id": "openflow:1:1",
39 "type": "iana-if-type:l2vlan",
40 "odl-interface:of-port-id": "openflow:1:2",
45 "type": "iana-if-type:l2vlan",
46 "odl-interface:of-port-id": "openflow:2:1",
51 "type": "iana-if-type:l2vlan",
52 "odl-interface:of-port-id": "openflow:2:2",
57 "odl-interface:of-port-id": "openflow:1:3",
58 "description": "VM Port mpls",
60 "type": "odl-interface:l3tunnel",
61 "odl-interface:tunnel-type": "odl-interface:tunnel-type-gre",
62 "odl-interface:local-ip": mininet1_ip,
63 "odl-interface:remote-ip": mininet2_ip,
67 "odl-interface:of-port-id": "openflow:2:3",
68 "description": "VM Port mpls",
70 "type": "odl-interface:l3tunnel",
71 "odl-interface:tunnel-type": "odl-interface:tunnel-type-gre",
72 "odl-interface:local-ip": mininet2_ip,
73 "odl-interface:remote-ip": mininet1_ip,
80 "odl-l3vpn:adjacency": [
82 "odl-l3vpn:ip_address": "10.0.0.1",
83 "odl-l3vpn:mac_address": "00:00:00:00:00:01",
86 "vpn-instance-name": "testVpn1",
90 "odl-l3vpn:adjacency": [
92 "odl-l3vpn:ip_address": "10.0.0.2",
93 "odl-l3vpn:mac_address": "00:00:00:00:00:02",
96 "vpn-instance-name": "testVpn2",
100 "odl-l3vpn:adjacency": [
102 "odl-l3vpn:ip_address": "10.0.0.3",
103 "odl-l3vpn:mac_address": "00:00:00:00:00:03",
106 "vpn-instance-name": "testVpn1",
110 "odl-l3vpn:adjacency": [
112 "odl-l3vpn:ip_address": "10.0.0.4",
113 "odl-l3vpn:mac_address": "00:00:00:00:00:04",
116 "vpn-instance-name": "testVpn2",
121 vpn_inst_data = json.dumps(vpn_instances)
122 ietf_int_data = json.dumps(ietf_interfaces)
123 vpn_int_data = json.dumps(vpn_interfaces)
125 "vpn_instances": vpn_inst_data,
126 "ietf_interfaces": ietf_int_data,
127 "vpn_interfaces": vpn_int_data,