From d149c75aa180aa4338b9c2030fe4e6653d32840f Mon Sep 17 00:00:00 2001 From: Anuradha Karuppiah Date: Thu, 18 Jun 2020 15:55:02 -0700 Subject: [PATCH] pimd: skip displaying pim config on the vxlan termination device ipmr-lo pim is enabled internally/implicitly on the vxlan termination device and displaying that can confuse the admin and tools (such as frr-reload). Ticket: CM-30180 Signed-off-by: Anuradha Karuppiah --- pimd/pim_vty.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pimd/pim_vty.c b/pimd/pim_vty.c index 1f2ca11db3..57a0c69166 100644 --- a/pimd/pim_vty.c +++ b/pimd/pim_vty.c @@ -275,6 +275,13 @@ int pim_interface_config_write(struct vty *vty) continue; FOR_ALL_INTERFACES (pim->vrf, ifp) { + /* pim is enabled internally/implicitly on the vxlan + * termination device ipmr-lo. skip displaying that + * config to avoid confusion + */ + if (pim_vxlan_is_term_dev_cfg(pim, ifp)) + continue; + /* IF name */ if (vrf->vrf_id == VRF_DEFAULT) vty_frame(vty, "interface %s\n", ifp->name); -- 2.39.5