diff options
author | Stephen Worley <sworley@cumulusnetworks.com> | 2019-10-10 01:50:13 +0200 |
---|---|---|
committer | Stephen Worley <sworley@cumulusnetworks.com> | 2019-10-10 02:24:31 +0200 |
commit | d5c65bf1a2b43d97e19e169223d8a33269bc6625 (patch) | |
tree | 543831bbc4aa6e90c786cffe7c5639732002590b /pimd/pim_iface.c | |
parent | lib: Don't add/del from name tree if name isnt set (diff) | |
download | frr-d5c65bf1a2b43d97e19e169223d8a33269bc6625.tar.xz frr-d5c65bf1a2b43d97e19e169223d8a33269bc6625.zip |
*: Cleanup interface creation apis
Cleanup the interface creation apis to make it more
clear what they are doing.
Make it explicit that the creation via name/ifindex will
only add it to the appropriate list.
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_iface.c')
-rw-r--r-- | pimd/pim_iface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_iface.c b/pimd/pim_iface.c index bc8dedc4f..3ee9caebc 100644 --- a/pimd/pim_iface.c +++ b/pimd/pim_iface.c @@ -1476,7 +1476,7 @@ void pim_if_create_pimreg(struct pim_instance *pim) snprintf(pimreg_name, sizeof(pimreg_name), "pimreg%u", pim->vrf->data.l.table_id); - pim->regiface = if_create(pimreg_name, pim->vrf_id); + pim->regiface = if_create_name(pimreg_name, pim->vrf_id); pim->regiface->ifindex = PIM_OIF_PIM_REGISTER_VIF; pim_if_new(pim->regiface, false, false, true, |