diff options
| author | John Griffith <john.griffith@solidfire.com> | 2012-03-07 17:45:12 -0700 |
|---|---|---|
| committer | John Griffith <john.griffith@solidfire.com> | 2012-03-12 14:00:18 -0600 |
| commit | c63c42146704fdf19f2f163ade62033313e27dc9 (patch) | |
| tree | a5b0c57050e27c7851a8c02f2a6516a80e6a8e81 /nova/api | |
| parent | b057ab60a39eb8dfa6604d6f207625c29df6cd70 (diff) | |
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
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/common.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
