diff options
author | Dan Timoney <dtimoney@att.com> | 2022-07-21 08:25:58 -0400 |
---|---|---|
committer | Dan Timoney <dtimoney@att.com> | 2022-07-21 08:25:58 -0400 |
commit | de63cbb97a9f751f8856647dbf81eb632420cd9d (patch) | |
tree | 5a01dee9016aa40c2ca5948533170740e0c30721 /core/sliapi/provider | |
parent | 01ec365d01605dd6b86c2c972eeea969835e74b8 (diff) |
Migrate sli to sulfur sr1
Migrate sli to OpenDaylight Sulfur release
Issue-ID: CCSDK-3693
Signed-off-by: Dan Timoney <dtimoney@att.com>
Change-Id: I3ca6fb12a03038a9447747650ea2a6e6d6e71d9d
Diffstat (limited to 'core/sliapi/provider')
-rwxr-xr-x | core/sliapi/provider/pom.xml | 2 | ||||
-rw-r--r-- | core/sliapi/provider/src/main/java/org/onap/ccsdk/sli/core/sliapi/SliapiProvider.java | 7 |
2 files changed, 3 insertions, 6 deletions
diff --git a/core/sliapi/provider/pom.xml b/core/sliapi/provider/pom.xml index d93e0102c..601af3de6 100755 --- a/core/sliapi/provider/pom.xml +++ b/core/sliapi/provider/pom.xml @@ -5,7 +5,7 @@ <parent> <groupId>org.onap.ccsdk.parent</groupId> <artifactId>binding-parent</artifactId> - <version>2.4.0</version> + <version>2.4.1-SNAPSHOT</version> <relativePath/> </parent> diff --git a/core/sliapi/provider/src/main/java/org/onap/ccsdk/sli/core/sliapi/SliapiProvider.java b/core/sliapi/provider/src/main/java/org/onap/ccsdk/sli/core/sliapi/SliapiProvider.java index 015ef5e57..27cb62e29 100644 --- a/core/sliapi/provider/src/main/java/org/onap/ccsdk/sli/core/sliapi/SliapiProvider.java +++ b/core/sliapi/provider/src/main/java/org/onap/ccsdk/sli/core/sliapi/SliapiProvider.java @@ -54,10 +54,7 @@ import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.core.sliapi.rev161110.exe import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.core.sliapi.rev161110.test.results.TestResult; import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.core.sliapi.rev161110.test.results.TestResultBuilder; import org.opendaylight.yangtools.concepts.ObjectRegistration; -import org.opendaylight.yangtools.yang.common.QName; -import org.opendaylight.yangtools.yang.common.RpcError.ErrorType; -import org.opendaylight.yangtools.yang.common.RpcResult; -import org.opendaylight.yangtools.yang.common.RpcResultBuilder; +import org.opendaylight.yangtools.yang.common.*; import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier; import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier; import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates; @@ -539,7 +536,7 @@ public class SliapiProvider implements AutoCloseable, SLIAPIService { if (suspended) { rpcResult = RpcResultBuilder.<VlbcheckOutput>failed() - .withError(ErrorType.APPLICATION, "resource-denied", "Server Suspended").build(); + .withError(ErrorType.APPLICATION, ErrorTag.RESOURCE_DENIED, "Server Suspended").build(); } else { respBuilder.setResponseMessage("server is normal"); rpcResult = RpcResultBuilder.<VlbcheckOutput>status(true).withResult(respBuilder.build()).build(); |