Use consistent filter API syntax
Change ID Id5d8ac09a38c656619f88a6f87b8f384fe4c55a8 introduced a call to get_subnets, using a filter to select all subnets on a network. The syntax for the filter in get_subnets has been to provide a dictionary where the values are lists. The change doesn't cause an exception because the OVO layer code handles scalar values. Tbis commit changes the filter syntax to be consistent. Change-Id: Ifb9df94128b7069e78e193bc289be17e15968167 (cherry picked from commite7d126f9bc
) (cherry picked from commit06cbfe0e1d
) (cherry picked from commit16befa0385
) (cherry picked from commit1b8f449e25
) (cherry picked from commite1b6a90ce2
)
This commit is contained in:
parent
589f2f4b63
commit
0dbd1fafb1
|
@ -643,7 +643,7 @@ class L3_NAT_dbonly_mixin(l3.RouterPluginBase,
|
|||
if p.get('device_owner') == DEVICE_OWNER_ROUTER_GW:
|
||||
ext_subts = self._core_plugin.get_subnets(
|
||||
context.elevated(),
|
||||
filters={'network_id': p['network_id']})
|
||||
filters={'network_id': [p['network_id']]})
|
||||
for sub in ext_subts:
|
||||
router_subnets.append(sub['id'])
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue