BFD logging
[netvirt.git] / bgpmanager / impl / src / main / java / org / opendaylight / netvirt / bgpmanager / commands / Cache.java
index 75defb2d95f32315b4732f6b04d0456e3f0b9b15..ad6141b01f149d678812d29b03ddcbebd7c8769d 100644 (file)
@@ -149,7 +149,7 @@ public class Cache extends OsgiCommandSupport {
             }
             AsId asId = config.getAsId();
             if (asId != null) {
-                long asNum = asId.getLocalAs().longValue();
+                Long asNum = asId.getLocalAs().longValue();
                 IpAddress routerId = asId.getRouterId();
                 Long spt = asId.getStalepathTime().toJava();
                 Boolean afb = asId.isAnnounceFbit();
@@ -163,9 +163,9 @@ public class Cache extends OsgiCommandSupport {
                     spt = gracefulRestart.getStalepathTime().toJava();
                 }
                 ps.printf("%nBGP Router%n");
-                ps.printf("\t%-15s  %d%n\t%-15s  %s%n\t%-15s  %s%n\t%-15s  %s%n",
-                        ASSTR, asNum, RISTR, rid, SPSTR, spt == null || spt == 0 ? "default" : spt.toString(), FBSTR,
-                        bit);
+                ps.printf("\t%-15s  %s%n\t%-15s  %s%n\t%-15s  %s%n\t%-15s  %s%n",
+                        ASSTR, asNum.toString(), RISTR, rid, SPSTR,
+                        spt == null || spt == 0 ? "default" : spt.toString(), FBSTR, bit);
             }
 
             Logging logging = config.getLogging();