Merge "only register tables used by os-vif"

This commit is contained in:
Zuul 2021-11-03 17:03:02 +00:00 committed by Gerrit Code Review
commit a85d276195
1 changed files with 4 additions and 1 deletions

View File

@ -23,12 +23,15 @@ from ovsdbapp.schema.open_vswitch import impl_idl
from vif_plug_ovs.ovsdb import api
REQUIRED_TABLES = ('Interface', 'Port', 'Bridge', 'Open_vSwitch')
def idl_factory(config):
conn = config.connection
schema_name = 'Open_vSwitch'
helper = idlutils.get_schema_helper(conn, schema_name)
helper.register_all()
for table in REQUIRED_TABLES:
helper.register_table(table)
return idl.Idl(conn, helper)