diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-26 23:29:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-26 23:29:59 +0200 |
| commit | 1254d5fc4e7d6b3717177fd353974a55b1777d4a (patch) | |
| tree | 527cd29e0d69f3eaad25ee6b3a38e2a13572b77b /lib/routemap.c | |
| parent | 5db3bb0de95c6828bc8eda807f679ca2a7a68f8d (diff) | |
| parent | 83abe9c3cb9acd610dcdf8341374428df5ea9093 (diff) | |
Merge pull request #15220 from LabNConsulting/chopps/ripd-convert
ripd to mgmtd
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); +} |
