summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-03-22 10:22:14 +0100
committerQuentin Young <qlyoung@users.noreply.github.com>2017-03-28 21:48:07 +0200
commit2f834b3561609a15d68228091192755f77522b66 (patch)
tree2af5b5bc3701215b0016a7c808c1eeb802f3c6c0 /lib
parentvtysh: remove ignore list (diff)
downloadfrr-2f834b3561609a15d68228091192755f77522b66.tar.xz
frr-2f834b3561609a15d68228091192755f77522b66.zip
vtysh: parsing fixes on distribute-list
The vtysh preprocessing stuff doesn't like the first argument to install_element() being something other than a _NODE constant, and the comment hack wasn't cutting it... just expand this. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/distribute.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/distribute.c b/lib/distribute.c
index 2e76e352c..01c338f17 100644
--- a/lib/distribute.c
+++ b/lib/distribute.c
@@ -524,14 +524,14 @@ distribute_list_init (int node)
disthash = hash_create (distribute_hash_make,
(int (*) (const void *, const void *)) distribute_cmp);
- install_element (node, &distribute_list_cmd);
- install_element (node, &no_distribute_list_cmd);
-/*
- install_element (RIP_NODE, &distribute_list_cmd);
- install_element (RIP_NODE, &no_distribute_list_cmd);
- install_element (RIPNG_NODE, &distribute_list_cmd);
- install_element (RIPNG_NODE, &no_distribute_list_cmd);
- */
+ /* vtysh command-extraction doesn't grok install_element(node, ) */
+ if (node == RIP_NODE) {
+ install_element (RIP_NODE, &distribute_list_cmd);
+ install_element (RIP_NODE, &no_distribute_list_cmd);
+ } else if (node == RIPNG_NODE) {
+ install_element (RIPNG_NODE, &distribute_list_cmd);
+ install_element (RIPNG_NODE, &no_distribute_list_cmd);
+ }
/* install v6 */
if (node == RIPNG_NODE) {