diff options
| author | Brad Hall <brad@nicira.com> | 2011-12-12 18:24:26 +0000 |
|---|---|---|
| committer | Brad Hall <brad@nicira.com> | 2011-12-13 05:00:45 +0000 |
| commit | 724e5e7a5bc065be239b3ededf0609de386c1d6f (patch) | |
| tree | a58906db8731e1805e71808fb312bf013b4d1e00 /nova/tests | |
| parent | ff753cd608973f5d72a80aef0f9fb8a646fccc3f (diff) | |
Fix for bug 902175
Remove the gateway port when deleting the network (if it's the only one left),
and kill dnsmasq if the network is deleted.
Change-Id: If6b4798ddb4d21fe6c32ac20e6237494b799ecbd
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/test_quantum.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nova/tests/test_quantum.py b/nova/tests/test_quantum.py index 174c512db..37a3ea465 100644 --- a/nova/tests/test_quantum.py +++ b/nova/tests/test_quantum.py @@ -104,6 +104,15 @@ class FakeQuantumClientConnection(object): return port_id return None + def get_attached_ports(self, tenant_id, net_id): + ports = [] + for nid, n in self.nets.items(): + if nid == net_id and n['tenant-id'] == tenant_id: + for port_id, p in n['ports'].items(): + ports.append({'port-id': port_id, + 'attachment': p['attachment-id']}) + return ports + def get_networks(self, tenant_id): nets = [] for nid, n in self.nets.items(): |
