summaryrefslogtreecommitdiffstats
path: root/lib/frrlua.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-08-11 21:23:35 +0200
committerQuentin Young <qlyoung@nvidia.com>2020-12-02 00:37:14 +0100
commit0fe6a43d9040524f6715adaaf8f9d7d7aa28a53e (patch)
treed880c84634828e863efcacea7c3c498eb24e3467 /lib/frrlua.c
parentlib: remove frrlua_initialize (diff)
downloadfrr-0fe6a43d9040524f6715adaaf8f9d7d7aa28a53e.tar.xz
frr-0fe6a43d9040524f6715adaaf8f9d7d7aa28a53e.zip
lib: move bgp routemap stuff out of frrlua.[ch]
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/frrlua.c')
-rw-r--r--lib/frrlua.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/frrlua.c b/lib/frrlua.c
index 7dc878690..252b66796 100644
--- a/lib/frrlua.c
+++ b/lib/frrlua.c
@@ -170,28 +170,4 @@ void frrlua_export_logging(lua_State *L)
lua_setfield(L, -2, "log");
}
-
-/*
- * Experimental.
- *
- * This section has experimental Lua functionality that doesn't belong
- * elsewhere.
- */
-
-enum frrlua_rm_status frrlua_run_rm_rule(lua_State *L, const char *rule)
-{
- int status;
-
- lua_getglobal(L, rule);
- status = lua_pcall(L, 0, 1, 0);
- if (status) {
- zlog_debug("Executing Failure with function: %s: %d",
- rule, status);
- return LUA_RM_FAILURE;
- }
-
- status = lua_tonumber(L, -1);
- return status;
-}
-
#endif