summaryrefslogtreecommitdiff
path: root/lib/zclient.c
diff options
context:
space:
mode:
authorHiroki Shirokura <hiroki.shirokura@linecorp.com>2021-10-25 23:36:14 +0000
committerHiroki Shirokura <hiroki.shirokura@linecorp.com>2021-10-25 23:38:42 +0000
commit8563b9722ac7293b0cca4bc7d869943fef9a09c4 (patch)
treeb823282ddaf9e9f6f6f9991ad51c32cae731cbb1 /lib/zclient.c
parent6f2e32ee419cba1ae73a3223fcb8066fb4f18fb7 (diff)
lib: fix srv6 route hardcode with BGP
zclient_send_localsid is called by various routing protocol daemons. To set the srv6 endpoint function. Fix a hard-coded error in the initial implementation. Before this PR, the srv6 function will be registered to zebra as a BGP route even if isisd executes zclient_send_localsid. Signed-off-by: Hiroki Shirokura <hiroki.shirokura@linecorp.com>
Diffstat (limited to 'lib/zclient.c')
-rw-r--r--lib/zclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/zclient.c b/lib/zclient.c
index 90439d5e17..e9a020df13 100644
--- a/lib/zclient.c
+++ b/lib/zclient.c
@@ -450,7 +450,7 @@ enum zclient_send_status zclient_send_localsid(struct zclient *zclient,
p.prefix = *sid;
api.vrf_id = VRF_DEFAULT;
- api.type = ZEBRA_ROUTE_BGP;
+ api.type = zclient->redist_default;
api.instance = 0;
api.safi = SAFI_UNICAST;
memcpy(&api.prefix, &p, sizeof(p));