diff options
author | Christian Hopps <chopps@labn.net> | 2024-01-24 16:59:14 +0100 |
---|---|---|
committer | Christian Hopps <chopps@labn.net> | 2024-01-26 18:34:23 +0100 |
commit | dabc92de9e3b02e5d1a73d6fc43ffbd51eaded91 (patch) | |
tree | 10ccd06fb6e7468c373ef7b0b5ea8a120e806a6b /lib/routemap_northbound.c | |
parent | doc: updates to mgmtd conversion documentation (diff) | |
download | frr-dabc92de9e3b02e5d1a73d6fc43ffbd51eaded91.tar.xz frr-dabc92de9e3b02e5d1a73d6fc43ffbd51eaded91.zip |
lib: convert route-map to mgmtd
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/routemap_northbound.c')
-rw-r--r-- | lib/routemap_northbound.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/lib/routemap_northbound.c b/lib/routemap_northbound.c index a7a77cc23..1bba4dad4 100644 --- a/lib/routemap_northbound.c +++ b/lib/routemap_northbound.c @@ -1550,3 +1550,45 @@ const struct frr_yang_module_info frr_route_map_info = { }, } }; + +const struct frr_yang_module_info frr_route_map_cli_info = { + .name = "frr-route-map", + .ignore_cfg_cbs = true, + .nodes = { + { + .xpath = "/frr-route-map:lib/route-map/optimization-disabled", + .cbs.cli_show = route_map_optimization_disabled_show, + }, + { + .xpath = "/frr-route-map:lib/route-map/entry", + .cbs = { + .cli_cmp = route_map_instance_cmp, + .cli_show = route_map_instance_show, + .cli_show_end = route_map_instance_show_end, + } + }, + { + .xpath = "/frr-route-map:lib/route-map/entry/description", + .cbs.cli_show = route_map_description_show, + }, + { + .xpath = "/frr-route-map:lib/route-map/entry/call", + .cbs.cli_show = route_map_call_show, + }, + { + .xpath = "/frr-route-map:lib/route-map/entry/exit-policy", + .cbs.cli_show = route_map_exit_policy_show, + }, + { + .xpath = "/frr-route-map:lib/route-map/entry/match-condition", + .cbs.cli_show = route_map_condition_show, + }, + { + .xpath = "/frr-route-map:lib/route-map/entry/set-action", + .cbs.cli_show = route_map_action_show, + }, + { + .xpath = NULL, + }, + } +}; |