]>
git.proxmox.com Git - mirror_frr.git/blob - pbrd/pbr_vrf.h
3 * Copyright (C) 2019 Cumulus Networks, Inc.
6 * FRR 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
11 * FRR 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.
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
27 static inline const char *pbr_vrf_name(const struct pbr_vrf
*pbr_vrf
)
29 return pbr_vrf
->vrf
->name
;
32 static inline vrf_id_t
pbr_vrf_id(const struct pbr_vrf
*pbr_vrf
)
34 return pbr_vrf
->vrf
->vrf_id
;
37 extern struct pbr_vrf
*pbr_vrf_lookup_by_name(const char *name
);
38 extern bool pbr_vrf_is_valid(const struct pbr_vrf
*pbr_vrf
);
39 extern bool pbr_vrf_is_enabled(const struct pbr_vrf
*pbr_vrf
);
41 extern void pbr_vrf_init(void);
42 extern void pbr_vrf_terminate(void);