diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-12-03 23:29:02 +0100 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-05-17 02:27:08 +0200 |
commit | a8144d7fc8521c1f01f73e28b68df20110ad7e81 (patch) | |
tree | 703cbf994f448b9ca0fd7b0cd97a3a7bfe63e162 /vrrpd/vrrp_vty.c | |
parent | vrrpd: add .gitignore (diff) | |
download | frr-a8144d7fc8521c1f01f73e28b68df20110ad7e81.tar.xz frr-a8144d7fc8521c1f01f73e28b68df20110ad7e81.zip |
vrrpd: interface support
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'vrrpd/vrrp_vty.c')
-rw-r--r-- | vrrpd/vrrp_vty.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vrrpd/vrrp_vty.c b/vrrpd/vrrp_vty.c index f438c2489..4c5ce7f85 100644 --- a/vrrpd/vrrp_vty.c +++ b/vrrpd/vrrp_vty.c @@ -61,7 +61,11 @@ DEFUN(vrrp_vrid, vrid = strtoul(argv[idx]->arg, NULL, 10); struct vrrp_vrouter *vr = vrrp_vrouter_create(ifp, vrid); - vrrp_event(vr, VRRP_EVENT_STARTUP); + int ret = vrrp_event(vr, VRRP_EVENT_STARTUP); + if (ret < 0) { + vty_out(vty, "%% Failed to start VRRP instance\n"); + return CMD_WARNING_CONFIG_FAILED; + } return CMD_SUCCESS; } @@ -76,5 +80,6 @@ void vrrp_vty_init(void) install_node(&interface_node, NULL); if_cmd_init(); install_element(VIEW_NODE, &show_debugging_vrrpd_cmd); + install_element(ENABLE_NODE, &show_debugging_vrrpd_cmd); install_element(INTERFACE_NODE, &vrrp_vrid_cmd); } |