summaryrefslogtreecommitdiff
path: root/bgpd/bgp_route.c
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/bgp_route.c')
-rw-r--r--bgpd/bgp_route.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 8d87f2cd04..87e8feb3bf 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -1836,8 +1836,7 @@ bool subgroup_announce_check(struct bgp_dest *dest, struct bgp_path_info *pi,
/* If community is not disabled check the no-export and local. */
if (!transparent && bgp_community_filter(peer, piattr)) {
if (bgp_debug_update(NULL, p, subgrp->update_group, 0))
- zlog_debug(
- "subgrpannouncecheck: community filter check fail");
+ zlog_debug("%s: community filter check fail", __func__);
return false;
}
@@ -13915,16 +13914,16 @@ void cli_show_bgp_global_afi_safi_unicast_admin_distance_route(
: "");
}
-DEFPY_YANG(bgp_dampening,
- bgp_dampening_cmd,
- "[no] bgp dampening [(1-45)$halflife [(1-20000)$reuse (1-20000)$suppress (1-255)$max_supress]]",
- NO_STR
- "BGP Specific commands\n"
- "Enable route-flap dampening\n"
- "Half-life time for the penalty\n"
- "Value to start reusing a route\n"
- "Value to start suppressing a route\n"
- "Maximum duration to suppress a stable route\n")
+DEFPY_YANG(
+ bgp_dampening, bgp_dampening_cmd,
+ "[no] bgp dampening [(1-45)$halflife [(1-20000)$reuse (1-20000)$suppress (1-255)$max_suppress]]",
+ NO_STR
+ "BGP Specific commands\n"
+ "Enable route-flap dampening\n"
+ "Half-life time for the penalty\n"
+ "Value to start reusing a route\n"
+ "Value to start suppressing a route\n"
+ "Maximum duration to suppress a stable route\n")
{
afi_t afi;
safi_t safi;
@@ -13943,7 +13942,7 @@ DEFPY_YANG(bgp_dampening,
nb_cli_enqueue_change(vty, "./suppress-above",
NB_OP_MODIFY, suppress_str);
nb_cli_enqueue_change(vty, "./unreach-decay",
- NB_OP_MODIFY, max_supress_str);
+ NB_OP_MODIFY, max_suppress_str);
} if (argc == 3) {
nb_cli_enqueue_change(vty, "./reach-decay",
NB_OP_MODIFY, halflife_str);