diff options
| author | Mobashshera Rasool <mrasool@vmware.com> | 2022-06-01 08:58:33 -0700 |
|---|---|---|
| committer | Mobashshera Rasool <mrasool@vmware.com> | 2022-06-12 21:24:01 -0700 |
| commit | 52770b79a801533c9d3b0409bc873bfe9a359f72 (patch) | |
| tree | 66d61feac794e8db3b7a801e43a5715c2d8b9fa8 /pimd/pim_cmd_common.h | |
| parent | 36cec27cd93378347255f31de92da711618f0c42 (diff) | |
pimd: Change to DEFPY and make the api common
For show ip pim interface traffic cli, doing the below changes
1. Changing DEFUN to DEFPY
2. Move the whole code to a common api and modify it so that can
be reused for pimv6.
Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
Diffstat (limited to 'pimd/pim_cmd_common.h')
| -rw-r--r-- | pimd/pim_cmd_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pimd/pim_cmd_common.h b/pimd/pim_cmd_common.h index ead6c9b488..67e092e079 100644 --- a/pimd/pim_cmd_common.h +++ b/pimd/pim_cmd_common.h @@ -185,6 +185,8 @@ void pim_show_interface_traffic_single(struct pim_instance *pim, bool uj); void pim_show_interface_traffic(struct pim_instance *pim, struct vty *vty, bool uj); +int pim_show_interface_traffic_helper(const char *vrf, const char *if_name, + struct vty *vty, bool uj); /* * Special Macro to allow us to get the correct pim_instance; */ |
