diff options
author | Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com> | 2023-03-06 13:55:31 +0100 |
---|---|---|
committer | Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com> | 2023-03-07 08:37:54 +0000 |
commit | cf96bd8bdf9751c54ba8d47569e4a1269fc61e9e (patch) | |
tree | d841d2ae04418a5337f440792b21a6179e34a6b0 /neutron/plugins | |
parent | 0a214b0437874fd7f5379ec94fd07ef5d3ff4bbe (diff) | |
download | neutron-cf96bd8bdf9751c54ba8d47569e4a1269fc61e9e.tar.gz |
ovs: fix regression when vlan mapping is not already registered
Bug introduced by Ic3c147136549b17aea0fe78e930a41a5b33ab9d8, when a
VLAN mapping is not registered during a call to
update_network_segement, the function should return None.
Closes-Bug: #2009215
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com>
Change-Id: I91f8e8bd18d9956216e5715c658dfb408a2cbf07
Diffstat (limited to 'neutron/plugins')
-rw-r--r-- | neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py b/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py index 4c14454cd8..d6d45fe3f7 100644 --- a/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py +++ b/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py @@ -507,6 +507,9 @@ class OVSNeutronAgent(l2population_rpc.L2populationRpcCallBackTunnelMixin, LOG.warning("Can't update segmentation id on no uniq segment " "for a network %s", network['id']) return + except vlanmanager.MappingNotFound: + LOG.debug("Mapping not found for network %s", network['id']) + return if segmentation_id_old is None: # The segmentation id did not changed. |