diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-09-08 17:10:19 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetwroks.com> | 2016-05-26 02:38:33 +0200 |
commit | 981d6c7a1fe0023856094c809205e8b8c4b5b1a0 (patch) | |
tree | a6c9581073f51da2b741aafe89c0caf3c279e24b /pimd/pim_vty.c | |
parent | Fixup of Code to allow pimd to actually run on startup (diff) | |
download | frr-981d6c7a1fe0023856094c809205e8b8c4b5b1a0.tar.xz frr-981d6c7a1fe0023856094c809205e8b8c4b5b1a0.zip |
Implement "ip pim rp X.Y.Z.A" and "ip pim sm" commands
Allow the user to specify the static Rendevous point
as well as specifying that an interface is Sparse Mode.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_vty.c')
-rw-r--r-- | pimd/pim_vty.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pimd/pim_vty.c b/pimd/pim_vty.c index 52e61521d..1c0c02f77 100644 --- a/pimd/pim_vty.c +++ b/pimd/pim_vty.c @@ -93,11 +93,16 @@ int pim_debug_config_write(struct vty *vty) int pim_global_config_write(struct vty *vty) { int writes = 0; + char buffer[32]; if (PIM_MROUTE_IS_ENABLED) { vty_out(vty, "%s%s", PIM_CMD_IP_MULTICAST_ROUTING, VTY_NEWLINE); ++writes; } + if (qpim_rp.s_addr) { + vty_out(vty, "ip pim rp %s%s", inet_ntop(AF_INET, &qpim_rp, buffer, 32), VTY_NEWLINE); + ++writes; + } if (qpim_ssmpingd_list) { struct listnode *node; @@ -132,7 +137,10 @@ int pim_interface_config_write(struct vty *vty) /* IF ip pim ssm */ if (PIM_IF_TEST_PIM(pim_ifp->options)) { - vty_out(vty, " ip pim ssm%s", VTY_NEWLINE); + if (pim_ifp->itype == PIM_INTERFACE_SSM) + vty_out(vty, " ip pim ssm%s", VTY_NEWLINE); + else + vty_out(vty, " ip pim sm%s", VTY_NEWLINE); ++writes; } |