To retrieve the context for DB operations in Neutron not from the client

asked 2014-02-05 02:52:49 -0600

updated 2014-02-05 02:53:06 -0600

Hi!

I am getting some data in a neutron plugin via RPC, how do I insert this data in the database? I don't want to create another sqlalchemy engine for this task, is there a way to use the context which is used for DB inserts and updates, like what we do in create_network?

Thanks

edit retag flag offensive close merge delete

Comments

As of now, I have created an engine for the database taken from the config file. I wonder if it is okay to do. If someone identifies a better approach, please let me know.

prasoontelang gravatar imageprasoontelang ( 2014-02-06 23:01:02 -0600 )edit