From 5f66798d4207d07eea0b16eb90afe42de04bf0ee Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Sun, 30 Apr 2017 17:00:02 +0300 Subject: [PATCH] NSX|V: enhance error message for invalid scope_id Change-Id: I98045ba998cd63bd4b6098272ba3ca16a9f6e385 --- vmware_nsx/plugins/nsx_v/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmware_nsx/plugins/nsx_v/plugin.py b/vmware_nsx/plugins/nsx_v/plugin.py index 4197bae254..442415f387 100644 --- a/vmware_nsx/plugins/nsx_v/plugin.py +++ b/vmware_nsx/plugins/nsx_v/plugin.py @@ -1074,7 +1074,7 @@ class NsxVPluginV2(addr_pair_db.AllowedAddressPairsMixin, if not (self.nsx_v.vcns. validate_vdn_scope(vdn_scope_id)): raise nsx_exc.NsxResourceNotFound( - res_name=pnet.PHYSICAL_NETWORK, + res_name='vdn_scope_id', res_id=vdn_scope_id) h, c = self.nsx_v.vcns.create_virtual_wire(vdn_scope_id, config_spec)