mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Improve add/host/pool.lua
This commit is contained in:
parent
81a731c343
commit
6fcfbda842
2 changed files with 15 additions and 0 deletions
|
|
@ -9,4 +9,11 @@ package.path = dirs.installdir .. "/scripts/lua/modules/pools/?.lua;" .. package
|
|||
local host_pools = require "host_pools"
|
||||
local pools_rest_utils = require "pools_rest_utils"
|
||||
|
||||
--
|
||||
-- Add host pool
|
||||
-- Example: curl -u admin:admin -H "Content-Type: application/json" -d '{"pool_name":"TestPool","pool_members":"192.168.223.128/32@0,192.168.223.129/32@0"}' http://localhost:3000/lua/rest/v2/add/host/pool.lua
|
||||
--
|
||||
-- NOTE: in case of invalid login, no error is returned but redirected to login
|
||||
--
|
||||
|
||||
pools_rest_utils.add_pool(host_pools)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue