fix shared-router/metadata patch merge codes bug

Metadata patch use get_nsxv_router_binding_by_edge which is replaced
by get_nsxv_router_bindings_by_edge of shared-router patch.
The patch recovers get_nsxv_router_binding_by_edge func.

Change-Id: I91ccce3d5b248bbb777512f7c74e2c94d0cc2bdf
This commit is contained in:
linb 2015-01-26 14:11:25 +08:00 committed by Kobi Samoray
parent 5e9508a758
commit 9d1adec5a7

View File

@ -53,9 +53,8 @@ def get_nsxv_router_binding(session, router_id):
def get_nsxv_router_binding_by_edge(session, edge_id):
with session.begin(subtransactions=True):
return (session.query(nsxv_models.NsxvRouterBinding).
filter_by(edge_id=edge_id).first())
return (session.query(nsxv_models.NsxvRouterBinding).
filter_by(edge_id=edge_id).first())
def get_nsxv_router_bindings(session):