NETVIRT-1282 updating default BGP config server port 7644 52/72252/6
authorSiva Kumar Perumalla <sivakumar.perumalla@gmail.com>
Fri, 25 May 2018 10:24:53 +0000 (15:54 +0530)
committerSam Hague <shague@redhat.com>
Wed, 30 May 2018 12:18:51 +0000 (12:18 +0000)
modified default log file location of bgp

Change-Id: Ib667bb4ff2c238a3de5e3a8f464d534c04c45615
Signed-off-by: Siva Kumar Perumalla <sivakumar.perumalla@gmail.com>
bgpmanager/impl/src/main/java/org/opendaylight/netvirt/bgpmanager/BgpConfigurationManager.java
bgpmanager/impl/src/main/java/org/opendaylight/netvirt/bgpmanager/oam/BgpConstants.java

index 455bbda103f3b80d8113324ca3ae95db5a30fdf3..4ccdca2cdf9ae5b247eeefa2fdffd165fb37c558 100755 (executable)
@@ -142,14 +142,12 @@ public class BgpConfigurationManager {
     // to have stale FIB map (RD, Prefix)
     //  number of seconds wait for route sync-up between ODL and BGP
     private static final int BGP_RESTART_ROUTE_SYNC_SEC = 600;
-    private static final String DEF_LOGFILE = "/var/log/bgp_debug.log";
-    private static final String DEF_LOGLEVEL = "errors";
     private static final String UPDATE_PORT = "bgp.thrift.service.port";
     private static final String CONFIG_HOST = "vpnservice.bgpspeaker.host.name";
     private static final String CONFIG_PORT = "vpnservice.bgpspeaker.thrift.port";
     private static final String DEF_UPORT = "6644";
     private static final String DEF_CHOST = "255.255.255.255"; // Invalid Host IP
-    private static final String DEF_CPORT = "0";               // Invalid Port
+    private static final String DEF_CPORT = "7644";
     private static final String DEF_BGP_SDNC_MIP = "127.0.0.1";
     private static final String BGP_SDNC_MIP = "vpnservice.bgp.thrift.sdnc.mip";
     private static final int RESTART_DEFAULT_GR = 90;
@@ -742,7 +740,7 @@ public class BgpConfigurationManager {
                     return;
                 }
                 try {
-                    br.setLogging(DEF_LOGFILE, DEF_LOGLEVEL);
+                    br.setLogging(BgpConstants.BGP_DEF_LOG_FILE, BgpConstants.BGP_DEF_LOG_LEVEL);
                 } catch (TException | BgpRouterException e) {
                     LOG.error("{} Delete received exception; {}", YANG_OBJ, DEL_WARN, e);
                 }
index c80803b6e8c04abe82ee822117b41c674d9d5a13..9d336dadc8a44096c01a8580458d0c3a719e5705 100644 (file)
@@ -22,6 +22,6 @@ public interface BgpConstants {
     String BGP_COUNTER_RD_ROUTE_COUNT = "BgpRdRouteCount";
     String BGP_COUNTER_TOTAL_PFX = "BgpTotalPrefixes:Bgp_Total_Prefixes";
     String BGP_DEF_LOG_LEVEL = "debugging";
-    String BGP_DEF_LOG_FILE = "/var/log/bgp_debug.log";
+    String BGP_DEF_LOG_FILE = "/opt/quagga/var/log/quagga/zrpc.init.log";
     long DEFAULT_ETH_TAG = 0L;
 }