diff options
author | Dan Wendlandt <dan@nicira.com> | 2012-02-06 01:32:12 -0800 |
---|---|---|
committer | Dan Wendlandt <dan@nicira.com> | 2012-02-06 01:32:12 -0800 |
commit | 38682667c53199e5860c35101ad33c0cdc21e692 (patch) | |
tree | 64a33863952ce63225daf595899e8c93e5638dab /nova/context.py | |
parent | e9fd01e58b6a83b400ce9825f2543cb6ef476f00 (diff) | |
download | nova-38682667c53199e5860c35101ad33c0cdc21e692.tar.gz nova-38682667c53199e5860c35101ad33c0cdc21e692.tar.xz nova-38682667c53199e5860c35101ad33c0cdc21e692.zip |
bug 927507: fix quantum manager get_port_by_attachment
- makes query efficient by using Quantum API filters (new in API v1.1)
- fixes correctness issue where we did not handle case where network
did not exist in quantum (note: this was masked by a quantum bug that
will be fixed once this change is into nova).
Also included a few other minor things in this patchset:
1) make get_instance_nw_info use network label from DB, which is already
available, rather than calling out to quantum just to get the name.
2) quantum manager was not properly cleaning up VIFs in the nova db. This fixes that.
3) set 'bridge' in nw_info dictionary to the empty string, to clearly indicate that this value is ignored by Quantum Manager.
Change-Id: Ia1cbb5232f8ce373b605979902f88d7528d3e456
Diffstat (limited to 'nova/context.py')
0 files changed, 0 insertions, 0 deletions