]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib: don't allow to recurse inside route-map node
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Wed, 19 Feb 2020 20:51:07 +0000 (17:51 -0300)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Wed, 19 Feb 2020 20:54:08 +0000 (17:54 -0300)
vtysh should handle going back up one level to try the command, there is
no need to be able to recurse inside route-map.

This also fixes a problem with northbound hitting the XPath queue limit
of 8 nodes.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
lib/routemap_cli.c

index 7023710564deda1f2a5a40d71595778381a7d78b..5b03b5266f3d295c87a039a74fd1af41534cb3de 100644 (file)
@@ -1064,7 +1064,6 @@ void route_map_cli_init(void)
        install_element(CONFIG_NODE, &no_route_map_all_cmd);
 
        /* Install the on-match stuff */
-       install_element(RMAP_NODE, &route_map_cmd);
        install_element(RMAP_NODE, &rmap_onmatch_next_cmd);
        install_element(RMAP_NODE, &no_rmap_onmatch_next_cmd);
        install_element(RMAP_NODE, &rmap_onmatch_goto_cmd);