diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2016-11-11 07:23:02 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2016-11-23 08:32:30 +0100 |
commit | 34d5ef459140ee7e8ae22c220764dba54b6527cf (patch) | |
tree | ade8d724fb7f11d75981b96db40caf1032abf59f /lib/distribute.c | |
parent | vtysh: initialise readline before binding key (diff) | |
download | frr-34d5ef459140ee7e8ae22c220764dba54b6527cf.tar.xz frr-34d5ef459140ee7e8ae22c220764dba54b6527cf.zip |
vtysh: fix some macro breakage
vtysh's extract.pl script doesn't cope with install_element(var, ) where
"var" is not one of the FOO_NODE constants. Also, the future defun_lex
tool doesn't deal well with preprocessor expansions in the same regard.
This tries simplifying out some of these. lib/distribute.c needs
further thinking.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/distribute.c')
-rw-r--r-- | lib/distribute.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/distribute.c b/lib/distribute.c index 8726e993c..09f5c8a46 100644 --- a/lib/distribute.c +++ b/lib/distribute.c @@ -525,10 +525,16 @@ distribute_list_init (int node) 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); + */ /* install v6 */ if (node == RIPNG_NODE) { - install_element (node, &ipv6_distribute_list_cmd); + install_element (RIPNG_NODE, &ipv6_distribute_list_cmd); } /* TODO: install v4 syntax command for v6 only protocols. */ |