]>
Commit | Line | Data |
---|---|---|
acddc0ed | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
b4becb06 QY |
2 | /* BGP scripting foo |
3 | * Copyright (C) 2020 NVIDIA Corporation | |
4 | * Quentin Young | |
b4becb06 | 5 | */ |
fa22080d QY |
6 | #ifndef __BGP_SCRIPT__ |
7 | #define __BGP_SCRIPT__ | |
b4becb06 QY |
8 | |
9 | #include <zebra.h> | |
b7da61c1 | 10 | #include "bgpd.h" |
b4becb06 | 11 | |
fa22080d QY |
12 | #ifdef HAVE_SCRIPTING |
13 | ||
b7da61c1 DL |
14 | #include "frrlua.h" |
15 | ||
b4becb06 QY |
16 | /* |
17 | * Initialize scripting stuff. | |
18 | */ | |
19 | void bgp_script_init(void); | |
fa22080d | 20 | |
b7da61c1 DL |
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 | ||
fa22080d QY |
29 | #endif /* HAVE_SCRIPTING */ |
30 | ||
31 | #endif /* __BGP_SCRIPT__ */ |