diff options
author | John Estabrook <jestabro@vyos.io> | 2023-01-10 11:15:24 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-10 11:15:24 -0600 |
commit | 0e5ea5a63ab9db9ae04ab09e3af42a6e8e1c4c55 (patch) | |
tree | 3b470091a65d585ac10f52cc2dedfd88c71e47a1 /src/services/api | |
parent | c86ed3df1e309b6a98de3ce88b508ea79453f9b1 (diff) | |
parent | 2ac28861e2a94bef73713fbb78b00ec9beaf4189 (diff) | |
download | vyos-1x-0e5ea5a63ab9db9ae04ab09e3af42a6e8e1c4c55.tar.gz vyos-1x-0e5ea5a63ab9db9ae04ab09e3af42a6e8e1c4c55.zip |
Merge pull request #1746 from dmbaturin/op-mode-unsupported-error
opmode: T2546: add UnsupportedOperation to op mode errors
Diffstat (limited to 'src/services/api')
-rw-r--r-- | src/services/api/graphql/session/errors/op_mode_errors.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/services/api/graphql/session/errors/op_mode_errors.py b/src/services/api/graphql/session/errors/op_mode_errors.py index 7bc1d1d81..4029fd0a1 100644 --- a/src/services/api/graphql/session/errors/op_mode_errors.py +++ b/src/services/api/graphql/session/errors/op_mode_errors.py @@ -4,12 +4,14 @@ op_mode_err_msg = { "UnconfiguredSubsystem": "subsystem is not configured or not running", "DataUnavailable": "data currently unavailable", "PermissionDenied": "client does not have permission", - "IncorrectValue": "argument value is incorrect" + "IncorrectValue": "argument value is incorrect", + "UnsupportedOperation": "operation is not supported (yet)", } op_mode_err_code = { "UnconfiguredSubsystem": 2000, "DataUnavailable": 2001, "PermissionDenied": 1003, - "IncorrectValue": 1002 + "IncorrectValue": 1002, + "UnsupportedOperation": 1004, } |