diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2025-01-27 23:31:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-27 23:31:46 +0200 |
| commit | 95db38f394449b6a03b2b9f9e964351eef62e37f (patch) | |
| tree | 7c45c69a16f3f2a2a04bef1da66c99a8f6cfcb2c /bgpd | |
| parent | 9890d3acce8014e0eee6cfa40295b6866c5defb0 (diff) | |
| parent | e1ab99261a5fa7d6035e55703ef3dab0ba4cdd68 (diff) | |
Merge pull request #17919 from pguibert6WIND/bgp_suppressed_attribute
Bgp suppressed attribute
Diffstat (limited to 'bgpd')
| -rw-r--r-- | bgpd/bgp_route.c | 6 |
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) { |
