diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2017-03-22 10:22:14 +0100 |
---|---|---|
committer | Quentin Young <qlyoung@users.noreply.github.com> | 2017-03-28 21:48:07 +0200 |
commit | 2f834b3561609a15d68228091192755f77522b66 (patch) | |
tree | 2af5b5bc3701215b0016a7c808c1eeb802f3c6c0 /lib | |
parent | vtysh: remove ignore list (diff) | |
download | frr-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.c | 16 |
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) { |