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/ospfd.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/ospfd.c')
-rw-r--r-- | ospfd/ospfd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ospfd/ospfd.c b/ospfd/ospfd.c index f126577ae..39296c413 100644 --- a/ospfd/ospfd.c +++ b/ospfd/ospfd.c @@ -367,6 +367,9 @@ struct ospf *ospf_new_alloc(unsigned short instance, const char *name) new->maxage_lsa = route_table_init(); new->t_maxage_walker = NULL; + /* Max paths initialization */ + new->max_multipath = MULTIPATH_NUM; + /* Distance table init. */ new->distance_table = route_table_init(); @@ -900,6 +903,7 @@ static void ospf_finish_final(struct ospf *ospf) close(ospf->fd); stream_free(ospf->ibuf); ospf->fd = -1; + ospf->max_multipath = MULTIPATH_NUM; ospf_delete(ospf); if (ospf->name) { |