diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2021-04-09 18:42:23 +0200 |
---|---|---|
committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-04-09 19:58:36 +0200 |
commit | 38133c4a11141c60be07906ce7a0e9efc55ba318 (patch) | |
tree | ea565def0566459c005462b6441183d92df0d0a9 /vtysh/vtysh_config.c | |
parent | lib: convert route-map optimization to NB (diff) | |
download | frr-38133c4a11141c60be07906ce7a0e9efc55ba318.tar.xz frr-38133c4a11141c60be07906ce7a0e9efc55ba318.zip |
lib, doc: add "route-map NAME optimization" command
Currently we have a "route-map optimization" command which is entered
from inside the route-map entry but actually applies to the whole
route-map. In addition, this command is not shown in the running-config
and not stored to the startup-config during "write".
Let's add a new command on the config node level to control this setting
and show it in the running-config to make possible to save it during
"write".
The old command is saved for the backward compatibility but hidden and
marked as deprecated.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'vtysh/vtysh_config.c')
-rw-r--r-- | vtysh/vtysh_config.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vtysh/vtysh_config.c b/vtysh/vtysh_config.c index 498d3e5f6..3414c764c 100644 --- a/vtysh/vtysh_config.c +++ b/vtysh/vtysh_config.c @@ -342,6 +342,9 @@ void vtysh_config_parse_line(void *arg, const char *line) config = config_get(OPENFABRIC_NODE, line); else if (strncmp(line, "route-map", strlen("route-map")) == 0) config = config_get(RMAP_NODE, line); + else if (strncmp(line, "no route-map", strlen("no route-map")) + == 0) + config = config_get(RMAP_NODE, line); else if (strncmp(line, "pbr-map", strlen("pbr-map")) == 0) config = config_get(PBRMAP_NODE, line); else if (strncmp(line, "access-list", strlen("access-list")) |