NSX|V3: Change external provider network error message
Return a more significant error message on the attempt to create an external provider network. Change-Id: Ie6da32acda066691397a96ffa12a2df631f3dadd
This commit is contained in:
parent
e86f7a1af5
commit
05d1805dcd
@ -1064,7 +1064,9 @@ class NsxV3Plugin(agentschedulers_db.AZDhcpAgentSchedulerDbMixin,
|
||||
net_data.get(pnet.NETWORK_TYPE) != utils.NetworkTypes.L3_EXT and
|
||||
net_data.get(pnet.NETWORK_TYPE) != utils.NetworkTypes.LOCAL) or
|
||||
validators.is_attr_set(net_data.get(pnet.SEGMENTATION_ID))):
|
||||
msg = _("Invalid provider network configuration")
|
||||
msg = (_("External network cannot be created with %s provider "
|
||||
"network or segmentation id") %
|
||||
net_data.get(pnet.NETWORK_TYPE))
|
||||
raise n_exc.InvalidInput(error_message=msg)
|
||||
self.nsxlib.router.validate_tier0(self.tier0_groups_dict, tier0_uuid)
|
||||
return (True, utils.NetworkTypes.L3_EXT, tier0_uuid, 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user