]> git.puffer.fish Git - mirror/frr.git/commitdiff
Deprecate link-detect and don't display it in show running-config
authorDinesh G Dutt <ddutt@cumulusnetworks.com>
Mon, 18 Jul 2016 06:12:12 +0000 (23:12 -0700)
committerDinesh G Dutt <ddutt@cumulusnetworks.com>
Tue, 19 Jul 2016 02:45:16 +0000 (19:45 -0700)
Ticket: CM-11808
Reviewed By: CCR-4972
Testing Done: Usual stuff

link-detect is on by default, and has been so since the first release
of Cumulus Linux. So, in the light of not displaying defaults, don't
display link-detect if enabled, only if disabled.

zebra/interface.c

index 87a426fdc4fd2d26f3ae6ce6ae1c8aa206df0446..c3ce83dd4aa6028dce5cae47ea48661b438178ba 100644 (file)
@@ -2114,10 +2114,8 @@ if_config_write (struct vty *vty)
       if (ifp->bandwidth != 0)
        vty_out(vty, " bandwidth %u%s", ifp->bandwidth, VTY_NEWLINE); 
 
-      if (CHECK_FLAG(ifp->status, ZEBRA_INTERFACE_LINKDETECTION))
-       vty_out(vty, " link-detect%s", VTY_NEWLINE);
-      else
-       vty_out(vty, " no link-detect%s", VTY_NEWLINE);
+      if (!CHECK_FLAG(ifp->status, ZEBRA_INTERFACE_LINKDETECTION))
+        vty_out(vty, " no link-detect%s", VTY_NEWLINE);
 
       for (ALL_LIST_ELEMENTS_RO (ifp->connected, addrnode, ifc))
          {