summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authordavid.mcweeney <david.mcweeney@est.tech>2024-05-02 15:14:52 +0100
committerdavid.mcweeney <david.mcweeney@est.tech>2024-05-16 14:14:21 +0100
commit184b681a516c08abe9ef151090c5f208f5544e0e (patch)
tree8d4c5633f9c71bd119e0aa4eff390b0938dd9764 /src/main
parenta89971d5da7bc11f45195fbd3f8e77cb4b02e833 (diff)
CPS-2187 - #5 Add module Set Tag to dmi (single cm handle) data request
Change-Id: Iae7e3bac67bb8e5bbb50e4157fdf7daf9fc2220f Signed-off-by: david.mcweeney <david.mcweeney@est.tech> Issue-ID: CPS-2187
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/onap/cps/ncmp/dmi/rest/controller/DmiRestController.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/org/onap/cps/ncmp/dmi/rest/controller/DmiRestController.java b/src/main/java/org/onap/cps/ncmp/dmi/rest/controller/DmiRestController.java
index 1dcc6373..47b9fc3e 100644
--- a/src/main/java/org/onap/cps/ncmp/dmi/rest/controller/DmiRestController.java
+++ b/src/main/java/org/onap/cps/ncmp/dmi/rest/controller/DmiRestController.java
@@ -80,16 +80,13 @@ public class DmiRestController implements DmiPluginApi, DmiPluginInternalApi {
return ResponseEntity.ok(moduleSet);
}
-
@Override
public ResponseEntity<YangResources> retrieveModuleResources(
final String cmHandle,
final ModuleResourcesReadRequest moduleResourcesReadRequest) {
final List<ModuleReference> moduleReferences = convertRestObjectToJavaApiObject(moduleResourcesReadRequest);
final YangResources yangResources = dmiService.getModuleResources(cmHandle, moduleReferences);
- if (moduleResourcesReadRequest.getModuleSetTag() != null) {
- log.info("Module set tag received: {}", moduleResourcesReadRequest.getModuleSetTag());
- }
+ log.info("Module set tag received: {}", moduleResourcesReadRequest.getModuleSetTag());
return new ResponseEntity<>(yangResources, HttpStatus.OK);
}
@@ -141,7 +138,10 @@ public class DmiRestController implements DmiPluginApi, DmiPluginInternalApi {
final String resourceIdentifier,
final String optionsParamInQuery,
final String topicParamInQuery,
+ final String moduleSetTagParamInQuery,
final DataAccessRequest dataAccessRequest) {
+
+ log.info("Module set tag received: {}", moduleSetTagParamInQuery);
if (DatastoreType.PASSTHROUGH_OPERATIONAL == DatastoreType.fromDatastoreName(datastoreName)) {
return dataAccessPassthroughOperational(resourceIdentifier, cmHandle, dataAccessRequest,
optionsParamInQuery, topicParamInQuery);