summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_vty.c
diff options
context:
space:
mode:
authorSri Mohana Singamsetty <srimohans@gmail.com>2020-03-30 04:52:41 +0200
committerGitHub <noreply@github.com>2020-03-30 04:52:41 +0200
commita326a812b30e5c11b9d67f9a9434342a9cf6008e (patch)
tree1b10bb04205aba142398c415f591929607f662c9 /bgpd/bgp_vty.c
parentMerge pull request #6104 from donaldsharp/bgp_rr_fixup (diff)
parentbgpd: Unset PEER_FLAG_MAX_PREFIX_OUT for `no neighbor maximum-prefix-out` (diff)
downloadfrr-a326a812b30e5c11b9d67f9a9434342a9cf6008e.tar.xz
frr-a326a812b30e5c11b9d67f9a9434342a9cf6008e.zip
Merge pull request #6107 from ton31337/fix/unset_prefix_out_flag
bgpd: Unset PEER_FLAG_MAX_PREFIX_OUT for `no neighbor maximum-prefix-…
Diffstat (limited to 'bgpd/bgp_vty.c')
-rw-r--r--bgpd/bgp_vty.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index 9fd73fba1..aea6dbbf4 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -6590,6 +6590,7 @@ DEFUN(no_neighbor_maximum_prefix_out,
if (!peer)
return CMD_WARNING_CONFIG_FAILED;
+ UNSET_FLAG(peer->af_flags[afi][safi], PEER_FLAG_MAX_PREFIX_OUT);
peer->pmax_out[afi][safi] = 0;
return CMD_SUCCESS;