From 57dac17c57a1b84c4389da11cee32b31b6957dd2 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 30 Jan 2018 03:07:15 -0500 Subject: lib, pimd: Remove PIM_NODE as it is not needed The PIM_NODE command is only being used to display default vrf configuration. Move this into the vrf display and remove PIM_NODE. Signed-off-by: Donald Sharp --- pimd/pim_instance.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'pimd/pim_instance.c') diff --git a/pimd/pim_instance.c b/pimd/pim_instance.c index 8da610a3a6..9b7ef2e073 100644 --- a/pimd/pim_instance.c +++ b/pimd/pim_instance.c @@ -198,12 +198,13 @@ static int pim_vrf_config_write(struct vty *vty) if (!pim) continue; - if (vrf->vrf_id == VRF_DEFAULT) - continue; + if (vrf->vrf_id != VRF_DEFAULT) + vty_frame(vty, "vrf %s\n", vrf->name); - vty_frame(vty, "vrf %s\n", vrf->name); pim_global_config_write_worker(pim, vty); - vty_endframe(vty, "!\n"); + + if (vrf->vrf_id != VRF_DEFAULT) + vty_endframe(vty, "!\n"); } return 0; -- cgit v1.2.3