Add docstring for plugin_activate

This patch adds the missing docstring of plugin_activate, the request
handler for the requests against /Plugin.Activate.

Change-Id: Ie9dd2b26d656c34b20562f90bd467b752735f519
Signed-off-by: Taku Fukushima <f.tac.mac@gmail.com>
This commit is contained in:
Taku Fukushima 2015-12-02 16:22:11 +09:00
parent 7cd5da8207
commit fc2afcfa68
1 changed files with 10 additions and 0 deletions

View File

@ -297,6 +297,16 @@ def _create_subnets_and_or_port(interface, neutron_network_id, endpoint_id):
@app.route('/Plugin.Activate', methods=['POST'])
def plugin_activate():
"""Returns the list of the implemented drivers.
This function returns the list of the implemented drivers defaults to
``[NetworkDriver]`` in the handshake of the remote driver, which happens
right before the first request against Kuryr.
See the following link for more details about the spec:
https://github.com/docker/libnetwork/blob/master/docs/remote.md#handshake # noqa
"""
return flask.jsonify(constants.SCHEMA['PLUGIN_ACTIVATE'])