]> git.proxmox.com Git - mirror_frr.git/blob - bgpd/bgp_script.h
bgpd: Refactor subgroup_announce_table() to reuse an existing helpers
[mirror_frr.git] / bgpd / bgp_script.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* BGP scripting foo
3 * Copyright (C) 2020 NVIDIA Corporation
4 * Quentin Young
5 */
6 #ifndef __BGP_SCRIPT__
7 #define __BGP_SCRIPT__
8
9 #include <zebra.h>
10 #include "bgpd.h"
11
12 #ifdef HAVE_SCRIPTING
13
14 #include "frrlua.h"
15
16 /*
17 * Initialize scripting stuff.
18 */
19 void bgp_script_init(void);
20
21 void lua_pushpeer(lua_State *L, const struct peer *peer);
22
23 void lua_pushattr(lua_State *L, const struct attr *attr);
24
25 void lua_decode_attr(lua_State *L, int idx, struct attr *attr);
26
27 void *lua_toattr(lua_State *L, int idx);
28
29 #endif /* HAVE_SCRIPTING */
30
31 #endif /* __BGP_SCRIPT__ */