mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Implements RESTful getters for interface pools and members
Implements #4109
This commit is contained in:
parent
62c35e82ec
commit
aab7051810
6 changed files with 68 additions and 2 deletions
|
|
@ -27,6 +27,7 @@ rest_utils.consts_snmp_device_no_device_discovered = -12
|
|||
rest_utils.consts_add_pool_failed = -13
|
||||
rest_utils.consts_edit_pool_failed = -14
|
||||
rest_utils.consts_delete_pool_failed = -15
|
||||
rest_utils.consts_pool_not_found = -16
|
||||
|
||||
local rc_str_consts = {
|
||||
[rest_utils.consts_ok] = "OK",
|
||||
|
|
@ -45,6 +46,7 @@ local rc_str_consts = {
|
|||
[rest_utils.consts_add_pool_failed] = "ADD_POOL_FAILED",
|
||||
[rest_utils.consts_edit_pool_failed] = "EDIT_POOL_FAILED",
|
||||
[rest_utils.consts_delete_pool_failed] = "DELETE_POOL_FAILED",
|
||||
[rest_utils.consts_pool_not_found] = "POOL_NOT_FOUND",
|
||||
}
|
||||
|
||||
function rest_utils.rc(ret_code, response)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue