Horizon displaying data from a table in Neutron handled database

asked 2014-01-27 04:36:28 -0600

Say I have created a new table "tab" in ovs_neutron database which has columns c1, c2, etc. c1 is a foreign key to the id column of the networks table. In the GUI of <ip>/admin/networks/, I want a column in the Networks table which contain the values taken from the "tab" table handled by neutron.

Is there any API available in horizon or neutron to which I can call and read from my own defined table? If not, how should I define my own method at both horizon and neutron to read and display data from the "tab" table using the web services?

If the question isn't clear, I can elaborate.

Thanks in advance

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-01-27 05:00:30 -0600

dheeru gravatar image
You need either extend the current API set or add new API itself using API extensions. You can look at extension provided  in keystone
http://api.openstack.org/api-ref-identity.html#identity-v2-ext OR

I have not used any of these to write my own extensions.
edit flag offensive delete link more



Thanks! That link was helpful. I get the following error in the screen when I try to invoke DEBUG routes.middleware [-] No route matched for POST /pn-class.json from (pid=12465) __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:97 Turns out that get_resources is never called.

prasoontelang gravatar imageprasoontelang ( 2014-01-29 04:46:25 -0600 )edit

To tackle that, we have to set the api_extensions_path in neutron.conf (since it was not in default extensions). And also add in supported_extension_aliases in your plugin. It works smoothly.

prasoontelang gravatar imageprasoontelang ( 2014-01-30 01:08:55 -0600 )edit

cool prasoon. It is really nice to know about this.

dheeru gravatar imagedheeru ( 2014-01-30 01:30:18 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-01-27 04:36:28 -0600

Seen: 261 times

Last updated: Jan 27 '14