Ask Your Question

Can Neutronclient/Horizon determine the available extensions in Neutron?

asked 2014-03-19 01:21:36 -0500

updated 2014-03-19 01:21:52 -0500

In the __init__ of my core_plugin class, I am deciding whether a set of extensions should be enabled or not. Is there a module to determine the supported_extension_aliases via Neutronclient CLI or Horizon?


edit retag flag offensive close merge delete


Thanks SamYaple, I failed to find a neutron client command too. Checking the logs is a good way, but it would be difficult to handle logs which are huge in size. Let's see.

prasoontelang gravatar imageprasoontelang ( 2014-03-19 12:12:38 -0500 )edit

I actually meant dig into the code that is generating the log files. You may get lucky and find a function specifically for extention lookups. Then you would just need to wrap it. This is assuming no one suggests a better way, it is the only way forward I can think of

SamYaple gravatar imageSamYaple ( 2014-03-19 12:24:26 -0500 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2014-03-19 09:11:42 -0500

SamYaple gravatar image

Neutron looks up available extentions when you first start it up. The logs will say which ones are available (with debug or vebose one, I am not sure which one). You may be able to dig into to neutrons code to see how it finds which are available. I am not aware of any neutron client command that will return this information.

edit flag offensive delete link more

answered 2014-03-24 06:19:38 -0500

jpichon gravatar image

I'm not sure if this answers your question, but this is the way Horizon determines if an extension is available at the moment, using the list_extensions() call. I understand there are limitations.

edit flag offensive delete link more


Thanks! This solves our issue for retrieving supported extensions list. Can we dynamically register or unregister a panel using this without having to restart the httpd service?

prasoontelang gravatar imageprasoontelang ( 2014-03-25 01:30:49 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-03-19 01:21:36 -0500

Seen: 132 times

Last updated: Mar 24 '14