diff options
| author | Jafar Al-Gharaibeh <Jafaral@users.noreply.github.com> | 2017-03-31 00:15:23 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-31 00:15:23 -0500 |
| commit | 2b5c7fa46d98ea35f6febd5b3da32ca0a2445ca2 (patch) | |
| tree | f2f90cc6427bd7a279b7d08d14a3aed7064fb200 /pimd/pim_vty.c | |
| parent | d77005377fed5fd895eeecf4784311cdba838480 (diff) | |
| parent | 31edf0b50978c4fbe2502923ab50b6a640921f38 (diff) | |
Merge pull request #291 from AnuradhaKaruppiah/pim-ssm
Pim ssm
Diffstat (limited to 'pimd/pim_vty.c')
| -rw-r--r-- | pimd/pim_vty.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/pimd/pim_vty.c b/pimd/pim_vty.c index 5b6a79b95a..f4bfcc5ce0 100644 --- a/pimd/pim_vty.c +++ b/pimd/pim_vty.c @@ -38,6 +38,7 @@ #include "pim_static.h" #include "pim_rp.h" #include "pim_msdp.h" +#include "pim_ssm.h" int pim_debug_config_write (struct vty *vty) @@ -145,6 +146,7 @@ pim_debug_config_write (struct vty *vty) int pim_global_config_write(struct vty *vty) { int writes = 0; + struct pim_ssm *ssm = pimg->ssm_info; writes += pim_msdp_config_write (vty); @@ -174,6 +176,12 @@ int pim_global_config_write(struct vty *vty) qpim_packet_process, VTY_NEWLINE); ++writes; } + if (ssm->plist_name) + { + vty_out (vty, "ip pim ssm prefix-list %s%s", + ssm->plist_name, VTY_NEWLINE); + ++writes; + } if (qpim_ssmpingd_list) { struct listnode *node; @@ -206,12 +214,8 @@ int pim_interface_config_write(struct vty *vty) if (ifp->info) { struct pim_interface *pim_ifp = ifp->info; - /* IF ip pim ssm */ if (PIM_IF_TEST_PIM(pim_ifp->options)) { - 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); + vty_out(vty, " ip pim sm%s", VTY_NEWLINE); ++writes; } |
