Implements REST endpoint to bind host pool members

Implements #4136
This commit is contained in:
Simone Mainardi 2020-07-15 11:45:13 +02:00
parent 96e9874929
commit 6638f66543
4 changed files with 50 additions and 3 deletions

View file

@ -28,6 +28,7 @@ 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
rest_utils.consts_bind_pool_member_failed = -17
local rc_str_consts = {
[rest_utils.consts_ok] = "OK",
@ -47,6 +48,7 @@ local rc_str_consts = {
[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",
[rest_utils.consts_bind_pool_member_failed] = "BIND_POOL_MEMBER_FAILED",
}
function rest_utils.rc(ret_code, response)