summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDinesh G Dutt <ddutt@cumulusnetworks.com>2016-07-17 23:12:12 -0700
committerDinesh G Dutt <ddutt@cumulusnetworks.com>2016-07-18 19:45:16 -0700
commit07fc159679d3d2511dd938246d41b50bf9a9c9ce (patch)
tree2e802a32f7f164dd07dd36264f11f2afeff9e4a8
parentf013eacdc81728b875d6e16e89895048392c13f8 (diff)
Deprecate link-detect and don't display it in show running-config
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.
-rw-r--r--zebra/interface.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/zebra/interface.c b/zebra/interface.c
index 87a426fdc4..c3ce83dd4a 100644
--- a/zebra/interface.c
+++ b/zebra/interface.c
@@ -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))
{