Hi,
I need help with using Python API to ovs. There is no documentation so I’m not
sure if I’m doing all necessary step:
1. I create new ovs db:
ovsdb-tool create /usr/local/etc/openvswitch/conf.db
/usr/local/share/openvswitch/vswitch.ovsschema
2. I run ovsdb server:
ovsdb-server --remote=punix:/usr/local/var/run/openvswitch/db.sock \
--remote=db:Open_vSwitch,Open_vSwitch,manager_options --pidfile --detach
3. Then I run python and do:
schema =
ovs.db.idl.SchemaHelper("/usr/local/share/openvswitch/vswitch.ovsschema")
schema.register_all()
connection =
ovs.db.idl.Idl("unix:/usr/local/var/run/openvswitch/db.sock",schema)
4. And check if ever connected:
schema.has_ever_connected()
5. And the answer is: False
I can see the tables names in connection object but not rows. This means that
schema works fine but it didn't pull the data from database. Could anyone help
me?
Regards
Tomasz Gajewski
_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss