summaryrefslogtreecommitdiff
path: root/lib/routemap_northbound.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-04-09 19:42:23 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-04-09 20:58:36 +0300
commit38133c4a11141c60be07906ce7a0e9efc55ba318 (patch)
treeea565def0566459c005462b6441183d92df0d0a9 /lib/routemap_northbound.c
parent3ebeec9446e4bcc29f477c778ff2b4fa276df7d3 (diff)
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 'lib/routemap_northbound.c')
-rw-r--r--lib/routemap_northbound.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/routemap_northbound.c b/lib/routemap_northbound.c
index 64be8ad6b0..db06e9caac 100644
--- a/lib/routemap_northbound.c
+++ b/lib/routemap_northbound.c
@@ -1225,6 +1225,7 @@ const struct frr_yang_module_info frr_route_map_info = {
.xpath = "/frr-route-map:lib/route-map/optimization-disabled",
.cbs = {
.modify = lib_route_map_optimization_disabled_modify,
+ .cli_show = route_map_optimization_disabled_show,
}
},
{