NSX|TVD: address metadata subnet request

Ensure that get ports can filter the plugin with the network_id

Change-Id: I876b2f4613c1f6af46d3e53116223d59ef4ba6e8
This commit is contained in:
Gary Kotton 2018-04-05 01:48:57 +03:00
parent 5119fd0355
commit 08cc2d357d
1 changed files with 2 additions and 1 deletions

View File

@ -409,7 +409,8 @@ class NsxTVDPlugin(agentschedulers_db.AZDhcpAgentSchedulerDbMixin,
# Read project plugin to filter relevant projects according to
# plugin
req_p = self._get_plugin_for_request(context, filters,
keys=['device_id'])
keys=['device_id',
'network_id'])
filters = filters or {}
with db_api.context_manager.reader.using(context):
ports = (