diff options
| author | Your Name <you@example.com> | 2022-10-10 13:51:27 +0300 |
|---|---|---|
| committer | Your Name <you@example.com> | 2022-10-10 13:51:27 +0300 |
| commit | 1857760c1ed38250d6be0d92502f9dc816d4e4cc (patch) | |
| tree | 259571f622170b274283e36d168322dbe8c531b8 | |
| parent | 0c993136efe29af69c4bec572a29ca218e457504 (diff) | |
bgpd: fix display bgp large-community exact-match
Before patch:
frr# show bgp large-community 1:1:1 exact-match
% Large-community malformed
After patch:
frr# show bgp large-community 1:1:1 exact-match
Signed-off-by: Dmitrii Turlupov <dturlupov@factor-ts.ru>
| -rw-r--r-- | bgpd/bgp_route.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 3324eb73de..a07c3b331e 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -12196,8 +12196,10 @@ DEFUN (show_ip_bgp_large_community, return CMD_WARNING; if (argv_find(argv, argc, "AA:BB:CC", &idx)) { - if (argv_find(argv, argc, "exact-match", &idx)) + if (argv_find(argv, argc, "exact-match", &idx)) { + argc--; exact_match = 1; + } return bgp_show_lcommunity(vty, bgp, argc, argv, exact_match, afi, safi, uj); } else |
