summaryrefslogtreecommitdiffstats
path: root/bgpd
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_nht.c16
-rw-r--r--bgpd/bgp_zebra.c7
2 files changed, 4 insertions, 19 deletions
diff --git a/bgpd/bgp_nht.c b/bgpd/bgp_nht.c
index 90fa90730..061fa6f08 100644
--- a/bgpd/bgp_nht.c
+++ b/bgpd/bgp_nht.c
@@ -899,11 +899,9 @@ static void sendmsg_zebra_rnh(struct bgp_nexthop_cache *bnc, int command)
flog_warn(EC_BGP_ZEBRA_SEND,
"sendmsg_nexthop: zclient_send_message() failed");
- if ((command == ZEBRA_NEXTHOP_REGISTER)
- || (command == ZEBRA_IMPORT_ROUTE_REGISTER))
+ if (command == ZEBRA_NEXTHOP_REGISTER)
SET_FLAG(bnc->flags, BGP_NEXTHOP_REGISTERED);
- else if ((command == ZEBRA_NEXTHOP_UNREGISTER)
- || (command == ZEBRA_IMPORT_ROUTE_UNREGISTER))
+ else if (command == ZEBRA_NEXTHOP_UNREGISTER)
UNSET_FLAG(bnc->flags, BGP_NEXTHOP_REGISTERED);
return;
}
@@ -928,10 +926,7 @@ static void register_zebra_rnh(struct bgp_nexthop_cache *bnc,
return;
}
- if (is_bgp_import_route)
- sendmsg_zebra_rnh(bnc, ZEBRA_IMPORT_ROUTE_REGISTER);
- else
- sendmsg_zebra_rnh(bnc, ZEBRA_NEXTHOP_REGISTER);
+ sendmsg_zebra_rnh(bnc, ZEBRA_NEXTHOP_REGISTER);
}
/**
@@ -953,10 +948,7 @@ static void unregister_zebra_rnh(struct bgp_nexthop_cache *bnc,
return;
}
- if (is_bgp_import_route)
- sendmsg_zebra_rnh(bnc, ZEBRA_IMPORT_ROUTE_UNREGISTER);
- else
- sendmsg_zebra_rnh(bnc, ZEBRA_NEXTHOP_UNREGISTER);
+ sendmsg_zebra_rnh(bnc, ZEBRA_NEXTHOP_UNREGISTER);
}
/**
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c
index 2a67bb2f8..9358be8be 100644
--- a/bgpd/bgp_zebra.c
+++ b/bgpd/bgp_zebra.c
@@ -112,12 +112,6 @@ static int bgp_read_nexthop_update(ZAPI_CALLBACK_ARGS)
return 0;
}
-static int bgp_read_import_check_update(ZAPI_CALLBACK_ARGS)
-{
- bgp_parse_nexthop_update(cmd, vrf_id);
- return 0;
-}
-
/* Set or clear interface on which unnumbered neighbor is configured. This
* would in turn cause BGP to initiate or turn off IPv6 RAs on this
* interface.
@@ -3185,7 +3179,6 @@ void bgp_zebra_init(struct thread_master *master, unsigned short instance)
zclient->redistribute_route_add = zebra_read_route;
zclient->redistribute_route_del = zebra_read_route;
zclient->nexthop_update = bgp_read_nexthop_update;
- zclient->import_check_update = bgp_read_import_check_update;
zclient->fec_update = bgp_read_fec_update;
zclient->local_es_add = bgp_zebra_process_local_es_add;
zclient->local_es_del = bgp_zebra_process_local_es_del;