Merge "NSX|V3 update port revision on update_port response"

This commit is contained in:
Zuul 2018-08-27 06:06:45 +00:00 committed by Gerrit Code Review
commit 7b12570a7a

View File

@ -3543,6 +3543,11 @@ class NsxV3Plugin(agentschedulers_db.AZDhcpAgentSchedulerDbMixin,
if cfg.CONF.nsx_v3.native_dhcp_metadata:
self._update_dhcp_binding(context, original_port, updated_port)
# Make sure the port revision is updated
if 'revision_number' in updated_port:
port_model = self._get_port(context, id)
updated_port['revision_number'] = port_model.revision_number
# Notifications must be sent after the above transaction is complete
kwargs = {
'context': context,