diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-06-13 11:18:36 +0200 |
---|---|---|
committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-06-13 20:00:51 +0200 |
commit | 70dd370f5ae5a1cfccabb6bfe0d563d6312bc0ed (patch) | |
tree | 65fccd2d2e1253e9c31027ca7b2bdaa326aa79d3 /ripngd | |
parent | Merge pull request #11333 from opensourcerouting/fix/memory_leak_with_rmaps (diff) | |
download | frr-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 'ripngd')
-rw-r--r-- | ripngd/ripng_cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ripngd/ripng_cli.c b/ripngd/ripng_cli.c index 5bf3103a7..ded2f4358 100644 --- a/ripngd/ripng_cli.c +++ b/ripngd/ripng_cli.c @@ -300,7 +300,7 @@ void cli_show_ripng_passive_interface(struct vty *vty, */ DEFPY_YANG (ripng_redistribute, ripng_redistribute_cmd, - "[no] redistribute " FRR_REDIST_STR_RIPNGD "$protocol [{metric (0-16)|route-map WORD}]", + "[no] redistribute " FRR_REDIST_STR_RIPNGD "$protocol [{metric (0-16)|route-map RMAP_NAME$route_map}]", NO_STR REDIST_STR FRR_REDIST_HELP_STR_RIPNGD |