summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2022-10-11 08:56:39 +0200
committerGitHub <noreply@github.com>2022-10-11 08:56:39 +0200
commitafd4d90111125e35a6023a2ca27512396a57a33a (patch)
treea14bc1f87ff970951661a1e5eed73a16a6e2df72
parentMerge pull request #9998 from pguibert6WIND/bgp_tcp_keepalive (diff)
parentbgpd: fix display bgp large-community exact-match (diff)
downloadfrr-afd4d90111125e35a6023a2ca27512396a57a33a.tar.xz
frr-afd4d90111125e35a6023a2ca27512396a57a33a.zip
Merge pull request #12084 from ak503/bgp_show_lc
bgpd: fix display bgp large-community exact-match
-rw-r--r--bgpd/bgp_route.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 3324eb73d..a07c3b331 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