From 1cbe61683a0bf40a7894efaa4d069b96e8862344 Mon Sep 17 00:00:00 2001 From: Max Lamprecht Date: Tue, 3 Dec 2024 14:31:17 +0100 Subject: [PATCH] Add Northbound Logical_Router_Port name index This improves Logical_Router_Port lookup speeds at scale. Closes-Bug: #2092133 Change-Id: I9cc8460244c030f83194736cbb71c3cf449cbf76 --- ovsdbapp/schema/ovn_northbound/impl_idl.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ovsdbapp/schema/ovn_northbound/impl_idl.py b/ovsdbapp/schema/ovn_northbound/impl_idl.py index 97ce0f07..6ada93fe 100644 --- a/ovsdbapp/schema/ovn_northbound/impl_idl.py +++ b/ovsdbapp/schema/ovn_northbound/impl_idl.py @@ -23,6 +23,9 @@ class OvnNbApiIdlImpl(ovs_idl.Backend, api.API): lookup_table = { 'Logical_Switch': idlutils.RowLookup('Logical_Switch', 'name', None), 'Logical_Router': idlutils.RowLookup('Logical_Router', 'name', None), + 'Logical_Router_Port': idlutils.RowLookup( + 'Logical_Router_Port', 'name', None + ), 'Load_Balancer': idlutils.RowLookup('Load_Balancer', 'name', None), }