diff options
| author | Sai Gomathi N <nsaigomathi@vmware.com> | 2022-03-24 01:41:15 -0700 |
|---|---|---|
| committer | Sai Gomathi N <nsaigomathi@vmware.com> | 2022-05-17 21:43:13 -0700 |
| commit | bf385e265377df24932d72bae2ef448b6f48e175 (patch) | |
| tree | 8e6fbbf485d36ca8585ea82b9a61c6338c5c1dc5 /pimd/pim6_cmd.c | |
| parent | 44937c5450320eb119f9a4ea0c9bd32600d8e007 (diff) | |
pim6d: Add 'debug pimv6'
Implementing debug pimv6 command for PIMv6 protocol activity.
Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
Diffstat (limited to 'pimd/pim6_cmd.c')
| -rw-r--r-- | pimd/pim6_cmd.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pimd/pim6_cmd.c b/pimd/pim6_cmd.c index 151ecdb177..7c7445c2a0 100644 --- a/pimd/pim6_cmd.c +++ b/pimd/pim6_cmd.c @@ -2004,6 +2004,19 @@ DEFPY (clear_ipv6_mroute_count, return clear_ip_mroute_count_command(vty, name); } +DEFPY (debug_pimv6, + debug_pimv6_cmd, + "[no] debug pimv6", + NO_STR + DEBUG_STR + DEBUG_PIMV6_STR) +{ + if (!no) + return pim_debug_pim_cmd(); + else + return pim_no_debug_pim_cmd(); +} + void pim_cmd_init(void) { if_cmd_init(pim_interface_config_write); @@ -2115,4 +2128,7 @@ void pim_cmd_init(void) install_element(ENABLE_NODE, &clear_ipv6_mroute_cmd); install_element(ENABLE_NODE, &clear_ipv6_pim_oil_cmd); install_element(ENABLE_NODE, &clear_ipv6_mroute_count_cmd); + install_element(ENABLE_NODE, &debug_pimv6_cmd); + + install_element(CONFIG_NODE, &debug_pimv6_cmd); } |
