If you are in VIEW_NODE, the command should exist in ENABLE_NODE
as well.  This is being done to reduce chances of code being
added to one but not the other NODE.

Signed-off-by: Donald Sharp <[email protected]>
---
 lib/command.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/command.c b/lib/command.c
index 8c8bf1b..6cff884 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -616,6 +616,9 @@ install_element (enum node_type ntype, struct cmd_element 
*cmd)
   vector_set (cnode->cmd_vector, cmd);
   if (cmd->tokens == NULL)
     cmd->tokens = cmd_parse_format(cmd->string, cmd->doc);
+
+  if (ntype == VIEW_NODE)
+    install_element (ENABLE_NODE, cmd);
 }
 
 static const unsigned char itoa64[] =
-- 
1.9.1


_______________________________________________
Quagga-dev mailing list
[email protected]
https://lists.quagga.net/mailman/listinfo/quagga-dev

Reply via email to