diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-03-02 10:33:23 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-03-02 10:33:23 -0500 |
| commit | b8d16be2871f8ec86a8d3f8c8ed89bc44dd8ca4f (patch) | |
| tree | 85c688bc0d15312a1e830d1063bf69127456e335 /pimd/pim_iface.c | |
| parent | 21419f593268d59409229dbcb13cdd59e4bda555 (diff) | |
pimd: Hide 'ip multicast-routing' command
Automatically turn on pim if the daemon is turned on.
Hide the 'ip multicast-routing' command
Disable the 'no ip multicast-routing' command
Do not display the 'ip multicast-routing' command.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_iface.c')
| -rw-r--r-- | pimd/pim_iface.c | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/pimd/pim_iface.c b/pimd/pim_iface.c index 8f7d40bb36..c545b56330 100644 --- a/pimd/pim_iface.c +++ b/pimd/pim_iface.c @@ -173,9 +173,7 @@ struct pim_interface *pim_if_new(struct interface *ifp, int igmp, int pim) pim_sock_reset(ifp); - if (PIM_MROUTE_IS_ENABLED) { - pim_if_add_vif(ifp); - } + pim_if_add_vif(ifp); return pim_ifp; } @@ -197,9 +195,7 @@ void pim_if_delete(struct interface *ifp) pim_neighbor_delete_all (ifp, "Interface removed from configuration"); - if (PIM_MROUTE_IS_ENABLED) { - pim_if_del_vif(ifp); - } + pim_if_del_vif(ifp); list_delete(pim_ifp->igmp_socket_list); list_delete(pim_ifp->pim_neighbor_list); @@ -591,16 +587,14 @@ void pim_if_addr_add(struct connected *ifc) } } /* pim */ - if (PIM_MROUTE_IS_ENABLED) { /* PIM or IGMP is enabled on interface, and there is at least one address assigned, then try to create a vif_index. */ - if (pim_ifp->mroute_vif_index < 0) { - pim_if_add_vif(ifp); - } - pim_ifchannel_scan_forward_start (ifp); + if (pim_ifp->mroute_vif_index < 0) { + pim_if_add_vif(ifp); } + pim_ifchannel_scan_forward_start (ifp); } static void pim_if_addr_del_igmp(struct connected *ifc) @@ -730,16 +724,14 @@ void pim_if_addr_add_all(struct interface *ifp) } } /* pim */ } - if (PIM_MROUTE_IS_ENABLED) { - /* - * PIM or IGMP is enabled on interface, and there is at least one - * address assigned, then try to create a vif_index. - */ - if (pim_ifp->mroute_vif_index < 0) { - pim_if_add_vif(ifp); - } - pim_ifchannel_scan_forward_start (ifp); + /* + * PIM or IGMP is enabled on interface, and there is at least one + * address assigned, then try to create a vif_index. + */ + if (pim_ifp->mroute_vif_index < 0) { + pim_if_add_vif(ifp); } + pim_ifchannel_scan_forward_start (ifp); pim_rp_setup(); pim_rp_check_on_if_add(pim_ifp); |
