summaryrefslogtreecommitdiff
path: root/zebra/zserv.c
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2015-11-23 18:05:03 +0000
committerDaniel Walton <dwalton@cumulusnetworks.com>2015-11-23 18:05:03 +0000
commit813d4307f91165d25588408cc1e8f1f729e3e24e (patch)
treef682c55cfd97b89071a2f0be9760b88f2419e2bf /zebra/zserv.c
parent1a1f4efab365954c7b0ab56e974c2d707c0923c5 (diff)
Should be able to "no" the full text of any config line
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> Ticket: CM-5816
Diffstat (limited to 'zebra/zserv.c')
-rw-r--r--zebra/zserv.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/zebra/zserv.c b/zebra/zserv.c
index 87fa5ce49c..8a66b3c99c 100644
--- a/zebra/zserv.c
+++ b/zebra/zserv.c
@@ -2285,6 +2285,17 @@ DEFUN (config_table,
return CMD_SUCCESS;
}
+DEFUN (no_config_table,
+ no_config_table_cmd,
+ "no table TABLENO",
+ NO_STR
+ "Configure target kernel routing table\n"
+ "TABLE integer\n")
+{
+ zebrad.rtm_table_default = 0;
+ return CMD_SUCCESS;
+}
+
DEFUN (ip_forwarding,
ip_forwarding_cmd,
"ip forwarding",
@@ -2529,6 +2540,7 @@ zebra_init (void)
install_element (VIEW_NODE, &show_table_cmd);
install_element (ENABLE_NODE, &show_table_cmd);
install_element (CONFIG_NODE, &config_table_cmd);
+ install_element (CONFIG_NODE, &no_config_table_cmd);
#endif /* HAVE_NETLINK */
#ifdef HAVE_IPV6