There is a TODO comment in OVSRpcCallbacks.network_delete() regarding deleting the bridge interface, but the code does nothing but log debug messages. This RPC is called on all agents when the plugin processes a delete_network() API request. With the current openvswitch agent implementation there is no bridge interface that needs to be deleted when a network is deleted. All flows, etc., should be cleaned up when the last port on the network is deleted, so there should normally be nothing to do in network_delete(). But it might be worth having the agent check to make sure no LocalVLANMapping remains in OVSQuantumAgent.local_vlan_map for the deleted network in case the plugin and agent have somehow gotten out of sync. If any do remain, calling OVSQuantumAgent.reclaim_local_vlan() should take care of cleaning up. If this check and cleanup are not worth doing, then the RPC should be removed from the plugin and agent.
Fix proposed to branch: master /review. openstack. org/12291
Review: https:/