NETVIRT-1103 : display issue in ip bgp vpnv4 all summary command 68/68368/2
authorLoshmitha <loshmitha@ericsson.com>
Fri, 16 Feb 2018 09:07:59 +0000 (14:37 +0530)
committerSam Hague <shague@redhat.com>
Fri, 16 Feb 2018 16:27:47 +0000 (11:27 -0500)
White spaces inbetween the text was getting deleted which caused the
display issue,so changing the regex in replaceAll to resolve the issue
Signed-off-by: Loshmitha <loshmitha@ericsson.com>
Change-Id: I48c5019fec167649f09766531a5f3e7b29c9d42f
Signed-off-by: Loshmitha <loshmitha@ericsson.com>
Signed-off-by: Sam Hague <shague@redhat.com>
bgpmanager/impl/src/main/java/org/opendaylight/netvirt/bgpmanager/VtyshCli.java

index e9fd00706c9a51721570e28e3c33195b2c81ed79..10f916b1dec29d6aef7dd6dcb383999caf26300e 100644 (file)
@@ -261,7 +261,7 @@ public class VtyshCli extends OsgiCommandSupport {
 
             }
 
-            String outputStr = temp.toString().replaceAll("^\\s+|\\s+$", "");
+            String outputStr = temp.toString().replaceAll("^\\s", "");
             output.append(outputStr);
             if (output.toString().trim().endsWith(prompt)) {
                 int index = output.toString().lastIndexOf(prompt);