Skip to content

Commit 749e763

Browse files
committed
CA-249668: Add new API error TLS_CONNECTION_FAILED
Add new API error `TLS_CONNECTION_FAILED` for TLS connection failure on the specified address and port. Signed-off-by: Sharad Yadav <[email protected]>
1 parent 213ea57 commit 749e763

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

ocaml/idl/datamodel.ml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,9 @@ let _ =
505505
error Api_errors.cannot_contact_host ["host"]
506506
~doc:"Cannot forward messages because the host cannot be contacted. The host may be switched off or there may be network connectivity problems." ();
507507

508+
error Api_errors.tls_connection_failed ["address"; "port"]
509+
~doc:"Cannot contact the other host using TLS on the specified address and port" ();
510+
508511
error Api_errors.uuid_invalid [ "type"; "uuid" ]
509512
~doc:"The uuid you supplied was invalid." ();
510513
error Api_errors.object_nolonger_exists []

ocaml/xapi-consts/api_errors.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ let session_invalid = "SESSION_INVALID"
4242
let change_password_rejected = "CHANGE_PASSWORD_REJECTED"
4343
let user_is_not_local_superuser = "USER_IS_NOT_LOCAL_SUPERUSER"
4444
let cannot_contact_host = "CANNOT_CONTACT_HOST"
45+
let tls_connection_failed = "TLS_CONNECTION_FAILED"
4546
let not_supported_during_upgrade = "NOT_SUPPORTED_DURING_UPGRADE"
4647

4748
let handle_invalid = "HANDLE_INVALID"

0 commit comments

Comments
 (0)