Implements RESTful getters for interface pools and members

Implements #4109
This commit is contained in:
Simone Mainardi 2020-07-06 14:22:21 +02:00
parent 62c35e82ec
commit aab7051810
6 changed files with 68 additions and 2 deletions

View file

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