diff options
| author | Hiroki Shirokura <slank.dev@gmail.com> | 2020-12-19 11:07:16 +0900 |
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2021-06-02 10:24:48 -0400 |
| commit | dbcf19b88dda9e94e270bc4dcb70764320f9e0ce (patch) | |
| tree | 2a681c4f377e2569f9d549d9baa6ca6a191386df /bgpd/bgp_attr.c | |
| parent | ea372e81b057ea85eb9192e87c82b4002e7e32a5 (diff) | |
bgpd: advertising vpn-rib include SRv6-SID (step4)
This commit make bgpd to support VPN SID advertisement
as BGP Prefix-SID when route-leaking from BGP-vrf instance
to BGP-vpn instance.
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
Diffstat (limited to 'bgpd/bgp_attr.c')
| -rw-r--r-- | bgpd/bgp_attr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c index c20c435003..2f0751a5f0 100644 --- a/bgpd/bgp_attr.c +++ b/bgpd/bgp_attr.c @@ -4122,7 +4122,7 @@ bgp_size_t bgp_packet_attribute(struct bgp *bgp, struct peer *peer, } /* SRv6 Service Information Attribute. */ - if (afi == AFI_IP && safi == SAFI_MPLS_VPN) { + if ((afi == AFI_IP || afi == AFI_IP6) && safi == SAFI_MPLS_VPN) { if (attr->srv6_l3vpn) { stream_putc(s, BGP_ATTR_FLAG_OPTIONAL | BGP_ATTR_FLAG_TRANS); |
