summaryrefslogtreecommitdiff
path: root/sharpd/sharp_zebra.c
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2019-12-11 11:02:15 -0500
committerGitHub <noreply@github.com>2019-12-11 11:02:15 -0500
commitc81c2303e631a8ccd80229621265baef716ea778 (patch)
tree16da85304572827fefadd14b32b6acbf466923df /sharpd/sharp_zebra.c
parent9880c0f3ae2706de0bc07c10133b0c37b14feea5 (diff)
parent597371a615b9f062642dfd97b4d81c05e7a9bd55 (diff)
Merge pull request #5497 from donaldsharp/unequality_ecmp
Unequality ecmp
Diffstat (limited to 'sharpd/sharp_zebra.c')
-rw-r--r--sharpd/sharp_zebra.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sharpd/sharp_zebra.c b/sharpd/sharp_zebra.c
index 797398c791..4fc8f40ae1 100644
--- a/sharpd/sharp_zebra.c
+++ b/sharpd/sharp_zebra.c
@@ -243,6 +243,8 @@ void route_add(struct prefix *p, vrf_id_t vrf_id,
api_nh = &api.nexthops[i];
api_nh->vrf_id = nh->vrf_id;
api_nh->type = nh->type;
+ api_nh->weight = nh->weight;
+
switch (nh->type) {
case NEXTHOP_TYPE_IPV4:
api_nh->gate = nh->gate;