From d523ce7c18420c998f5f0e8bf16ffad64e005c42 Mon Sep 17 00:00:00 2001 From: Sumit Naiksatam Date: Fri, 5 Aug 2011 12:05:14 -0700 Subject: [PATCH] Fixes the broken call to second level of plugins. Renaming will work now. --- quantum/plugins/cisco/l2network_plugin.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 -- 2.45.2