pimd: Remove pim_msdp_config_write as it was never used

This function was never used, additionally rename the _helper
function to this name.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2018-12-21 09:19:26 -05:00
parent a6c5db596e
commit 84f2598914
3 changed files with 5 additions and 11 deletions

View File

@ -1523,8 +1523,8 @@ enum pim_msdp_err pim_msdp_mg_src_add(struct pim_instance *pim,
} }
/*********************** MSDP feature APIs *********************************/ /*********************** MSDP feature APIs *********************************/
int pim_msdp_config_write_helper(struct pim_instance *pim, struct vty *vty, int pim_msdp_config_write(struct pim_instance *pim, struct vty *vty,
const char *spaces) const char *spaces)
{ {
struct listnode *mbrnode; struct listnode *mbrnode;
struct pim_msdp_mg_mbr *mbr; struct pim_msdp_mg_mbr *mbr;
@ -1553,11 +1553,6 @@ int pim_msdp_config_write_helper(struct pim_instance *pim, struct vty *vty,
return count; return count;
} }
int pim_msdp_config_write(struct vty *vty)
{
return pim_msdp_config_write_helper(pimg, vty, "");
}
/* Enable feature including active/periodic timers etc. on the first peer /* Enable feature including active/periodic timers etc. on the first peer
* config. Till then MSDP should just stay quiet. */ * config. Till then MSDP should just stay quiet. */
static void pim_msdp_enable(struct pim_instance *pim) static void pim_msdp_enable(struct pim_instance *pim)

View File

@ -232,9 +232,8 @@ void pim_msdp_peer_reset_tcp_conn(struct pim_msdp_peer *mp, const char *rc_str);
int pim_msdp_write(struct thread *thread); int pim_msdp_write(struct thread *thread);
char *pim_msdp_peer_key_dump(struct pim_msdp_peer *mp, char *buf, int buf_size, char *pim_msdp_peer_key_dump(struct pim_msdp_peer *mp, char *buf, int buf_size,
bool long_format); bool long_format);
int pim_msdp_config_write(struct vty *vty); int pim_msdp_config_write(struct pim_instance *pim, struct vty *vty,
int pim_msdp_config_write_helper(struct pim_instance *pim, struct vty *vty, const char *spaces);
const char *spaces);
void pim_msdp_peer_pkt_txed(struct pim_msdp_peer *mp); void pim_msdp_peer_pkt_txed(struct pim_msdp_peer *mp);
void pim_msdp_sa_ref(struct pim_instance *pim, struct pim_msdp_peer *mp, void pim_msdp_sa_ref(struct pim_instance *pim, struct pim_msdp_peer *mp,
struct prefix_sg *sg, struct in_addr rp); struct prefix_sg *sg, struct in_addr rp);

View File

@ -163,7 +163,7 @@ int pim_global_config_write_worker(struct pim_instance *pim, struct vty *vty)
else else
sprintf(spaces, "%s", " "); sprintf(spaces, "%s", " ");
writes += pim_msdp_config_write_helper(pim, vty, spaces); writes += pim_msdp_config_write(pim, vty, spaces);
if (!pim->send_v6_secondary) { if (!pim->send_v6_secondary) {
vty_out(vty, "%sno ip pim send-v6-secondary\n", spaces); vty_out(vty, "%sno ip pim send-v6-secondary\n", spaces);