diff options
| author | Daniel Walton <dwalton@cumulusnetworks.com> | 2016-09-30 01:27:05 +0000 |
|---|---|---|
| committer | Daniel Walton <dwalton@cumulusnetworks.com> | 2016-09-30 01:27:05 +0000 |
| commit | 1d68dbfe66479d81a570d8d4aa2d0f0d7ba57184 (patch) | |
| tree | 86e24c95b6a508cdf97bdabac318d4e5e017418e /ospf6d/ospf6_interface.c | |
| parent | 58749582a9a2c5930d907d88a3ad0d0c5c24f627 (diff) | |
ospf6d: scrubbed some argc CHECK MEs
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Diffstat (limited to 'ospf6d/ospf6_interface.c')
| -rw-r--r-- | ospf6d/ospf6_interface.c | 35 |
1 files changed, 7 insertions, 28 deletions
diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c index e15fb9971e..c08d4ee840 100644 --- a/ospf6d/ospf6_interface.c +++ b/ospf6d/ospf6_interface.c @@ -986,32 +986,20 @@ ospf6_interface_show (struct vty *vty, struct interface *ifp) } /* show interface */ -/* - * CHECK ME - The following ALIASes need to be implemented in this DEFUN - * "show ipv6 ospf6 interface", - * SHOW_STR - * IP6_STR - * OSPF6_STR - * INTERFACE_STR - * - * - */ DEFUN (show_ipv6_ospf6_interface, show_ipv6_ospf6_interface_ifname_cmd, - "show ipv6 ospf6 interface IFNAME", + "show ipv6 ospf6 interface [IFNAME]", SHOW_STR IP6_STR OSPF6_STR INTERFACE_STR - IFNAME_STR - ) + IFNAME_STR) { - /* CHECK ME argc referenced below */ int idx_ifname = 4; struct interface *ifp; struct listnode *i; - if (argc) + if (argc == 5) { ifp = if_lookup_by_name (argv[idx_ifname]->arg); if (ifp == NULL) @@ -1364,21 +1352,13 @@ DEFUN (auto_cost_reference_bandwidth, return CMD_SUCCESS; } -/* - * CHECK ME - The following ALIASes need to be implemented in this DEFUN - * "no auto-cost reference-bandwidth <1-4294967>", - * NO_STR - * "Calculate OSPF interface cost according to bandwidth\n" - * "Use reference bandwidth method to assign OSPF cost\n" - * "The reference bandwidth in terms of Mbits per second\n" - * - */ DEFUN (no_auto_cost_reference_bandwidth, no_auto_cost_reference_bandwidth_cmd, - "no auto-cost reference-bandwidth", + "no auto-cost reference-bandwidth [1-4294967]", NO_STR "Calculate OSPF interface cost according to bandwidth\n" - "Use reference bandwidth method to assign OSPF cost\n") + "Use reference bandwidth method to assign OSPF cost\n" + "The reference bandwidth in terms of Mbits per second\n") { struct ospf6 *o = vty->index; struct ospf6_area *oa; @@ -1993,12 +1973,11 @@ DEFUN (clear_ipv6_ospf6_interface, IFNAME_STR ) { - /* CHECK ME argc referenced below */ int idx_ifname = 4; struct interface *ifp; struct listnode *node; - if (argc == 0) /* Clear all the ospfv3 interfaces. */ + if (argc == 4) /* Clear all the ospfv3 interfaces. */ { for (ALL_LIST_ELEMENTS_RO (vrf_iflist (VRF_DEFAULT), node, ifp)) ospf6_interface_clear (vty, ifp); |
