From c63c42146704fdf19f2f163ade62033313e27dc9 Mon Sep 17 00:00:00 2001 From: John Griffith Date: Wed, 7 Mar 2012 17:45:12 -0700 Subject: Update floating auto assignment to use the model * addresses bug 928819 * previously submitted changes (#change,4236) * unit tests added that don't use fakes for everything * added testAssert to check assignment process * added call to deallocate as well Change-Id: I46503e6e88031a6e1ab3ac76163402091168c6b0 --- nova/api/openstack/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nova/api') diff --git a/nova/api/openstack/common.py b/nova/api/openstack/common.py index 3fefa6718..719a74bb9 100644 --- a/nova/api/openstack/common.py +++ b/nova/api/openstack/common.py @@ -288,7 +288,7 @@ def dict_to_query_str(params): def get_networks_for_instance_from_nw_info(nw_info): networks = {} - + LOG.debug(_('Converting nw_info: %s') % nw_info) for vif in nw_info: ips = vif.fixed_ips() floaters = vif.floating_ips() @@ -298,6 +298,7 @@ def get_networks_for_instance_from_nw_info(nw_info): networks[label]['ips'].extend(ips) networks[label]['floating_ips'].extend(floaters) + LOG.debug(_('Converted networks: %s') % networks) return networks -- cgit