diff options
author | yongqiangliu312 <yongqiang.liu@nokia-sbell.com> | 2020-01-27 10:40:41 +0800 |
---|---|---|
committer | Patrick Brady <patrick.brady@att.com> | 2020-01-29 14:18:45 -0800 |
commit | e4c07d4c7eb3105bc6a20eee00fdca592f0cf59b (patch) | |
tree | 74e8abcb92df09514c01b6ca041e5643feec33e8 /appc-dispatcher | |
parent | b5fe8a69e90b950c07dc11af481eab7e9bab52c6 (diff) |
add new action ConfigScaleIn
Change-Id: Iae4bb797c4e86f66e5e3101fc6715fc2c2be470f
Issue-ID: APPC-1760
Signed-off-by: Taka Cho <takamune.cho@att.com>
Signed-off-by: Patrick Brady <patrick.brady@att.com>
Diffstat (limited to 'appc-dispatcher')
2 files changed, 9 insertions, 2 deletions
diff --git a/appc-dispatcher/appc-dispatcher-common/domain-model-lib/src/main/java/org/onap/appc/domainmodel/lcm/VNFOperation.java b/appc-dispatcher/appc-dispatcher-common/domain-model-lib/src/main/java/org/onap/appc/domainmodel/lcm/VNFOperation.java index 2f7fbc2b2..95557aab7 100644 --- a/appc-dispatcher/appc-dispatcher-common/domain-model-lib/src/main/java/org/onap/appc/domainmodel/lcm/VNFOperation.java +++ b/appc-dispatcher/appc-dispatcher-common/domain-model-lib/src/main/java/org/onap/appc/domainmodel/lcm/VNFOperation.java @@ -6,7 +6,7 @@ * ================================================================================ * Copyright (C) 2017 Amdocs * ================================================================================ - * Modifications Copyright (C) 2018-2019 Orange + * Modifications Copyright (C) 2018-2019 Orange Nokia * ============================================================================= * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -81,7 +81,8 @@ public enum VNFOperation { UpgradeSoftware, UpgradePostCheck, UpgradeBackup, - UpgradeBackout; + UpgradeBackout, + ConfigScaleIn; private boolean builtIn; diff --git a/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/conv/Converter.java b/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/conv/Converter.java index 3a02e4d85..de292284a 100644 --- a/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/conv/Converter.java +++ b/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/conv/Converter.java @@ -377,6 +377,12 @@ public class Converter { ((LicenseManagementOutputBuilder)outObj).setStatus(status); ((LicenseManagementOutputBuilder)outObj).setPayload(payload); return outObj; + case ConfigScaleIn: + outObj = new ConfigScaleInOutputBuilder(); + ((ConfigScaleInOutputBuilder)outObj).setCommonHeader(commonHeader); + ((ConfigScaleInOutputBuilder)outObj).setStatus(status); + ((ConfigScaleInOutputBuilder)outObj).setPayload(payload); + return outObj; default: throw new IllegalArgumentException(action+" action is not supported"); } |