summaryrefslogtreecommitdiff
path: root/pimd/pim_nb_config.c
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2021-06-25 16:00:09 -0300
committerRafael Zalamena <rzalamena@opensourcerouting.org>2021-06-25 16:00:09 -0300
commitc72d97a5d9733aa83dd95c8c1587d0d7ba765e9c (patch)
treef1af45fbb448e487adae161bd12cd5a19de9aa8f /pimd/pim_nb_config.c
parent858252d0c575e88bc07462e7e8f8bddf65fa62ca (diff)
pimd: make function names consistent
Rename functions (`pim_msdp_peer_new` => `pim_msdp_peer_add` and `pim_msdp_peer_do_del` => `pim_msdp_peer_del`) to keep consistency and update the `pim_msdp_peer_add` documentation to tell users that this is also used for non meshed group peers. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_nb_config.c')
-rw-r--r--pimd/pim_nb_config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pimd/pim_nb_config.c b/pimd/pim_nb_config.c
index 3afa6e7e16..d69ab3aeb6 100644
--- a/pimd/pim_nb_config.c
+++ b/pimd/pim_nb_config.c
@@ -1120,7 +1120,7 @@ int routing_control_plane_protocols_control_plane_protocol_pim_address_family_ms
pim = vrf->info;
yang_dnode_get_ip(&peer_ip, args->dnode, "./peer-ip");
yang_dnode_get_ip(&source_ip, args->dnode, "./source-ip");
- mp = pim_msdp_peer_new(pim, &peer_ip.ipaddr_v4,
+ mp = pim_msdp_peer_add(pim, &peer_ip.ipaddr_v4,
&source_ip.ipaddr_v4, NULL);
nb_running_set_entry(args->dnode, mp);
break;
@@ -1141,7 +1141,7 @@ int routing_control_plane_protocols_control_plane_protocol_pim_address_family_ms
break;
case NB_EV_APPLY:
mp = nb_running_unset_entry(args->dnode);
- pim_msdp_peer_do_del(&mp);
+ pim_msdp_peer_del(&mp);
break;
}