[quagga-dev 8353] Re: [PATCH 4/7] ospf6d: Extend the "[no] debug ospf6 route" vty commands

Balaji G balajig81 at gmail.com
Tue Nov 16 05:45:22 GMT 2010


Hi Tom

Am not sure whether we need to display "memory" option in the CLI, probably
might not be useful for the end users.
Probably Greg could comment

Cheers,
  - Balaji


On Thu, Nov 11, 2010 at 2:32 AM, Tom Goff <thomas.goff at boeing.com> wrote:

> * ospf6_route.c ([no_]debug_ospf6_route) Include memory as a debug
>    option.  This allows ospf6 route memory debugging to be enabled or
>    disabled interactively or from a config file.
>
> Signed-off-by: Tom Goff <thomas.goff at boeing.com>
> ---
>  ospf6d/ospf6_route.c |   12 +++++++++---
>  1 files changed, 9 insertions(+), 3 deletions(-)
>
> diff --git a/ospf6d/ospf6_route.c b/ospf6d/ospf6_route.c
> index 1e1f4fb..2d02710 100644
> --- a/ospf6d/ospf6_route.c
> +++ b/ospf6d/ospf6_route.c
> @@ -1335,13 +1335,14 @@ ospf6_brouter_show (struct vty *vty, struct
> ospf6_route *route)
>
>  DEFUN (debug_ospf6_route,
>        debug_ospf6_route_cmd,
> -       "debug ospf6 route (table|intra-area|inter-area)",
> +       "debug ospf6 route (table|intra-area|inter-area|memory)",
>        DEBUG_STR
>        OSPF6_STR
>        "Debug route table calculation\n"
>        "Debug detail\n"
>        "Debug intra-area route calculation\n"
>        "Debug inter-area route calculation\n"
> +       "Debug route memory use\n"
>        )
>  {
>   unsigned char level = 0;
> @@ -1352,18 +1353,21 @@ DEFUN (debug_ospf6_route,
>     level = OSPF6_DEBUG_ROUTE_INTRA;
>   else if (! strncmp (argv[0], "inter", 5))
>     level = OSPF6_DEBUG_ROUTE_INTER;
> +  else if (! strncmp (argv[0], "memor", 5))
> +    level = OSPF6_DEBUG_ROUTE_MEMORY;
>   OSPF6_DEBUG_ROUTE_ON (level);
>   return CMD_SUCCESS;
>  }
>
>  DEFUN (no_debug_ospf6_route,
>        no_debug_ospf6_route_cmd,
> -       "no debug ospf6 route (table|intra-area|inter-area)",
> +       "no debug ospf6 route (table|intra-area|inter-area|memory)",
>        NO_STR
>        DEBUG_STR
>        OSPF6_STR
>        "Debug route table calculation\n"
> -       "Debug intra-area route calculation\n")
> +       "Debug intra-area route calculation\n"
> +       "Debug route memory use\n")
>  {
>   unsigned char level = 0;
>
> @@ -1373,6 +1377,8 @@ DEFUN (no_debug_ospf6_route,
>     level = OSPF6_DEBUG_ROUTE_INTRA;
>   else if (! strncmp (argv[0], "inter", 5))
>     level = OSPF6_DEBUG_ROUTE_INTER;
> +  else if (! strncmp (argv[0], "memor", 5))
> +    level = OSPF6_DEBUG_ROUTE_MEMORY;
>   OSPF6_DEBUG_ROUTE_OFF (level);
>   return CMD_SUCCESS;
>  }
> --
> 1.7.0.4
>
> _______________________________________________
> Quagga-dev mailing list
> Quagga-dev at lists.quagga.net
> http://lists.quagga.net/mailman/listinfo/quagga-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quagga.net/pipermail/quagga-dev/attachments/20101116/1cbdfef7/attachment-0001.html>


More information about the Quagga-dev mailing list