diff options
| author | Christian Hopps <chopps@labn.net> | 2024-01-24 10:59:14 -0500 |
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2024-01-26 12:34:23 -0500 |
| commit | dabc92de9e3b02e5d1a73d6fc43ffbd51eaded91 (patch) | |
| tree | 10ccd06fb6e7468c373ef7b0b5ea8a120e806a6b /lib/routemap.c | |
| parent | f7594b55c23fe377c6c5811879e89557e6cb4b57 (diff) | |
lib: convert route-map to mgmtd
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/routemap.c')
| -rw-r--r-- | lib/routemap.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/routemap.c b/lib/routemap.c index e8a92cda0b..6b3f81b4d4 100644 --- a/lib/routemap.c +++ b/lib/routemap.c @@ -3409,7 +3409,7 @@ DEFUN_HIDDEN(show_route_map_pfx_tbl, show_route_map_pfx_tbl_cmd, } /* Initialization of route map vector. */ -void route_map_init(void) +void route_map_init_new(bool in_backend) { int i; @@ -3424,7 +3424,10 @@ void route_map_init(void) UNSET_FLAG(rmap_debug, DEBUG_ROUTEMAP); - route_map_cli_init(); + if (!in_backend) { + /* we do not want to handle config commands in the backend */ + route_map_cli_init(); + } /* Install route map top node. */ install_node(&rmap_debug_node); @@ -3444,3 +3447,8 @@ void route_map_init(void) install_element(ENABLE_NODE, &show_route_map_pfx_tbl_cmd); } + +void route_map_init(void) +{ + route_map_init_new(false); +} |
