Bug 6736: Fix incorrect destination ip prefix value 07/46007/1
authorRitu Sood <ritu.sood@intel.com>
Sat, 17 Sep 2016 04:43:39 +0000 (21:43 -0700)
committerRitu Sood <ritu.sood@intel.com>
Wed, 21 Sep 2016 02:19:40 +0000 (19:19 -0700)
Value of destination ip prefix read from mdsal
is not correct

Change-Id: I712097aed98bf1d5db581de8d3a8b254065adbef
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronSFCFlowClassifierInterface.java

index 228ea3a1439b804e547fdac80b2e4e97fe43e300..24c5f54e13ecd69749711404a2aa5523f6c180d9 100644 (file)
@@ -178,7 +178,7 @@ public class NeutronSFCFlowClassifierInterface
             result.setSourceIpPrefix(String.valueOf(mdClassifier.getSourceIpPrefix().getValue()));
         }
         if(mdClassifier.getDestinationIpPrefix() != null) {
-            result.setDestinationIpPrefix(String.valueOf(mdClassifier.getDestinationIpPrefix()));
+            result.setDestinationIpPrefix(String.valueOf(mdClassifier.getDestinationIpPrefix().getValue()));
         }
         if(mdClassifier.getLogicalSourcePort() !=null ) {
             result.setLogicalSourcePortUUID(mdClassifier.getLogicalSourcePort().getValue());