babeld: add command: "show_babel_running_config".
diff --git a/babeld/babel_interface.c b/babeld/babel_interface.c
index d4c84b3..3f58004 100644
--- a/babeld/babel_interface.c
+++ b/babeld/babel_interface.c
@@ -43,6 +43,7 @@
#include "command.h"
#include "prefix.h"
#include "vector.h"
+#include "distribute.h"
#include "babel_main.h"
#include "util.h"
@@ -829,6 +830,24 @@
return CMD_SUCCESS;
}
+DEFUN (show_babel_running_config,
+ show_babel_running_config_cmd,
+ "show babel running-config",
+ SHOW_STR
+ IP_STR
+ "Babel information\n"
+ "Configuration information\n"
+ "No attributes\n")
+{
+ vty_out(vty, " -- Babel running configuration --%s", VTY_NEWLINE);
+ show_babel_main_configuration(vty);
+ show_babeld_configuration(vty);
+ vty_out(vty, " -- ditribution lists --%s", VTY_NEWLINE);
+ config_show_distribute(vty);
+
+ return CMD_SUCCESS;
+}
+
void
babel_if_init ()
{
@@ -864,6 +883,8 @@
install_element(ENABLE_NODE, &show_babel_neighbour_cmd);
install_element(VIEW_NODE, &show_babel_database_cmd);
install_element(ENABLE_NODE, &show_babel_database_cmd);
+ install_element(VIEW_NODE, &show_babel_running_config_cmd);
+ install_element(ENABLE_NODE, &show_babel_running_config_cmd);
}
/* hooks: functions called respectively when struct interface is