NSX|V3: improve ENS exception limitations

ENS backed networks do not support port security. Ensure that a
bad request execption is raised from neutron and not an internal
error.

Change-Id: Ic139e20eb3eea2687e0263625f9075f6ebd75959
This commit is contained in:
Gary Kotton 2017-12-12 01:36:19 -08:00
parent c1ee02253f
commit e831bfc351

View File

@ -303,7 +303,10 @@ class NsxV3Plugin(agentschedulers_db.AZDhcpAgentSchedulerDbMixin,
nsx_exc.SecurityGroupMaximumCapacityReached:
webob.exc.HTTPBadRequest,
nsx_lib_exc.NsxLibInvalidInput:
webob.exc.HTTPBadRequest})
webob.exc.HTTPBadRequest,
nsx_exc.NsxENSPortSecurity:
webob.exc.HTTPBadRequest,
})
def _init_fwaas(self, resource, event, trigger, **kwargs):
self.fwaas_callbacks = None