diff --git a/vif_plug_ovs/ovsdb/impl_idl.py b/vif_plug_ovs/ovsdb/impl_idl.py index 11f75ff4..32cf0808 100644 --- a/vif_plug_ovs/ovsdb/impl_idl.py +++ b/vif_plug_ovs/ovsdb/impl_idl.py @@ -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)