diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-11-04 00:59:19 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-03-01 13:58:32 +0100 |
commit | 37fe77317cecd662eafaeab67aad02fed949b388 (patch) | |
tree | 30c22ca2369a697a07d9a00457460515ea4935e5 /bgpd/bgp_mpath.c | |
parent | Merge pull request #226 from donaldsharp/evpn_fix (diff) | |
download | frr-37fe77317cecd662eafaeab67aad02fed949b388.tar.xz frr-37fe77317cecd662eafaeab67aad02fed949b388.zip |
bgpd, zebra: Allow setting ecmp from daemon cli
When starting up bgp and zebra now, you can specify
-e <number> or --ecmp <number>
and that number will be used as the maximum ecmp
that can be used.
The <number specified must be >= 1 and <= MULTIPATH_NUM
that Quagga is compiled with.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_mpath.c')
-rw-r--r-- | bgpd/bgp_mpath.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bgpd/bgp_mpath.c b/bgpd/bgp_mpath.c index f564ff169..a95c4a008 100644 --- a/bgpd/bgp_mpath.c +++ b/bgpd/bgp_mpath.c @@ -84,11 +84,11 @@ bgp_maximum_paths_unset (struct bgp *bgp, afi_t afi, safi_t safi, switch (peertype) { case BGP_PEER_IBGP: - bgp->maxpaths[afi][safi].maxpaths_ibgp = MULTIPATH_NUM; + bgp->maxpaths[afi][safi].maxpaths_ibgp = multipath_num; bgp->maxpaths[afi][safi].ibgp_flags = 0; break; case BGP_PEER_EBGP: - bgp->maxpaths[afi][safi].maxpaths_ebgp = MULTIPATH_NUM; + bgp->maxpaths[afi][safi].maxpaths_ebgp = multipath_num; break; default: return -1; @@ -436,7 +436,7 @@ bgp_info_mpath_update (struct bgp_node *rn, struct bgp_info *new_best, char path_buf[PATH_ADDPATH_STR_BUFFER]; mpath_changed = 0; - maxpaths = MULTIPATH_NUM; + maxpaths = multipath_num; mpath_count = 0; cur_mpath = NULL; old_mpath_count = 0; |