summaryrefslogtreecommitdiffstats
path: root/ospf6d
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2017-08-21 14:30:41 +0200
committerGitHub <noreply@github.com>2017-08-21 14:30:41 +0200
commitadd57540ba96f25a4fe27e48ac8599bac67bce72 (patch)
tree10d291d270a31e1e439eef1d46c69ce0cdeacb4a /ospf6d
parentMerge pull request #1008 from donaldsharp/check_for_daemon_existence (diff)
parent*: Add 'show debugging' command from vtysh (diff)
downloadfrr-add57540ba96f25a4fe27e48ac8599bac67bce72.tar.xz
frr-add57540ba96f25a4fe27e48ac8599bac67bce72.zip
Merge pull request #1009 from donaldsharp/show_cmds
Show cmds
Diffstat (limited to 'ospf6d')
-rw-r--r--ospf6d/ospf6d.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/ospf6d/ospf6d.c b/ospf6d/ospf6d.c
index 48c34b797..f6b9e0ec1 100644
--- a/ospf6d/ospf6d.c
+++ b/ospf6d/ospf6d.c
@@ -85,10 +85,24 @@ static int config_write_ospf6_debug(struct vty *vty)
config_write_ospf6_debug_asbr(vty);
config_write_ospf6_debug_abr(vty);
config_write_ospf6_debug_flood(vty);
- vty_out(vty, "!\n");
+
return 0;
}
+DEFUN_NOSH (show_debugging_ospf6,
+ show_debugging_ospf6_cmd,
+ "show debugging [ospf6]",
+ SHOW_STR
+ DEBUG_STR
+ OSPF6_STR)
+{
+ vty_out(vty, "OSPF6 debugging status:");
+
+ config_write_ospf6_debug(vty);
+
+ return CMD_SUCCESS;
+}
+
#define AREA_LSDB_TITLE_FORMAT \
"\n Area Scoped Link State Database (Area %s)\n\n"
#define IF_LSDB_TITLE_FORMAT \
@@ -1157,6 +1171,8 @@ void ospf6_init(void)
install_element_ospf6_clear_interface();
+ install_element(VIEW_NODE, &show_debugging_ospf6_cmd);
+
install_element(VIEW_NODE, &show_ipv6_ospf6_border_routers_cmd);
install_element(VIEW_NODE, &show_ipv6_ospf6_linkstate_cmd);