]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_mplsvpn.h
bgpd: new vpn-policy CLI
authorG. Paul Ziemba <paulz@labn.net>
Fri, 16 Mar 2018 18:11:37 +0000 (11:11 -0700)
committerG. Paul Ziemba <paulz@labn.net>
Tue, 20 Mar 2018 05:13:43 +0000 (22:13 -0700)
commitb9c7bc5ab0ee57f4052b625c0e76663f50c1249f
tree72a2ec7ecf75be31dc6bf7db63ae29446e9d760e
parent46fe6fd55742c0fb6b2261afac8674a5f7d1979e
bgpd: new vpn-policy CLI

PR #1739 added code to leak routes between (default VRF) VPN safi and unicast RIBs in any VRF. That set of changes included temporary CLI including vpn-policy blocks to specify RD/RT/label/&c. After considerable discussion, we arrived at a consensus CLI shown below.

The code of this PR implements the vpn-specific parts of this syntax:

router bgp <as> [vrf <FOO>]
    address-family <afi> unicast
        rd (vpn|evpn) export (AS:NN | IP:nn)
        label (vpn|evpn) export (0..1048575)
        rt (vpn|evpn) (import|export|both) RTLIST...
        nexthop vpn (import|export) (A.B.C.D | X:X::X:X)
        route-map (vpn|evpn|vrf NAME) (import|export) MAP

        [no] import|export [vpn|evpn|evpn8]
        [no] import|export vrf NAME

User documentation of the vpn-specific parts of the above syntax is in PR #1937

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
13 files changed:
bgpd/bgp_mplsvpn.c
bgpd/bgp_mplsvpn.h
bgpd/bgp_vty.c
bgpd/bgp_vty.h
bgpd/bgp_zebra.c
bgpd/bgpd.c
bgpd/bgpd.h
lib/command.c
lib/command.h
lib/log.c
lib/route_types.txt
vtysh/vtysh.c
zebra/zebra_rib.c