]> git.puffer.fish Git - mirror/frr.git/commitdiff
eigrpd: add correct interface metrics when interface comes up 1054/head
authorDon Slice <dslice@cumulusnetworks.com>
Sat, 26 Aug 2017 19:51:43 +0000 (15:51 -0400)
committerDon Slice <dslice@cumulusnetworks.com>
Sat, 26 Aug 2017 19:55:29 +0000 (15:55 -0400)
Problem noticed where we were not sending the correct metric values
to our peers for connected interfaces.  Found that we were not storing
these values on the structure used to send the update packets.

Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
eigrpd/eigrp_interface.c

index ae9ec293ceda94d9cea91d4e24ece35cd4040b05..aa5951600250081076d7e17ddb27dd55f5342e5b 100644 (file)
@@ -307,6 +307,7 @@ int eigrp_if_up(struct eigrp_interface *ei)
                pe->nt = EIGRP_TOPOLOGY_TYPE_CONNECTED;
 
                ne->prefix = pe;
+               pe->reported_metric = metric;
                pe->state = EIGRP_FSM_STATE_PASSIVE;
                pe->fdistance = eigrp_calculate_metrics(eigrp, metric);
                pe->req_action |= EIGRP_FSM_NEED_UPDATE;