]> git.puffer.fish Git - mirror/frr.git/commit
pimd: Add 'test pim keepalive-reset A.B.C.D A.B.C.D' command
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 Feb 2019 22:21:39 +0000 (17:21 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 21 Feb 2019 00:26:05 +0000 (19:26 -0500)
commit70fd22bd03a1aae1c152fb7021f7acf8cd0a1af9
tree44812cf9bad44586994e16fc914096205861c634
parentc06c9ded2114055fcba55ee1020d68121f0f1aad
pimd: Add 'test pim keepalive-reset A.B.C.D A.B.C.D' command

Add a test command to pim that allows you to reset the keepalive timer
for an upstream to it's max value.  This is to allow purposeful testing
of cleanup code in pim, by forcing the keeaplive timer to expire later.

robot# show ip pim upstream
Iif       Source          Group           State       Uptime   JoinTimer RSTimer   KATimer   RefCnt
enp3s0    192.168.201.136 225.1.0.0       NotJ,RegP   00:00:10 00:00:52  00:00:25  00:02:54       1
robot# show ip pim upstream
Iif       Source          Group           State       Uptime   JoinTimer RSTimer   KATimer   RefCnt
enp3s0    192.168.201.136 225.1.0.0       NotJ,RegP   00:00:11 00:00:51  00:00:24  00:02:53       1
robot# test pim keep 192.168.201.136 225.1.0.0
Setting (192.168.201.136,225.1.0.0) to current keep alive time: 210
robot# show ip pim upstream
Iif       Source          Group           State       Uptime   JoinTimer RSTimer   KATimer   RefCnt
enp3s0    192.168.201.136 225.1.0.0       NotJ,RegP   00:00:27 00:00:35  00:00:08  00:03:27       1
robot#

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_cmd.c