From 08cc2d357d8a39fae0b319ec695681b5d722b05e Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Thu, 5 Apr 2018 01:48:57 +0300 Subject: [PATCH] NSX|TVD: address metadata subnet request Ensure that get ports can filter the plugin with the network_id Change-Id: I876b2f4613c1f6af46d3e53116223d59ef4ba6e8 --- vmware_nsx/plugins/nsx/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vmware_nsx/plugins/nsx/plugin.py b/vmware_nsx/plugins/nsx/plugin.py index 4bb704c48d..a818f67d57 100644 --- a/vmware_nsx/plugins/nsx/plugin.py +++ b/vmware_nsx/plugins/nsx/plugin.py @@ -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 = (