From c9506a0a6ea4a1729aca9ebdca425b902479e7cd Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 19 May 2015 16:33:52 -0700 Subject: [PATCH] zebra-enable-link-detect-by-default.patch zebra: Set link-detect on by default Signed-off-by: Roopa Prabhu Reviewed-by: Dinesh G Dutt Reviewed-by: Scott Feldman --- lib/if.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/if.c b/lib/if.c index 18e2fb314f..532966410f 100644 --- a/lib/if.c +++ b/lib/if.c @@ -132,6 +132,9 @@ if_create (const char *name, int namelen) ifp->connected = list_new (); ifp->connected->del = (void (*) (void *)) connected_free; + /* Enable Link-detection by default */ + SET_FLAG(ifp->status, ZEBRA_INTERFACE_LINKDETECTION); + if (if_master.if_new_hook) (*if_master.if_new_hook) (ifp); -- 2.39.5