Implements REST endpoint to check host pool members before bind

Implements #4138
This commit is contained in:
Simone Mainardi 2020-07-15 16:02:08 +02:00
parent 1405107c13
commit 31715e65d2
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,12 @@
--
-- (C) 2013-20 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
package.path = dirs.installdir .. "/scripts/lua/modules/pools/?.lua;" .. package.path
local host_pools = require "host_pools"
local pools_rest_utils = require "pools_rest_utils"
pools_rest_utils.get_pool_by_member(host_pools)