Implementing Dan's suggestion concerning fixing the bug in db api rather than FakePlugin

This commit is contained in:
Salvatore Orlando 2011-09-07 11:21:56 +01:00
parent 32a51c648e
commit 84fe27e774
2 changed files with 2 additions and 1 deletions

View File

@ -170,6 +170,8 @@ def port_create(net_id, state=None):
def port_list(net_id):
# confirm network exists
network_get(net_id)
session = get_session()
return session.query(models.Port).\
filter_by(network_id=net_id).\

View File

@ -238,7 +238,6 @@ class FakePlugin(object):
specified Virtual Network.
"""
LOG.debug("FakePlugin.get_all_ports() called")
self._get_network(tenant_id, net_id)
port_ids = []
ports = db.port_list(net_id)
for x in ports: