From: Sumit Naiksatam Date: Fri, 5 Aug 2011 19:05:14 +0000 (-0700) Subject: Fixes the broken call to second level of plugins. Renaming will work now. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=d523ce7c18420c998f5f0e8bf16ffad64e005c42;p=openstack-build%2Fneutron-build.git Fixes the broken call to second level of plugins. Renaming will work now. --- diff --git a/quantum/plugins/cisco/l2network_plugin.py b/quantum/plugins/cisco/l2network_plugin.py index e34a1c491..b9ada4d5f 100644 --- a/quantum/plugins/cisco/l2network_plugin.py +++ b/quantum/plugins/cisco/l2network_plugin.py @@ -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