NETVIRT-1305 ODL not conecting to QBGP 36/72836/2
authorVyshakh Krishnan CH <vyshakh.krishnan.c.h@ericsson.com>
Mon, 11 Jun 2018 09:01:26 +0000 (14:31 +0530)
committerSam Hague <shague@redhat.com>
Mon, 11 Jun 2018 20:42:56 +0000 (20:42 +0000)
Due to a check for port 7644 in the code, ODL was not getting connected
to 7644 port opened by QBGP. Removing the check

Change-Id: Iae2f890935643aef11de83a63e30fe28889d41c5
Signed-off-by: Vyshakh Krishnan CH <vyshakh.krishnan.c.h@ericsson.com>
bgpmanager/impl/src/main/java/org/opendaylight/netvirt/bgpmanager/BgpConfigurationManager.java

index 989f1ffa14a68b809e58cb0fff49ed0f87d03102..ac910fd02addf41fd04388d504a9e0858932d843 100755 (executable)
@@ -1658,7 +1658,7 @@ public class BgpConfigurationManager {
     }
 
     public static boolean isValidConfigBgpHostPort(String bgpHost, int bgpPort) {
-        if (!bgpHost.equals(DEF_CHOST) && bgpPort != Integer.parseInt(DEF_CPORT)) {
+        if (!bgpHost.equals(DEF_CHOST)) {
             return true;
         } else {
             return false;