diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-09-29 03:26:55 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-09-29 03:26:55 +0200 |
commit | 692b4c659416242381781dc918444580d2c31b07 (patch) | |
tree | 32d8e2d7fa659a5adeb34c23ab7d7c812a7c3632 /ospfd/ospf_opaque.c | |
parent | bgpd: change some <1-10> to (1-10> (diff) | |
download | frr-692b4c659416242381781dc918444580d2c31b07.tar.xz frr-692b4c659416242381781dc918444580d2c31b07.zip |
ospfd: resolve CHECK ME's
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'ospfd/ospf_opaque.c')
-rw-r--r-- | ospfd/ospf_opaque.c | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/ospfd/ospf_opaque.c b/ospfd/ospf_opaque.c index 9ffb50896..a1981be86 100644 --- a/ospfd/ospf_opaque.c +++ b/ospfd/ospf_opaque.c @@ -763,13 +763,6 @@ out: * Followings are (vty) configuration functions for Opaque-LSAs handling. *------------------------------------------------------------------------*/ -/* - * CHECK ME - The following ALIASes need to be implemented in this DEFUN - * "ospf opaque-lsa", - * "OSPF specific commands\n" - * "Enable the Opaque-LSA capability (rfc2370)\n" - * - */ DEFUN (capability_opaque, capability_opaque_cmd, "capability opaque", @@ -793,15 +786,15 @@ DEFUN (capability_opaque, return CMD_SUCCESS; } +DEFUN (ospf_opaque, + ospf_opaque_cmd, + "ospf opaque-lsa", + "OSPF specific commands\n" + "Enable the Opaque-LSA capability (rfc2370)\n") +{ + return capability_opaque (self, vty, argc, argv); +} -/* - * CHECK ME - The following ALIASes need to be implemented in this DEFUN - * "no ospf opaque-lsa", - * NO_STR - * "OSPF specific commands\n" - * "Disable the Opaque-LSA capability (rfc2370)\n" - * - */ DEFUN (no_capability_opaque, no_capability_opaque_cmd, "no capability opaque", @@ -826,12 +819,23 @@ DEFUN (no_capability_opaque, return CMD_SUCCESS; } +DEFUN (no_ospf_opaque, + no_ospf_opaque_cmd, + "no ospf opaque-lsa", + NO_STR + "OSPF specific commands\n" + "Enable the Opaque-LSA capability (rfc2370)\n") +{ + return no_capability_opaque (self, vty, argc, argv); +} static void ospf_opaque_register_vty (void) { install_element (OSPF_NODE, &capability_opaque_cmd); install_element (OSPF_NODE, &no_capability_opaque_cmd); + install_element (OSPF_NODE, &ospf_opaque_cmd); + install_element (OSPF_NODE, &no_ospf_opaque_cmd); return; } |