Implementing Dan's suggestion concerning fixing the bug in db api rather than FakePlugin
This commit is contained in:
parent
32a51c648e
commit
84fe27e774
@ -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).\
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user