Merge "Fix port create with mac learning set to false"
This commit is contained in:
commit
9dfc0070fc
@ -2174,7 +2174,9 @@ class NsxV3Plugin(agentschedulers_db.AZDhcpAgentSchedulerDbMixin,
|
|||||||
if psgids:
|
if psgids:
|
||||||
sgids = list(set(sgids) | set(psgids))
|
sgids = list(set(sgids) | set(psgids))
|
||||||
self._extend_nsx_port_dict_binding(context, port_data)
|
self._extend_nsx_port_dict_binding(context, port_data)
|
||||||
if validators.is_attr_set(port_data.get(mac_ext.MAC_LEARNING)):
|
# Make sure mac_learning and port sec are not both enabled
|
||||||
|
if (validators.is_attr_set(port_data.get(mac_ext.MAC_LEARNING)) and
|
||||||
|
port_data.get(mac_ext.MAC_LEARNING)):
|
||||||
if is_psec_on:
|
if is_psec_on:
|
||||||
msg = _('Mac learning requires that port security be '
|
msg = _('Mac learning requires that port security be '
|
||||||
'disabled')
|
'disabled')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user