]> git.proxmox.com Git - mirror_frr.git/commit - pimd/pim_assert.c
pimd: Introduce show command for protocol counters
authorChirag Shah <chirag@cumulusnetworks.com>
Mon, 3 Apr 2017 20:11:58 +0000 (13:11 -0700)
committerChirag Shah <chirag@cumulusnetworks.com>
Tue, 2 May 2017 01:47:00 +0000 (18:47 -0700)
commit394381887e3a4826e256a89e35a122a6d4af338b
tree777c04fe39ccec4c9577be4ca47a27d5e1321bbc
parente81b8616177b53251a6a08a3b252d1fa77d97f26
pimd: Introduce show command for protocol counters

For all pim enabled interfaces and single pim enable interface command.
Clear command to clear protocol counters stats.

'show ip pim interface traffic {WORD} {json}'

'clear ip pim interface traffic'

Testing Done: bringup Pim configuration and form RPT and SPT and check
show ip pim interface traffic command output,
perform clear form of interface traffic command and
verified all counters reset via show form of command.
tor-21# show ip pim interface traffic swp2

Interface       HELLO            JOIN            PRUNE            REGISTER        REGISTER-STOP    ASSERT
                Rx/Tx            Rx/Tx           Rx/Tx            Rx/Tx             Rx/Tx           Rx/Tx
---------------------------------------------------------------------------------------------------------------
swp2             22/22             0/10            0/0             0/0             0/0             0/0

leaf-22# show ip pim interface traffic swp3

Interface       HELLO            JOIN            PRUNE            REGISTER        REGISTER-STOP    ASSERT
                Rx/Tx            Rx/Tx           Rx/Tx            Rx/Tx             Rx/Tx           Rx/Tx
---------------------------------------------------------------------------------------------------------------
swp3             23/22            10/0             0/0             0/0             0/0             0/0

spine-1#show ip pim interface traffic

Interface       HELLO            JOIN            PRUNE            REGISTER        REGISTER-STOP    ASSERT
                Rx/Tx            Rx/Tx           Rx/Tx            Rx/Tx             Rx/Tx           Rx/Tx
---------------------------------------------------------------------------------------------------------------
br1               0/1              0/0             0/0             0/0             0/0             0/0
lo                0/0              0/0             0/0             0/0             0/0             0/0
swp1              0/1              0/0             0/0             0/0             0/0             0/0
swp2              0/1              0/0             0/0             0/0             0/0             0/0

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
pimd/pim_assert.c
pimd/pim_cmd.c
pimd/pim_iface.h
pimd/pim_join.c
pimd/pim_register.c