Add Northbound Logical_Router_Port name index

This improves Logical_Router_Port lookup speeds at scale.

Closes-Bug: #2092133
Change-Id: I9cc8460244c030f83194736cbb71c3cf449cbf76
This commit is contained in:
Max Lamprecht 2024-12-03 14:31:17 +01:00 committed by Rodolfo Alonso
parent 8b7ce6dbe5
commit 1cbe61683a

View File

@ -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),
}