Merge pull request #9886 from slankdev/fix-srv6-hardcode

lib: fix srv6 route hardcode with BGP
This commit is contained in:
Igor Ryzhov 2021-10-26 17:43:54 +03:00 committed by GitHub
commit 4b8038015e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));