]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Pylint and pep8 fixes.
authorSumit Naiksatam <snaiksat@cisco.com>
Wed, 17 Aug 2011 23:21:27 +0000 (16:21 -0700)
committerSumit Naiksatam <snaiksat@cisco.com>
Wed, 17 Aug 2011 23:21:27 +0000 (16:21 -0700)
quantum/plugins/cisco/common/cisco_constants.py
quantum/plugins/cisco/l2network_plugin.py

index 6010863cefa73cf0dce998919f9eabfbd8fcd4c6..67ba05d5811e2028f9b4fba5cff8402aa92d267e 100644 (file)
@@ -130,5 +130,3 @@ UCSPROFILE = 'portprofile'
 
 MAX_CREDENTIALS = 65568
 MAX_QOS_LEVELS = 1024
-
-
index a7b2a0481a78eea0243049c27dfdd42bb2d86213..29fc3542429adcd17b3b4391801892e0a24e9a23 100644 (file)
@@ -44,7 +44,6 @@ class L2Network(QuantumPluginBase):
     _qos_levels = {}
     _credentials = {}
 
-
     def __init__(self):
         self._vlan_counter = int(conf.VLAN_START) - 1
         self._model = utils.import_object(conf.MODEL_CLASS)
@@ -443,11 +442,7 @@ class L2Network(QuantumPluginBase):
     def get_host(self, tenant_id, instance_id, instance_desc):
         """Provides the hostname on which a dynamic vnic is reserved"""
         LOG.debug("get_host() called\n")
-        host_list = {const.HOST_LIST:
-                     {
-                         const.HOST_1: platform.node()
-                     }
-                    }
+        host_list = {const.HOST_LIST: {const.HOST_1: platform.node()}}
         return host_list
 
     def get_instance_port(self, tenant_id, instance_id, instance_desc):
@@ -456,12 +451,7 @@ class L2Network(QuantumPluginBase):
         """
         LOG.debug("get_instance_port() called\n")
         vif_desc = {const.VIF_DESC:
-                    {
-                        const.DEVICENAME: "eth2",
-                        const.UCSPROFILE: "default"
-                    }
-                   }
-                    
+                    {const.DEVICENAME: "eth2", const.UCSPROFILE: "default"}}
         return vif_desc
 
     """