summaryrefslogtreecommitdiff
path: root/bgpd
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2025-01-27 23:31:46 +0200
committerGitHub <noreply@github.com>2025-01-27 23:31:46 +0200
commit95db38f394449b6a03b2b9f9e964351eef62e37f (patch)
tree7c45c69a16f3f2a2a04bef1da66c99a8f6cfcb2c /bgpd
parent9890d3acce8014e0eee6cfa40295b6866c5defb0 (diff)
parente1ab99261a5fa7d6035e55703ef3dab0ba4cdd68 (diff)
Merge pull request #17919 from pguibert6WIND/bgp_suppressed_attribute
Bgp suppressed attribute
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_route.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 672c43b37c..a2620a5a4c 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -10951,6 +10951,12 @@ void route_vty_out_detail(struct vty *vty, struct bgp *bgp, struct bgp_dest *bn,
else
vty_out(vty, ", (stale)");
}
+ if (bgp_path_suppressed(path)) {
+ if (json_paths)
+ json_object_boolean_true_add(json_path, "suppressed");
+ else
+ vty_out(vty, ", (suppressed)");
+ }
if (CHECK_FLAG(attr->flag, ATTR_FLAG_BIT(BGP_ATTR_AGGREGATOR))) {
if (json_paths) {