]> git.proxmox.com Git - mirror_frr.git/commitdiff
eigrpd: Write eigrp config even if no network statements yet
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 31 Dec 2018 00:44:27 +0000 (19:44 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 31 Dec 2018 00:44:27 +0000 (19:44 -0500)
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 <sharpd@cumulusnetworks.com>
eigrpd/eigrp_vty.c

index a0c4fa887a879fa01266b0a787b93d52b10eb228..89dd0035e6f5c1cb9ae1a4b4d8e8f09ae8788f38 100644 (file)
@@ -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;