summaryrefslogtreecommitdiffstats
path: root/isisd/isis_redist.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2022-06-13 11:18:36 +0200
committerDonatas Abraitis <donatas@opensourcerouting.org>2022-06-13 20:00:51 +0200
commit70dd370f5ae5a1cfccabb6bfe0d563d6312bc0ed (patch)
tree65fccd2d2e1253e9c31027ca7b2bdaa326aa79d3 /isisd/isis_redist.c
parentMerge pull request #11333 from opensourcerouting/fix/memory_leak_with_rmaps (diff)
downloadfrr-70dd370f5ae5a1cfccabb6bfe0d563d6312bc0ed.tar.xz
frr-70dd370f5ae5a1cfccabb6bfe0d563d6312bc0ed.zip
*: Use autocomplete for route-maps under commands that require it
For example: ``` donatas-laptop# show bgp ipv4 unicast neighbors 127.0.0.2 advertised-routes route-map ? RMAP_NAME Name of the route map testas2 testas donatas-laptop(config)# router bgp donatas-laptop(config-router)# address-family ipv4 donatas-laptop(config-router-af)# redistribute connected route-map ? RMAP_NAME Pointer to route-map entries testas2 testas donatas-laptop(config-router-af)# network 192.168.0.0/23 route-map ? RMAP_NAME Name of the route map testas2 testas ``` Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'isisd/isis_redist.c')
-rw-r--r--isisd/isis_redist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/isisd/isis_redist.c b/isisd/isis_redist.c
index 45d69bc35..dd82c5057 100644
--- a/isisd/isis_redist.c
+++ b/isisd/isis_redist.c
@@ -544,7 +544,7 @@ void isis_redist_area_finish(struct isis_area *area)
DEFUN (isis_redistribute,
isis_redistribute_cmd,
"redistribute <ipv4 " PROTO_IP_REDIST_STR "|ipv6 " PROTO_IP6_REDIST_STR ">"
- " [{metric (0-16777215)|route-map WORD}]",
+ " [{metric (0-16777215)|route-map RMAP_NAME}]",
REDIST_STR
"Redistribute IPv4 routes\n"
PROTO_IP_REDIST_HELP
@@ -636,7 +636,7 @@ DEFUN (no_isis_redistribute,
DEFUN (isis_default_originate,
isis_default_originate_cmd,
- "default-information originate <ipv4|ipv6> [always] [{metric (0-16777215)|route-map WORD}]",
+ "default-information originate <ipv4|ipv6> [always] [{metric (0-16777215)|route-map RMAP_NAME}]",
"Control distribution of default information\n"
"Distribute a default route\n"
"Distribute default route for IPv4\n"