diff options
author | Sonsino, Ofir (os0695) <os0695@intl.att.com> | 2018-03-13 15:24:31 +0200 |
---|---|---|
committer | Sonsino, Ofir (os0695) <os0695@intl.att.com> | 2018-03-13 15:24:31 +0200 |
commit | 80098ffa01c5a0f4dd5b99f41c31d51e9dc25762 (patch) | |
tree | a22bbda352a725b6a29f46acf645bc79fc639f60 /vid-app-common/src/main/webapp/app/vid/scripts/services | |
parent | 07f0f107427ee35ffb721d9bab5b83da62341680 (diff) |
bypassing scheduler for immediate operations
Change-Id: I634763a2065b75b0d550e2896a9352a74dd02b44
Issue-ID: VID-174
Signed-off-by: Sonsino, Ofir (os0695) <os0695@intl.att.com>
Diffstat (limited to 'vid-app-common/src/main/webapp/app/vid/scripts/services')
-rw-r--r-- | vid-app-common/src/main/webapp/app/vid/scripts/services/change-management.service.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/services/change-management.service.js b/vid-app-common/src/main/webapp/app/vid/scripts/services/change-management.service.js index fdab6564..f170c418 100644 --- a/vid-app-common/src/main/webapp/app/vid/scripts/services/change-management.service.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/services/change-management.service.js @@ -76,5 +76,16 @@ return deferred.promise; }; + + this.postChangeManagementNow = function (requestData, vnfName) { + var url = COMPONENT.CHANGE_MANAGEMENT_OPERATION_NO_SCHEDULER.replace('@vnfName', vnfName); + return $http.post(url, requestData) + .success(function (response) { + return {data: response}; + }) + .catch(function (err) { + return {data: []}; + }); + }; } })(); |