Rebind allowed address pairs only if they changed
This patch ensures allowed address pairs bindings are refreshed only when they actually change. This will also avoid sending a notification to the agent if no change actually occured. Closes-Bug: #1255145 Partial blueprint neutron-tempest-parallel Change-Id: Iac2502586a0d215a29194590c16c2e1a064f943b
This commit is contained in:
		@@ -597,7 +597,7 @@ class Ml2Plugin(db_base_plugin_v2.NeutronDbPluginV2,
 | 
			
		||||
            original_port = super(Ml2Plugin, self).get_port(context, id)
 | 
			
		||||
            updated_port = super(Ml2Plugin, self).update_port(context, id,
 | 
			
		||||
                                                              port)
 | 
			
		||||
            if addr_pair.ADDRESS_PAIRS in port['port']:
 | 
			
		||||
            if self.is_address_pairs_attribute_updated(original_port, port):
 | 
			
		||||
                self._delete_allowed_address_pairs(context, id)
 | 
			
		||||
                self._process_create_allowed_address_pairs(
 | 
			
		||||
                    context, updated_port,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user