The OpenStackClient plugin system is designed so that the plugin need only be properly installed for OSC to find and use it. It utilizes the setuptools entry points mechanism to advertise to OSC the plugin module and supported commands.
Plugins are discovered by enumerating the entry points found under openstack.cli.extension and initializing the specified client module.
[entry_points]
openstack.cli.extension =
oscplugin = oscplugin.client
The client module must implement the following interface functions:
OSC enumerates the plugin commands from the entry points in the usual manner defined for the API version:
openstack.oscplugin.v1 =
plugin_list = oscplugin.v1.plugin:ListPlugin
plugin_show = oscplugin.v1.plugin:ShowPlugin
Note that OSC defines the group name as openstack. so the version should not contain the leading ‘v’ character.