]> git.proxmox.com Git - mirror_frr.git/commit - pimd/pim_cmd.c
pimd: display reg-state and join-state info in the pim_upstream output
authoranuradhak <anuradhak@cumulusnetworks.com>
Thu, 9 Mar 2017 19:42:55 +0000 (11:42 -0800)
committeranuradhak <anuradhak@cumulusnetworks.com>
Fri, 10 Mar 2017 18:48:47 +0000 (10:48 -0800)
commit755210ab1dea88aa7b41d83b65e2bc75dbabd99e
treef497e2c3baddd7317a6197b2114bfe8d9bda50cd
parentb4786acd7ea88ec0a3da8edfc4e0ce71f67b5f12
pimd: display reg-state and join-state info in the pim_upstream output

Changed the state field in the "sh ip pim upstream" output to include
register and join state info as a comma separated value. Register info
is supressed if reg-state=NoInfo.

Sample output:
=============
root@fhr:/home/cumulus# net show pim upstream
Iif       Source          Group           State       Uptime   JoinTimer
RSTimer   KATimer   RefCnt
swp1      33.1.1.1        239.1.1.2       J,RegP      00:00:18 --:--:--
00:00:44  00:03:24       2
root@fhr:/home/cumulus#

root@rp:/home/cumulus# net show pim upstream
Iif       Source          Group           State       Uptime   JoinTimer
RSTimer   KATimer   RefCnt
lo        *               239.1.1.2       J           00:02:08 00:00:52
--:--:--  --:--:--       1
swp1      33.1.1.1        239.1.1.2       J           00:00:16 00:00:11
--:--:--  00:03:26       1
root@rp:/home/cumulus#

Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Ticket: CM-14700
Testing Done: pim-smoke
pimd/pim_cmd.c