summaryrefslogtreecommitdiffstats
path: root/zebra/router-id.c
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2015-11-23 19:05:03 +0100
committerDaniel Walton <dwalton@cumulusnetworks.com>2015-11-23 19:05:03 +0100
commit813d4307f91165d25588408cc1e8f1f729e3e24e (patch)
treef682c55cfd97b89071a2f0be9760b88f2419e2bf /zebra/router-id.c
parentQuagga: vrf_id not being set correctly (diff)
downloadfrr-813d4307f91165d25588408cc1e8f1f729e3e24e.tar.xz
frr-813d4307f91165d25588408cc1e8f1f729e3e24e.zip
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/router-id.c')
-rw-r--r--zebra/router-id.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/zebra/router-id.c b/zebra/router-id.c
index 2b470c6db..82f5a105f 100644
--- a/zebra/router-id.c
+++ b/zebra/router-id.c
@@ -257,8 +257,8 @@ DEFUN (no_router_id,
rid.prefixlen = 0;
rid.family = AF_INET;
- if (argc > 0)
- VTY_GET_INTEGER ("VRF ID", vrf_id, argv[0]);
+ if (argc > 1)
+ VTY_GET_INTEGER ("VRF ID", vrf_id, argv[1]);
router_id_set (&rid, vrf_id);
@@ -266,10 +266,18 @@ DEFUN (no_router_id,
}
ALIAS (no_router_id,
+ no_router_id_val_cmd,
+ "no router-id A.B.C.D",
+ NO_STR
+ "Remove the manually configured router-id\n"
+ "IP address to use for router-id\n")
+
+ALIAS (no_router_id,
no_router_id_vrf_cmd,
- "no router-id " VRF_CMD_STR,
+ "no router-id A.B.C.D " VRF_CMD_STR,
NO_STR
"Remove the manually configured router-id\n"
+ "IP address to use for router-id\n"
VRF_CMD_HELP_STR)
static int
@@ -287,6 +295,7 @@ router_id_cmd_init (void)
install_element (CONFIG_NODE, &router_id_cmd);
install_element (CONFIG_NODE, &no_router_id_cmd);
install_element (CONFIG_NODE, &router_id_vrf_cmd);
+ install_element (CONFIG_NODE, &no_router_id_val_cmd);
install_element (CONFIG_NODE, &no_router_id_vrf_cmd);
}