diff options
author | kong wei <kong.wei2@zte.com.cn> | 2017-08-09 07:16:08 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-08-09 07:16:08 +0000 |
commit | d896ae4dc8b96acd1b720c29817b6b7faf7f086a (patch) | |
tree | ab5932ee37e2a1271eca88c7e8e5897fc8d48b98 /api/escalator/api/v1/router.py | |
parent | 6a4f961b61dfdb41d77dcec262bcda64f44689dd (diff) | |
parent | 4b445f24d664d0ed720293aeeaa5a6a195e51d06 (diff) |
Merge "support all cluster update option"
Diffstat (limited to 'api/escalator/api/v1/router.py')
-rw-r--r-- | api/escalator/api/v1/router.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/api/escalator/api/v1/router.py b/api/escalator/api/v1/router.py index 5942cb1..24d254c 100644 --- a/api/escalator/api/v1/router.py +++ b/api/escalator/api/v1/router.py @@ -15,6 +15,7 @@ from escalator.common import wsgi from escalator.api.v1 import versions from escalator.api.v1 import clusters +from escalator.api.v1 import install class API(wsgi.Router): @@ -37,4 +38,10 @@ class API(wsgi.Router): action='version', conditions={'method': ['POST']}) + install_resource = install.create_resource() + mapper.connect("/update/{cluster_id}", + controller=install_resource, + action='update_progress', + conditions={'method': ['GET']}) + super(API, self).__init__(mapper) |