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",
15 "apply-label-per-route": "true"
20 "description": "Test VPN Instance 2",
21 "vpn-instance-name": "testVpn2",
23 "route-distinguisher": "400:1",
24 "export-route-policy": "500:1",
25 "import-route-policy": "600:1",
27 "apply-label-per-route": "true"
37 "type": "iana-if-type:l2vlan",
38 "odl-interface:of-port-id": "openflow:1:1",
43 "type": "iana-if-type:l2vlan",
44 "odl-interface:of-port-id": "openflow:1:2",
49 "type": "iana-if-type:l2vlan",
50 "odl-interface:of-port-id": "openflow:2:1",
55 "type": "iana-if-type:l2vlan",
56 "odl-interface:of-port-id": "openflow:2:2",
61 "odl-interface:of-port-id": "openflow:1:3",
62 "description": "VM Port mpls",
64 "type": "odl-interface:l3tunnel",
65 "odl-interface:tunnel-type": "odl-interface:tunnel-type-gre",
66 "odl-interface:local-ip": mininet1_ip,
67 "odl-interface:remote-ip": mininet2_ip
71 "odl-interface:of-port-id": "openflow:2:3",
72 "description": "VM Port mpls",
74 "type": "odl-interface:l3tunnel",
75 "odl-interface:tunnel-type": "odl-interface:tunnel-type-gre",
76 "odl-interface:local-ip": mininet2_ip,
77 "odl-interface:remote-ip": mininet1_ip
84 "odl-l3vpn:adjacency": [
86 "odl-l3vpn:ip_address": "10.0.0.1",
87 "odl-l3vpn:mac_address": "00:00:00:00:00:01"
90 "vpn-instance-name": "testVpn1",
94 "odl-l3vpn:adjacency": [
96 "odl-l3vpn:ip_address": "10.0.0.2",
97 "odl-l3vpn:mac_address": "00:00:00:00:00:02"
100 "vpn-instance-name": "testVpn2",
104 "odl-l3vpn:adjacency": [
106 "odl-l3vpn:ip_address": "10.0.0.3",
107 "odl-l3vpn:mac_address": "00:00:00:00:00:03"
110 "vpn-instance-name": "testVpn1",
114 "odl-l3vpn:adjacency": [
116 "odl-l3vpn:ip_address": "10.0.0.4",
117 "odl-l3vpn:mac_address": "00:00:00:00:00:04"
120 "vpn-instance-name": "testVpn2",
125 vpn_inst_data = json.dumps(vpn_instances)
126 ietf_int_data = json.dumps(ietf_interfaces)
127 vpn_int_data = json.dumps(vpn_interfaces)
128 variables = {'vpn_instances': vpn_inst_data,
129 'ietf_interfaces': ietf_int_data,
130 'vpn_interfaces': vpn_int_data}