Implements RESTful delete of interface pools and members

Implements #4108
This commit is contained in:
Simone Mainardi 2020-07-06 13:06:01 +02:00
parent 519fec5f94
commit 62c35e82ec
6 changed files with 33 additions and 1 deletions

View file

@ -26,6 +26,7 @@ rest_utils.consts_snmp_device_unreachable = -11
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
local rc_str_consts = {
[rest_utils.consts_ok] = "OK",
@ -43,6 +44,7 @@ local rc_str_consts = {
[rest_utils.consts_snmp_device_no_device_discovered] = "NO_SNMP_DEVICE_DISCOVERED",
[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",
}
function rest_utils.rc(ret_code, response)