[OVN] Remove the datapath UUID from the metadata namespaces

Since [1], the OVN Metadata agent uses the Neutron network UUID
to create the namespace name, instead of using the datapath ID.
The code supporting both names should have been removed in Yoga
release.

[1]https://review.opendev.org/c/openstack/neutron/+/768462

Signed-off-by: Rodolfo Alonso Hernandez <ralonsoh@redhat.com>
Change-Id: I742901641e912d2a5df5337fdb332e44252d62ee
This commit is contained in:
Rodolfo Alonso Hernandez
2025-08-06 00:12:57 +00:00
committed by Rodolfo Alonso
parent 224cb635d1
commit 1e6381cbd2

View File

@@ -552,7 +552,7 @@ class MetadataAgent:
ns not in metadata_namespaces]
for ns in unused_namespaces:
try:
self.teardown_datapath(self._get_datapath_name(ns))
self.teardown_datapath(self._get_network_name(ns))
except Exception:
LOG.exception('Error unable to destroy namespace: %s', ns)
@@ -569,7 +569,7 @@ class MetadataAgent:
datapath[:10], i) for i in [0, 1]]
@staticmethod
def _get_datapath_name(namespace):
def _get_network_name(namespace):
return namespace[len(NS_PREFIX):]
@staticmethod