forked from Mirror/frr
bgpd: extend make_prefix to form srv6-based prefix
Enable the SRv6 SID prefix generation in make_prefix() function of bgp_nht.c. Signed-off-by: Dmytro Shytyi <dmytro.shytyi@6wind.com> fixup: bgpd: extend make_prefix to form srv6-based prefix
This commit is contained in:
parent
f49fc7682f
commit
26c747ed6c
|
@ -1045,8 +1045,11 @@ static int make_prefix(int afi, struct bgp_path_info *pi, struct prefix *p)
|
|||
break;
|
||||
case AFI_IP6:
|
||||
p->family = AF_INET6;
|
||||
|
||||
if (is_bgp_static) {
|
||||
if (pi->attr && pi->attr->srv6_l3vpn) {
|
||||
IPV6_ADDR_COPY(&(p->u.prefix6),
|
||||
&(pi->attr->srv6_l3vpn->sid));
|
||||
p->prefixlen = IPV6_MAX_BITLEN;
|
||||
} else if (is_bgp_static) {
|
||||
p->u.prefix6 = p_orig->u.prefix6;
|
||||
p->prefixlen = p_orig->prefixlen;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue