fix identification of port mirroring service 25/98225/1
authorEylon Malin <eylon.malin@intl.att.com>
Sun, 10 Nov 2019 13:30:17 +0000 (15:30 +0200)
committerEylon Malin <eylon.malin@intl.att.com>
Sun, 10 Nov 2019 13:30:17 +0000 (15:30 +0200)
Issue-ID: VID-701
Signed-off-by: Eylon Malin <eylon.malin@intl.att.com>
Change-Id: I56e4c9502724f271810b44ea946cd56f4013c543

vid-app-common/src/main/java/org/onap/vid/asdc/parser/VidNotionsBuilder.java
vid-app-common/src/test/resources/csars/portMirroringService.zip

index 5ed5f6a..786f74f 100644 (file)
@@ -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) {
index b8c919d..c074f31 100644 (file)
Binary files a/vid-app-common/src/test/resources/csars/portMirroringService.zip and b/vid-app-common/src/test/resources/csars/portMirroringService.zip differ