summaryrefslogtreecommitdiffstats
path: root/eigrpd/eigrp_network.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-07-14 00:45:20 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-07-14 00:45:20 +0200
commit9e9012d7c1c724f3b15845bea3d3ba1ca100e532 (patch)
tree6f70d43f72d50f7dd529cf7ad988a6305f8f2c9a /eigrpd/eigrp_network.c
parenteigrpd: Fixed wrong type used (diff)
downloadfrr-9e9012d7c1c724f3b15845bea3d3ba1ca100e532.tar.xz
frr-9e9012d7c1c724f3b15845bea3d3ba1ca100e532.zip
eigrpd: Let eigrp setup it's router-id in some situations
If the router-id is passed up to eigrp before we have started the instance, allow it to set it up properly as we start the instance. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'eigrpd/eigrp_network.c')
-rw-r--r--eigrpd/eigrp_network.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eigrpd/eigrp_network.c b/eigrpd/eigrp_network.c
index c4e0b8435..74cb6de18 100644
--- a/eigrpd/eigrp_network.c
+++ b/eigrpd/eigrp_network.c
@@ -243,8 +243,8 @@ eigrp_network_set(struct eigrp *eigrp, struct prefix_ipv4 *p)
rn->info = (void *) pref;
/* Schedule Router ID Update. */
- // if (eigrp->router_id == 0)
- // eigrp_router_id_update(eigrp);
+ if (eigrp->router_id == 0)
+ eigrp_router_id_update(eigrp);
/* Run network config now. */
/* Get target interface. */
for (ALL_LIST_ELEMENTS_RO(vrf_iflist(VRF_DEFAULT), node, ifp))