diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-11-19 06:52:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-19 06:52:47 +0100 |
commit | 0cec72de1716e5dcad5074be8c5de03464577364 (patch) | |
tree | 5f5ee1753edb918b42fc57ebdc2e04e5bf56dd8d /src/services | |
parent | 95abda42a4ef4a949b897a4aa5eaf52e6c2842a8 (diff) | |
parent | 58057480e22712dc6d04396f8805d3db338bddfa (diff) | |
download | vyos-1x-0cec72de1716e5dcad5074be8c5de03464577364.tar.gz vyos-1x-0cec72de1716e5dcad5074be8c5de03464577364.zip |
Merge pull request #1665 from jestabro/op-mode-value-error
IPsec: T4828: raise op-mode error on incorrect value
Diffstat (limited to 'src/services')
-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 7ba75455d..7bc1d1d81 100644 --- a/src/services/api/graphql/session/errors/op_mode_errors.py +++ b/src/services/api/graphql/session/errors/op_mode_errors.py @@ -3,11 +3,13 @@ op_mode_err_msg = { "UnconfiguredSubsystem": "subsystem is not configured or not running", "DataUnavailable": "data currently unavailable", - "PermissionDenied": "client does not have permission" + "PermissionDenied": "client does not have permission", + "IncorrectValue": "argument value is incorrect" } op_mode_err_code = { "UnconfiguredSubsystem": 2000, "DataUnavailable": 2001, - "PermissionDenied": 1003 + "PermissionDenied": 1003, + "IncorrectValue": 1002 } |