diff options
author | G. Paul Ziemba <paulz@labn.net> | 2018-03-16 19:11:37 +0100 |
---|---|---|
committer | G. Paul Ziemba <paulz@labn.net> | 2018-03-20 06:13:43 +0100 |
commit | b9c7bc5ab0ee57f4052b625c0e76663f50c1249f (patch) | |
tree | 72a2ec7ecf75be31dc6bf7db63ae29446e9d760e /bgpd/bgp_vty.h | |
parent | Merge pull request #1885 from msablic/pim_mtrace_client (diff) | |
download | frr-b9c7bc5ab0ee57f4052b625c0e76663f50c1249f.tar.xz frr-b9c7bc5ab0ee57f4052b625c0e76663f50c1249f.zip |
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>
Diffstat (limited to 'bgpd/bgp_vty.h')
-rw-r--r-- | bgpd/bgp_vty.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bgpd/bgp_vty.h b/bgpd/bgp_vty.h index 459c4ffcc..f77ebb610 100644 --- a/bgpd/bgp_vty.h +++ b/bgpd/bgp_vty.h @@ -71,5 +71,6 @@ extern int bgp_vty_find_and_parse_afi_safi_bgp(struct vty *vty, safi_t *safi, struct bgp **bgp); extern int bgp_show_summary_vty(struct vty *vty, const char *name, afi_t afi, safi_t safi, u_char use_json); -extern void bgp_vpn_policy_config_write(struct vty *vty, struct bgp *bgp); +extern void bgp_vpn_policy_config_write_afi(struct vty *vty, struct bgp *bgp, + afi_t afi); #endif /* _QUAGGA_BGP_VTY_H */ |