diff options
| author | Rafael Zalamena <rzalamena@users.noreply.github.com> | 2018-02-02 11:12:15 -0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-02 11:12:15 -0200 |
| commit | 8c7ad688cc26a829bb14e1c523650d05ff9bb19b (patch) | |
| tree | 91a2ad7760b72da78eb784c1c259e695f586b1dc /pimd/pim_instance.c | |
| parent | bcca474aa6edc78911e3363aacf776256df50357 (diff) | |
| parent | 57dac17c57a1b84c4389da11cee32b31b6957dd2 (diff) | |
Merge pull request #1696 from donaldsharp/pim_node_removal
lib, pimd: Remove PIM_NODE as it is not needed
Diffstat (limited to 'pimd/pim_instance.c')
| -rw-r--r-- | pimd/pim_instance.c | 9 |
1 files changed, 5 insertions, 4 deletions
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; |
