]> git.proxmox.com Git - mirror_frr.git/blobdiff - pimd/pim_vty.c
Merge pull request #5494 from opensourcerouting/mlag-module
[mirror_frr.git] / pimd / pim_vty.c
index 649578874842e9855b61906a35b36b38326167d3..1c4ecf299f60c3726d3ab4c9fe139532bd402648 100644 (file)
@@ -39,6 +39,8 @@
 #include "pim_msdp.h"
 #include "pim_ssm.h"
 #include "pim_bfd.h"
+#include "pim_bsm.h"
+#include "pim_vxlan.h"
 
 int pim_debug_config_write(struct vty *vty)
 {
@@ -68,10 +70,6 @@ int pim_debug_config_write(struct vty *vty)
                vty_out(vty, "debug igmp trace\n");
                ++writes;
        }
-       if (PIM_DEBUG_IGMP_TRACE_DETAIL) {
-               vty_out(vty, "debug igmp trace detail\n");
-               ++writes;
-       }
 
        if (PIM_DEBUG_MROUTE) {
                vty_out(vty, "debug mroute\n");
@@ -83,7 +81,7 @@ int pim_debug_config_write(struct vty *vty)
                ++writes;
        }
 
-       if (PIM_DEBUG_MROUTE_DETAIL) {
+       if (PIM_DEBUG_MROUTE_DETAIL_ONLY) {
                vty_out(vty, "debug mroute detail\n");
                ++writes;
        }
@@ -109,7 +107,7 @@ int pim_debug_config_write(struct vty *vty)
                vty_out(vty, "debug pim trace\n");
                ++writes;
        }
-       if (PIM_DEBUG_PIM_TRACE_DETAIL) {
+       if (PIM_DEBUG_PIM_TRACE_DETAIL_ONLY) {
                vty_out(vty, "debug pim trace detail\n");
                ++writes;
        }
@@ -119,6 +117,16 @@ int pim_debug_config_write(struct vty *vty)
                ++writes;
        }
 
+       if (PIM_DEBUG_BSM) {
+               vty_out(vty, "debug pim bsm\n");
+               ++writes;
+       }
+
+       if (PIM_DEBUG_VXLAN) {
+               vty_out(vty, "debug pim vxlan\n");
+               ++writes;
+       }
+
        if (PIM_DEBUG_SSMPINGD) {
                vty_out(vty, "debug ssmpingd\n");
                ++writes;
@@ -234,6 +242,8 @@ int pim_global_config_write_worker(struct pim_instance *pim, struct vty *vty)
                }
        }
 
+       pim_vxlan_config_write(vty, spaces, &writes);
+
        return writes;
 }
 
@@ -336,6 +346,24 @@ int pim_interface_config_write(struct vty *vty)
                                        ++writes;
                                }
 
+                               /* IF ip igmp last-member_query-count */
+                               if (pim_ifp->igmp_last_member_query_count
+                                   != IGMP_DEFAULT_ROBUSTNESS_VARIABLE) {
+                                       vty_out(vty,
+                                               " ip igmp last-member-query-count %d\n",
+                                               pim_ifp->igmp_last_member_query_count);
+                                       ++writes;
+                               }
+
+                               /* IF ip igmp last-member_query-interval */
+                               if (pim_ifp->igmp_specific_query_max_response_time_dsec
+                                   != IGMP_SPECIFIC_QUERY_MAX_RESPONSE_TIME_DSEC) {
+                                       vty_out(vty,
+                                               " ip igmp last-member-query-interval %d\n",
+                                               pim_ifp->igmp_specific_query_max_response_time_dsec);
+                                         ++writes;
+                               }
+
                                /* IF ip igmp join */
                                if (pim_ifp->igmp_join_list) {
                                        struct listnode *node;
@@ -375,7 +403,10 @@ int pim_interface_config_write(struct vty *vty)
 
                                writes +=
                                        pim_static_write_mroute(pim, vty, ifp);
+                               pim_bsm_write_config(vty, ifp);
+                               ++writes;
                                pim_bfd_write_config(vty, ifp);
+                               ++writes;
                        }
                        vty_endframe(vty, "!\n");
                        ++writes;