Adds REST constants to handle nEdge DHCP leases errors

Addresses #2918
This commit is contained in:
Simone Mainardi 2021-11-02 17:14:46 +01:00
parent 1b37d6e748
commit 3dff9421e0
2 changed files with 8 additions and 0 deletions

View file

@ -89,6 +89,10 @@ local rest_utils = {
add_pool_failed_too_many_pools = { http_code = 409, rc = -53, str = "ADD_POOL_FAILED_TOO_MANY_POOLS"},
add_pool_failed_too_many_pools_enterprise = { http_code = 409, rc = -54, str = "ADD_POOL_FAILED_TOO_MANY_POOLS_ENTERPRISE"},
-- nEdge
dhcp_active_leases_not_nedge = { http_code = 409, rc = -55, str = "DHCP_ACTIVE_LEASES_NOT_NEDGE"},
dhcp_active_leases_not_routing_mode = { http_code = 409, rc = -56, str = "DHCP_ACTIVE_LEASES_NOT_ROUTING_MODE"},
},
}
}