Skip to content

Commit

Permalink
eigrpd: Write eigrp config even if no network statements yet
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
donaldsharp committed Dec 31, 2018
1 parent 71c4e0c commit e7c0d8c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions eigrpd/eigrp_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e7c0d8c

Please sign in to comment.