diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-04-19 19:17:11 +0300 |
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-04-19 19:17:11 +0300 |
| commit | 9b8f18a66cd53c506255c19829e5aada822e4ac8 (patch) | |
| tree | e86afeadee83fd0d8e2cfa0bbcdf4246ab036ba9 | |
| parent | 8e7fb950c13779d700fa79f82423bfcb64974b39 (diff) | |
vtysh: Fix `show route-map` command when calling via `do`
Before:
```
ton(config)# do sh route-map
% [ZEBRA] Unknown command: show route-map
% [BGP] Unknown command: show route-map
% [ISIS] Unknown command: show route-map
```
Fixes: 570fdc55fd65899cd4376193e833594af6bca093 ("lib,vtysh: fix show route map JSON output")
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
| -rw-r--r-- | vtysh/vtysh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index 1868910897..03e2428b9e 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -3423,7 +3423,7 @@ static void show_route_map_send(const char *route_map, bool json) bool first = true; char command_line[128]; - snprintf(command_line, sizeof(command_line), "show route-map "); + snprintf(command_line, sizeof(command_line), "do show route-map "); if (route_map) strlcat(command_line, route_map, sizeof(command_line)); if (json) |
