]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fixes the broken call to second level of plugins. Renaming will work now.
authorSumit Naiksatam <snaiksat@cisco.com>
Fri, 5 Aug 2011 19:05:14 +0000 (12:05 -0700)
committerSumit Naiksatam <snaiksat@cisco.com>
Fri, 5 Aug 2011 19:05:14 +0000 (12:05 -0700)
quantum/plugins/cisco/l2network_plugin.py

index e34a1c491e00225b3b7929116bc5da62ff6d613a..b9ada4d5fd8bf283b79310ea2a551f9a736edaaf 100644 (file)
@@ -115,12 +115,14 @@ class L2Network(object):
 
     def get_network_details(self, tenant_id, net_id):
         """
-        Deletes the Virtual Network belonging to a the
-        spec
+        Gets the details of a particular network
         """
         LOG.debug("get_network_details() called\n")
         network = self._get_network(tenant_id, net_id)
-        return network
+        ports_on_net = network[const.NET_PORTS].values()
+        return {const.NET_ID: network[const.NET_ID],
+                const.NET_NAME: network[const.NET_NAME],
+                const.NET_PORTS: ports_on_net}
 
     def rename_network(self, tenant_id, net_id, new_name):
         """
@@ -129,7 +131,7 @@ class L2Network(object):
         """
         LOG.debug("rename_network() called\n")
         for pluginClass in self._plugins.values():
-            pluginClas.rename_network(tenant_id, net_id)
+            pluginClass.rename_network(tenant_id, net_id, new_name)
         network = self._get_network(tenant_id, net_id)
         network[const.NET_NAME] = new_name
         return network