diff options
author | rgirada <rgirada@vmware.com> | 2021-02-11 11:05:12 +0100 |
---|---|---|
committer | rgirada <rgirada@vmware.com> | 2021-03-30 07:04:46 +0200 |
commit | 3d5b9855779357e51e1b8ab6a9010b1e702f5b2d (patch) | |
tree | 69a15f08732b51f3098785f7ec05a1c578927467 /ospfd/ospf_zebra.c | |
parent | Merge pull request #8351 from volta-networks/fix_ospf6_abr_examin_summary_che... (diff) | |
download | frr-3d5b9855779357e51e1b8ab6a9010b1e702f5b2d.tar.xz frr-3d5b9855779357e51e1b8ab6a9010b1e702f5b2d.zip |
ospfd: Max multipath config support
Description:
OSPF does not have an option to control the maximum multiple
equal cost paths to reach a destination/route(ECMP).
Currently, it is using the system specific max multiple paths.
But Somtimes, It requires to control the multiple paths from ospf.
This cli helps to configure the max number multiple paths in ospf.
Signed-off-by: Rajesh Girada <rgirada@vmware.com>
Diffstat (limited to 'ospfd/ospf_zebra.c')
-rw-r--r-- | ospfd/ospf_zebra.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_zebra.c b/ospfd/ospf_zebra.c index 56b2f8d66..2e51629bb 100644 --- a/ospfd/ospf_zebra.c +++ b/ospfd/ospf_zebra.c @@ -297,7 +297,7 @@ void ospf_zebra_add(struct ospf *ospf, struct prefix_ipv4 *p, } for (ALL_LIST_ELEMENTS_RO(or->paths, node, path)) { - if (api.nexthop_num >= MULTIPATH_NUM) + if (api.nexthop_num >= ospf->max_multipath) break; ospf_zebra_add_nexthop(ospf, path, &api); |