-
- @GetMapping(value = "/config/GENERIC-RESOURCE-API:services/service/{service-id}/service-data/vnfs/vnf/{vnf-id}/vnf-data/vnf-topology/")
- public ResponseEntity<?> getVNf(@PathVariable("service-id") String serviceId,
- @PathVariable("vnf-id") String vnfId) {
-
- LOGGER.info("Get vnf-topology with serviceId {} and vnfId {}",serviceId, vnfId);
- GenericResourceApiVnfTopology genericResourceApiVnfTopology = new GenericResourceApiVnfTopology();
-
- genericResourceApiVnfTopology = cacheServiceProvider.getGenericResourceApiVnfTopology();
- return ResponseEntity.ok(genericResourceApiVnfTopology);
- }
-
- @GetMapping(value = "/config/GENERIC-RESOURCE-API:services/service/{service-id}/service-data/vnfs/vnf/{vnf-id}/vnf-data/vf-modules/vf-module/{vf-module-id}/vf-module-data/vf-module-topology/", produces = {
- MediaType.APPLICATION_JSON })
- public ResponseEntity<?> getVFmodule(@PathVariable("service-id") String serviceId,
- @PathVariable("vnf-id") String vnfId, @PathVariable("vf-module-id") String vfModuleId) {
- LOGGER.info("Get vfModule-topology with serviceId {}, vnfId {} and vfModuleId {}",serviceId, vnfId,vfModuleId);
-
- GenericResourceApiVfModuleTopology genericResourceApiVfModuleTopology = new GenericResourceApiVfModuleTopology();
-
- genericResourceApiVfModuleTopology = cacheServiceProvider.getGenericResourceApiVfModuleTopology();
- return ResponseEntity.ok(genericResourceApiVfModuleTopology);
-
- }