From 15fd2ac8d6aef0f5bdefef6f5b18d15c710ee970 Mon Sep 17 00:00:00 2001 From: Eylon Malin Date: Sun, 10 Nov 2019 15:30:17 +0200 Subject: fix identification of port mirroring service Issue-ID: VID-701 Signed-off-by: Eylon Malin Change-Id: I56e4c9502724f271810b44ea946cd56f4013c543 --- .../org/onap/vid/asdc/parser/VidNotionsBuilder.java | 2 +- .../test/resources/csars/portMirroringService.zip | Bin 30857 -> 31295 bytes 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'vid-app-common') diff --git a/vid-app-common/src/main/java/org/onap/vid/asdc/parser/VidNotionsBuilder.java b/vid-app-common/src/main/java/org/onap/vid/asdc/parser/VidNotionsBuilder.java index 5ed5f6a58..786f74f25 100644 --- a/vid-app-common/src/main/java/org/onap/vid/asdc/parser/VidNotionsBuilder.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/parser/VidNotionsBuilder.java @@ -242,7 +242,7 @@ public class VidNotionsBuilder { private boolean isPortMirroringService(ServiceModel serviceModel) { return (serviceModel.getService()!=null && - StringUtils.equals(serviceModel.getService().getServiceType(), "portMirroring")); + StringUtils.equals(serviceModel.getService().getServiceType(), "PORT-MIRROR")); } private boolean isVlanTaggingService(ServiceModel serviceModel) { diff --git a/vid-app-common/src/test/resources/csars/portMirroringService.zip b/vid-app-common/src/test/resources/csars/portMirroringService.zip index b8c919d34..c074f31bd 100644 Binary files a/vid-app-common/src/test/resources/csars/portMirroringService.zip and b/vid-app-common/src/test/resources/csars/portMirroringService.zip differ -- cgit 1.2.3-korg