]> git.proxmox.com Git - mirror_frr.git/blob - bgpd/bgp_evpn_vty.h
doc: Add `show ipv6 rpf X:X::X:X` command to docs
[mirror_frr.git] / bgpd / bgp_evpn_vty.h
1 /* EVPN VTY functions to EVPN
2 * Copyright (C) 2017 6WIND
3 *
4 * This file is part of FRRouting.
5 *
6 * FRRouting is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2, or (at your option) any
9 * later version.
10 *
11 * FRRouting is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; see the file COPYING; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21 #ifndef _FRR_BGP_EVPN_VTY_H
22 #define _FRR_BGP_EVPN_VTY_H
23
24 extern void bgp_config_write_evpn_info(struct vty *vty, struct bgp *bgp,
25 afi_t afi, safi_t safi);
26 extern void bgp_ethernetvpn_init(void);
27
28 #define L2VPN_HELP_STR "Layer 2 Virtual Private Network\n"
29 #define EVPN_HELP_STR "Ethernet Virtual Private Network\n"
30 #define VNI_HELP_STR "VXLAN Network Identifier\n"
31 #define VNI_NUM_HELP_STR "VNI number\n"
32 #define VNI_ALL_HELP_STR "All VNIs\n"
33 #define DETAIL_HELP_STR "Print Detailed Output\n"
34 #define VTEP_HELP_STR "Remote VTEP\n"
35 #define VTEP_IP_HELP_STR "Remote VTEP IP address\n"
36
37 extern int argv_find_and_parse_oly_idx(struct cmd_token **argv, int argc,
38 int *oly_idx,
39 enum overlay_index_type *oly);
40
41 /* Parse type from "type <ead|1|...>", return -1 on failure */
42 extern int bgp_evpn_cli_parse_type(int *type, struct cmd_token **argv,
43 int argc);
44
45 extern int bgp_evpn_show_all_routes(struct vty *vty, struct bgp *bgp, int type,
46 bool use_json, int detail);
47
48 #endif /* _QUAGGA_BGP_EVPN_VTY_H */