]> git.proxmox.com Git - mirror_frr.git/blame - bgpd/bgp_community_alias.h
bgpd: Allow v6 LL peers to work when connected to as well
[mirror_frr.git] / bgpd / bgp_community_alias.h
CommitLineData
ed0e57e3
DA
1/* BGP community, large-community aliasing.
2 *
3 * Copyright (C) 2021 Donatas Abraitis <donatas.abraitis@gmail.com>
4 *
5 * This file is part of FRRouting (FRR).
6 *
7 * FRR is free software; you can redistribute it and/or modify it under the
8 * terms of the GNU General Public License as published by the Free Software
9 * Foundation; either version 2, or (at your option) any later version.
10 *
11 * FRR is distributed in the hope that it will be useful, but WITHOUT ANY
12 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 * 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#include "bgpd/bgp_lcommunity.h"
22
23#ifndef FRR_BGP_COMMUNITY_ALIAS_H
24#define FRR_BGP_COMMUNITY_ALIAS_H
25
26struct community_alias {
27 /* Human readable community string */
28 char community[LCOMMUNITY_SIZE * 3];
29
30 /* Human readable community alias */
31 char alias[BUFSIZ];
32};
33
34extern void bgp_community_alias_init(void);
35extern void bgp_community_alias_finish(void);
36extern struct community_alias *bgp_ca_alias_lookup(struct community_alias *ca);
37extern struct community_alias *
38bgp_ca_community_lookup(struct community_alias *ca);
39extern void bgp_ca_community_insert(struct community_alias *ca);
40extern void bgp_ca_alias_insert(struct community_alias *ca);
41extern void bgp_ca_community_delete(struct community_alias *ca);
42extern void bgp_ca_alias_delete(struct community_alias *ca);
43extern int bgp_community_alias_write(struct vty *vty);
44extern const char *bgp_community2alias(char *community);
f4dd8296 45extern const char *bgp_alias2community(char *alias);
15bc6a40 46extern char *bgp_alias2community_str(const char *str);
b4ad2fae 47extern void bgp_community_alias_command_completion_setup(void);
ed0e57e3
DA
48
49#endif /* FRR_BGP_COMMUNITY_ALIAS_H */