summaryrefslogtreecommitdiffstats
path: root/ripngd/ripng_interface.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-09-19 05:07:44 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-09-19 19:34:06 +0200
commitddbf3e60604019d4b38d51226700e2244cc531b6 (patch)
treed3403922091432832dfffe8b86e8c6610691e177 /ripngd/ripng_interface.c
parent*: Switch all zclient->interface_add to interface create callback (diff)
downloadfrr-ddbf3e60604019d4b38d51226700e2244cc531b6.tar.xz
frr-ddbf3e60604019d4b38d51226700e2244cc531b6.zip
*: Convert from ->interface_up to the interface callback
For all the places we have a zclient->interface_up convert them to use the interface ifp_up callback instead. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'ripngd/ripng_interface.c')
-rw-r--r--ripngd/ripng_interface.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/ripngd/ripng_interface.c b/ripngd/ripng_interface.c
index 7b0ebd42c..1f056906c 100644
--- a/ripngd/ripng_interface.c
+++ b/ripngd/ripng_interface.c
@@ -196,19 +196,8 @@ static int ripng_if_down(struct interface *ifp)
}
/* Inteface link up message processing. */
-int ripng_interface_up(ZAPI_CALLBACK_ARGS)
+static int ripng_ifp_up(struct interface *ifp)
{
- struct stream *s;
- struct interface *ifp;
-
- /* zebra_interface_state_read() updates interface structure in iflist.
- */
- s = zclient->ibuf;
- ifp = zebra_interface_state_read(s, vrf_id);
-
- if (ifp == NULL)
- return 0;
-
if (IS_RIPNG_DEBUG_ZEBRA)
zlog_debug(
"interface up %s vrf %u index %d flags %llx metric %d mtu %d",
@@ -986,11 +975,6 @@ static struct cmd_node interface_node = {
INTERFACE_NODE, "%s(config-if)# ", 1 /* VTYSH */
};
-static int ripng_ifp_up(struct interface *ifp)
-{
- return 0;
-}
-
static int ripng_ifp_down(struct interface *ifp)
{
return 0;