Implements RESTful addition of interface pools and members

This commit is contained in:
Simone Mainardi 2020-07-06 12:38:39 +02:00
parent 1ef13ca9ea
commit ca1a011c2b
6 changed files with 36 additions and 3 deletions

View file

@ -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)