From e7c0d8c234d533555d211e82d341995d21e857be Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Sun, 30 Dec 2018 19:44:27 -0500 Subject: [PATCH] eigrpd: Write eigrp config even if no network statements yet Let's write the eigrp config even if we have no network statements as that the other functions return safely if nothing to do here. Signed-off-by: Donald Sharp --- eigrpd/eigrp_vty.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/eigrpd/eigrp_vty.c b/eigrpd/eigrp_vty.c index a0c4fa887..89dd0035e 100644 --- a/eigrpd/eigrp_vty.c +++ b/eigrpd/eigrp_vty.c @@ -191,9 +191,6 @@ static int config_write_eigrp_router(struct vty *vty, struct eigrp *eigrp) write++; - if (!eigrp->networks) - return write; - /* Router ID print. */ if (eigrp->router_id_static != 0) { struct in_addr router_id_static; -- 2.39.2