summaryrefslogtreecommitdiffstats
path: root/pimd/pim_vty.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2015-08-21 19:35:27 -0400
committerPaul Jakma <paul@quagga.net>2015-09-03 16:29:09 +0100
commit22e0224d4148e0e4fd5952020fd6ae74efd1bf93 (patch)
tree152c51f12832812c84ffdb1b8cce9208abfe3f46 /pimd/pim_vty.c
parentd2c6da209cec42c05941eff52d88f0ed7eabad48 (diff)
downloadquagga-22e0224d4148e0e4fd5952020fd6ae74efd1bf93.tar.bz2
quagga-22e0224d4148e0e4fd5952020fd6ae74efd1bf93.tar.xz
pimd: Create ability to modify hell and hold timers per interface
Create new per interface command: 'ip pim hello <1-180> {<1-180>}' The first number is the Hello Timer for this interface The second number is the Hold Timer to pass to neighbors on this interface. The second number is optional. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_vty.c')
-rw-r--r--pimd/pim_vty.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/pimd/pim_vty.c b/pimd/pim_vty.c
index e31e2d6e..512c0e67 100644
--- a/pimd/pim_vty.c
+++ b/pimd/pim_vty.c
@@ -142,6 +142,14 @@ int pim_interface_config_write(struct vty *vty)
++writes;
}
+ /* IF ip pim hello */
+ if (pim_ifp->pim_hello_period != PIM_DEFAULT_HELLO_PERIOD) {
+ vty_out(vty, " ip pim hello %d", pim_ifp->pim_hello_period);
+ if (pim_ifp->pim_default_holdtime != -1)
+ vty_out(vty, " %d", pim_ifp->pim_default_holdtime);
+ vty_out(vty, "%s", VTY_NEWLINE);
+ }
+
/* IF ip igmp */
if (PIM_IF_TEST_IGMP(pim_ifp->options)) {
vty_out(vty, " ip igmp%s", VTY_NEWLINE);