Auto-generated patch by python-black
[integration/test.git] / csit / variables / vpnservice / configureSwitches.py
index 434766e0a7b4c756712157d2f35b1420db5a613f..f5d1f7b21d8d748c377832d9a75c67923eeac6e5 100644 (file)
@@ -11,10 +11,8 @@ def get_variables(mininet1_ip, mininet2_ip):
                     "route-distinguisher": "100:1",
                     "export-route-policy": "300:1",
                     "import-route-policy": "200:1",
-                    "apply-label": {
-                        "apply-label-per-route": "true"
-                    }
-                }
+                    "apply-label": {"apply-label-per-route": "true"},
+                },
             },
             {
                 "description": "Test VPN Instance 2",
@@ -23,11 +21,9 @@ def get_variables(mininet1_ip, mininet2_ip):
                     "route-distinguisher": "400:1",
                     "export-route-policy": "500:1",
                     "import-route-policy": "600:1",
-                    "apply-label": {
-                        "apply-label-per-route": "true"
-                    }
-                }
-            }
+                    "apply-label": {"apply-label-per-route": "true"},
+                },
+            },
         ]
     }
     ietf_interfaces = {
@@ -36,25 +32,25 @@ def get_variables(mininet1_ip, mininet2_ip):
                 "name": "s1-eth1",
                 "type": "iana-if-type:l2vlan",
                 "odl-interface:of-port-id": "openflow:1:1",
-                "enabled": "true"
+                "enabled": "true",
             },
             {
                 "name": "s1-eth2",
                 "type": "iana-if-type:l2vlan",
                 "odl-interface:of-port-id": "openflow:1:2",
-                "enabled": "true"
+                "enabled": "true",
             },
             {
                 "name": "s2-eth1",
                 "type": "iana-if-type:l2vlan",
                 "odl-interface:of-port-id": "openflow:2:1",
-                "enabled": "true"
+                "enabled": "true",
             },
             {
                 "name": "s2-eth2",
                 "type": "iana-if-type:l2vlan",
                 "odl-interface:of-port-id": "openflow:2:2",
-                "enabled": "true"
+                "enabled": "true",
             },
             {
                 "enabled": "true",
@@ -64,7 +60,7 @@ def get_variables(mininet1_ip, mininet2_ip):
                 "type": "odl-interface:l3tunnel",
                 "odl-interface:tunnel-type": "odl-interface:tunnel-type-gre",
                 "odl-interface:local-ip": mininet1_ip,
-                "odl-interface:remote-ip": mininet2_ip
+                "odl-interface:remote-ip": mininet2_ip,
             },
             {
                 "enabled": "true",
@@ -74,8 +70,8 @@ def get_variables(mininet1_ip, mininet2_ip):
                 "type": "odl-interface:l3tunnel",
                 "odl-interface:tunnel-type": "odl-interface:tunnel-type-gre",
                 "odl-interface:local-ip": mininet2_ip,
-                "odl-interface:remote-ip": mininet1_ip
-            }
+                "odl-interface:remote-ip": mininet1_ip,
+            },
         ]
     }
     vpn_interfaces = {
@@ -84,48 +80,50 @@ def get_variables(mininet1_ip, mininet2_ip):
                 "odl-l3vpn:adjacency": [
                     {
                         "odl-l3vpn:ip_address": "10.0.0.1",
-                        "odl-l3vpn:mac_address": "00:00:00:00:00:01"
+                        "odl-l3vpn:mac_address": "00:00:00:00:00:01",
                     }
                 ],
                 "vpn-instance-name": "testVpn1",
-                "name": "s1-eth1"
+                "name": "s1-eth1",
             },
             {
                 "odl-l3vpn:adjacency": [
                     {
                         "odl-l3vpn:ip_address": "10.0.0.2",
-                        "odl-l3vpn:mac_address": "00:00:00:00:00:02"
+                        "odl-l3vpn:mac_address": "00:00:00:00:00:02",
                     }
                 ],
                 "vpn-instance-name": "testVpn2",
-                "name": "s1-eth2"
+                "name": "s1-eth2",
             },
             {
                 "odl-l3vpn:adjacency": [
                     {
                         "odl-l3vpn:ip_address": "10.0.0.3",
-                        "odl-l3vpn:mac_address": "00:00:00:00:00:03"
+                        "odl-l3vpn:mac_address": "00:00:00:00:00:03",
                     }
                 ],
                 "vpn-instance-name": "testVpn1",
-                "name": "s2-eth1"
+                "name": "s2-eth1",
             },
             {
                 "odl-l3vpn:adjacency": [
                     {
                         "odl-l3vpn:ip_address": "10.0.0.4",
-                        "odl-l3vpn:mac_address": "00:00:00:00:00:04"
+                        "odl-l3vpn:mac_address": "00:00:00:00:00:04",
                     }
                 ],
                 "vpn-instance-name": "testVpn2",
-                "name": "s2-eth2"
-            }
+                "name": "s2-eth2",
+            },
         ]
     }
     vpn_inst_data = json.dumps(vpn_instances)
     ietf_int_data = json.dumps(ietf_interfaces)
     vpn_int_data = json.dumps(vpn_interfaces)
-    variables = {'vpn_instances': vpn_inst_data,
-                 'ietf_interfaces': ietf_int_data,
-                 'vpn_interfaces': vpn_int_data}
+    variables = {
+        "vpn_instances": vpn_inst_data,
+        "ietf_interfaces": ietf_int_data,
+        "vpn_interfaces": vpn_int_data,
+    }
     return variables