summaryrefslogtreecommitdiff
path: root/src/services/api
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2022-11-18 16:08:47 -0600
committerJohn Estabrook <jestabro@vyos.io>2022-11-18 16:08:47 -0600
commit58057480e22712dc6d04396f8805d3db338bddfa (patch)
tree5f5ee1753edb918b42fc57ebdc2e04e5bf56dd8d /src/services/api
parent95abda42a4ef4a949b897a4aa5eaf52e6c2842a8 (diff)
downloadvyos-1x-58057480e22712dc6d04396f8805d3db338bddfa.tar.gz
vyos-1x-58057480e22712dc6d04396f8805d3db338bddfa.zip
IPsec: T4828: raise op-mode error on incorrect value
Diffstat (limited to 'src/services/api')
-rw-r--r--src/services/api/graphql/session/errors/op_mode_errors.py6
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
}