]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_mplsvpn.h
bgpd: cli for SRv6 SID alloc to redirect to vrf (step4)
authorHiroki Shirokura <slank.dev@gmail.com>
Sat, 19 Dec 2020 02:04:40 +0000 (11:04 +0900)
committerMark Stapp <mjs@voltanet.io>
Wed, 2 Jun 2021 14:24:48 +0000 (10:24 -0400)
commitb72c9e14756feba0af0ebff2159069c5b55224fc
tree4e37970a9abda68e6838302c2e6dc5feb679bbec
parenta0281b2eab10a2053cd4f143c02bfd8cc8a12f24
bgpd: cli for SRv6 SID alloc to redirect to vrf (step4)

This commit add cil to configure BGP SRv6-VPN sid allocation.
Almost mechanism are based on BGP MPLS-VPN.

User can allocate and export sid with using following config.
Then bgpd try to allocate new SID to redirect vpn to vrf using
SRv6 localsid End.DT4/DT6. Currently linux kernel will regect
End.DT4 route install due to no-implementation.
(at-least today's FRR's ci kernel.)

So now we only supports BGP SRv6-VPNv6.

router bgp 1
 segment-routing srv6
  locator loc1
 !
 address-family ipv6 vpn
 exit-address-family
!
router bgp 1 vrf vrf10
 address-family ipv6 unicast
  sid vpn export 1    !!(option1)!!
  sid vpn export auto !!(option2)!!
 exit-address-family
!

Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
bgpd/bgp_main.c
bgpd/bgp_mplsvpn.c
bgpd/bgp_mplsvpn.h
bgpd/bgp_vty.c