mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 20:34:33 +00:00
babeld: dismiss babel_redistribute_unset()
The function was effectively duplicating existing zclient_redistribute(). This makes no_babel_redistribute_type() consistent with babel_redistribute_type()
This commit is contained in:
parent
3c442e8802
commit
359be3d0e4
@ -186,23 +186,6 @@ babel_zebra_read_ipv4 (int command, struct zclient *zclient,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
|
||||||
babel_redistribute_unset (int type)
|
|
||||||
{
|
|
||||||
if (! zclient->redist[type])
|
|
||||||
return CMD_SUCCESS;
|
|
||||||
|
|
||||||
zclient->redist[type] = 0;
|
|
||||||
|
|
||||||
if (zclient->sock > 0)
|
|
||||||
zebra_redistribute_send (ZEBRA_REDISTRIBUTE_DELETE, zclient, type);
|
|
||||||
|
|
||||||
/* perhaps should we remove xroutes having the same type... */
|
|
||||||
|
|
||||||
return CMD_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* [Babel Command] */
|
/* [Babel Command] */
|
||||||
DEFUN (babel_redistribute_type,
|
DEFUN (babel_redistribute_type,
|
||||||
babel_redistribute_type_cmd,
|
babel_redistribute_type_cmd,
|
||||||
@ -246,7 +229,9 @@ DEFUN (no_babel_redistribute_type,
|
|||||||
return CMD_WARNING;
|
return CMD_WARNING;
|
||||||
}
|
}
|
||||||
|
|
||||||
return babel_redistribute_unset (type);
|
zclient_redistribute (ZEBRA_REDISTRIBUTE_DELETE, zclient, type);
|
||||||
|
/* perhaps should we remove xroutes having the same type... */
|
||||||
|
return CMD_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef NO_DEBUG
|
#ifndef NO_DEBUG
|
||||||
|
Loading…
Reference in New Issue
Block a user