Reformat missing files to standardized Python to pass black check 53/10853/2 release-v10.0-start
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 14 May 2021 15:22:01 +0000 (17:22 +0200)
committersousaedu <eduardo.sousa@canonical.com>
Thu, 20 May 2021 23:24:56 +0000 (01:24 +0200)
Change-Id: If0a656e88c1b08d6ed225918906c82b26b6b4115
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
RO-SDN-dpb/osm_rosdn_dpb/wimconn_dpb.py
RO-SDN-ietfl2vpn/osm_rosdn_ietfl2vpn/wimconn_ietfl2vpn.py
RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail/sdn_api.py
RO-VIM-openvim/osm_rovim_openvim/vimconn_openvim.py

index e08cdfd..b8a9123 100755 (executable)
@@ -36,7 +36,7 @@ from osm_ro_plugin.sdnconn import SdnConnectorBase, SdnConnectorError
 
 
 class DpbSshInterface:
-    """ Communicate with the DPB via SSH """
+    """Communicate with the DPB via SSH"""
 
     __LOGGER_NAME_EXT = ".ssh"
     __FUNCTION_MAP_POS = 1
@@ -191,7 +191,7 @@ class DpbSshInterface:
 
 
 class DpbRestInterface:
-    """ Communicate with the DPB via the REST API """
+    """Communicate with the DPB via the REST API"""
 
     __LOGGER_NAME_EXT = ".rest"
     __FUNCTION_MAP_POS = 0
@@ -230,7 +230,7 @@ class DpbRestInterface:
 
 
 class DpbConnector(SdnConnectorBase):
-    """ Use the DPB to establish multipoint connections """
+    """Use the DPB to establish multipoint connections"""
 
     __LOGGER_NAME = "ro.sdn.dpb"
     __SUPPORTED_SERV_TYPES = ["ELAN (L2)", "ELINE (L2)"]
index c9c05a7..1a581bc 100644 (file)
@@ -172,7 +172,7 @@ class WimconnectorIETFL2VPN(SdnConnectorBase):
             if len(connection_points) < 2:
                 raise SdnConnectorError("Connections must be of at least 2 endpoints")
 
-            """ First step, create the vpn service """
+            """First step, create the vpn service"""
             uuid_l2vpn = str(uuid.uuid4())
             vpn_service = {}
             vpn_service["vpn-id"] = uuid_l2vpn
@@ -214,7 +214,7 @@ class WimconnectorIETFL2VPN(SdnConnectorBase):
                     http_code=response_service_creation.status_code,
                 )
 
-            """ Second step, create the connections and vpn attachments """
+            """Second step, create the connections and vpn attachments"""
             for connection_point in connection_points:
                 connection_point_wan_info = self.search_mapp(connection_point)
                 site_network_access = {}
@@ -225,7 +225,7 @@ class WimconnectorIETFL2VPN(SdnConnectorBase):
                         connection_point["service_endpoint_encapsulation_type"]
                         == "dot1q"
                     ):
-                        """ The connection is a VLAN """
+                        """The connection is a VLAN"""
                         connection["encapsulation-type"] = "dot1q-vlan-tagged"
                         tagged = {}
                         tagged_interf = {}
@@ -383,7 +383,7 @@ class WimconnectorIETFL2VPN(SdnConnectorBase):
 
             if connection_point["service_endpoint_encapsulation_type"] != "none":
                 if connection_point["service_endpoint_encapsulation_type"] == "dot1q":
-                    """ The connection is a VLAN """
+                    """The connection is a VLAN"""
                     connection["encapsulation-type"] = "dot1q-vlan-tagged"
                     tagged = {}
                     tagged_interf = {}
index 0494393..af7184e 100644 (file)
@@ -26,7 +26,7 @@ from osm_rosdn_juniper_contrail.rest_lib import NotFound
 
 
 class UnderlayApi:
-    """ Class with CRUD operations for the underlay API """
+    """Class with CRUD operations for the underlay API"""
 
     def __init__(self, url, config=None, user=None, password=None, logger=None):
         self.logger = logger or logging.getLogger("ro.sdn.junipercontrail.sdnapi")
index eab0e75..18d2cd6 100644 (file)
@@ -798,7 +798,7 @@ class vimconnector(vimconn.VimConnector):
             self._format_request_exception(e)
 
     def new_image(self, image_dict):
-        """ Adds a tenant image to VIM, returns image_id"""
+        """Adds a tenant image to VIM, returns image_id"""
         try:
             self._get_my_tenant()
             new_image_dict = {"name": image_dict["name"][:64]}