NSX|V: enhance error message for invalid scope_id

Change-Id: I98045ba998cd63bd4b6098272ba3ca16a9f6e385
This commit is contained in:
Gary Kotton 2017-04-30 17:00:02 +03:00
parent f3c16ccca3
commit 5f66798d42

View File

@ -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)