mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Implements RESTful addition of interface pools and members
This commit is contained in:
parent
1ef13ca9ea
commit
ca1a011c2b
6 changed files with 36 additions and 3 deletions
|
|
@ -24,6 +24,7 @@ rest_utils.consts_resolution_failed = -9
|
|||
rest_utils.consts_snmp_device_already_added = -10
|
||||
rest_utils.consts_snmp_device_unreachable = -11
|
||||
rest_utils.consts_snmp_device_no_device_discovered = -12
|
||||
rest_utils.consts_add_pool_failed = -13
|
||||
|
||||
local rc_str_consts = {
|
||||
[rest_utils.consts_ok] = "OK",
|
||||
|
|
@ -39,6 +40,7 @@ local rc_str_consts = {
|
|||
[rest_utils.consts_snmp_device_already_added] = "SNMP_DEVICE_ALREADY_ADDED",
|
||||
[rest_utils.consts_snmp_device_unreachable] = "SNMP_DEVICE_UNREACHABLE",
|
||||
[rest_utils.consts_snmp_device_no_device_discovered] = "NO_SNMP_DEVICE_DISCOVERED",
|
||||
[rest_utils.consts_add_pool_failed] = "ADD_POOL_FAILED",
|
||||
}
|
||||
|
||||
function rest_utils.rc(ret_code, response)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue