diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-08-05 09:07:46 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-12-21 20:26:05 -0500 |
| commit | 75a26779e8f25e9868f1f33e0fd35677f17c978b (patch) | |
| tree | 095795d5b355c285bc7c1683c2ca2b072255cfec /pimd/pim_vty.c | |
| parent | dc686f820be848d9b80e3f3918228d6eb321c826 (diff) | |
pimd: Refactor RP code and start the ability to handle ranges
Refactor the qpim_rp into pim_rp.c so that the global data
is protected. This will allow us to easily add the group
ranges.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_vty.c')
| -rw-r--r-- | pimd/pim_vty.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pimd/pim_vty.c b/pimd/pim_vty.c index 9c3df6bbdc..e27c69411c 100644 --- a/pimd/pim_vty.c +++ b/pimd/pim_vty.c @@ -34,6 +34,7 @@ #include "pim_pim.h" #include "pim_oil.h" #include "pim_static.h" +#include "pim_rp.h" int pim_debug_config_write (struct vty *vty) @@ -124,16 +125,13 @@ 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, "ip multicast-routing%s", VTY_NEWLINE); ++writes; } - if (qpim_rp.rpf_addr.s_addr != INADDR_NONE) { - vty_out(vty, "ip pim rp %s%s", inet_ntop(AF_INET, &qpim_rp.rpf_addr, buffer, 32), VTY_NEWLINE); - ++writes; - } + + writes += pim_rp_config_write (vty); if (qpim_ssmpingd_list) { struct listnode *node; |
