summaryrefslogtreecommitdiff
path: root/src/services/api/graphql
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2024-07-17 11:45:35 +0100
committerDaniil Baturin <daniil@baturin.org>2024-07-17 11:45:35 +0100
commit33ae19a57dc12ffb38973de5666b428e11187602 (patch)
tree3dedbe75601c95f3fefccbd5450bdacd958fdfa6 /src/services/api/graphql
parente9232c7a751ffec34f18e1734cb18ac01da35cb7 (diff)
downloadvyos-1x-33ae19a57dc12ffb38973de5666b428e11187602.tar.gz
vyos-1x-33ae19a57dc12ffb38973de5666b428e11187602.zip
op-mode: T6586: add a distinct exception for unconfigured objects
as opposed to entire subsystems
Diffstat (limited to 'src/services/api/graphql')
-rw-r--r--src/services/api/graphql/session/errors/op_mode_errors.py2
1 files changed, 2 insertions, 0 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 18d555f2d..800767219 100644
--- a/src/services/api/graphql/session/errors/op_mode_errors.py
+++ b/src/services/api/graphql/session/errors/op_mode_errors.py
@@ -1,5 +1,6 @@
op_mode_err_msg = {
"UnconfiguredSubsystem": "subsystem is not configured or not running",
+ "UnconfiguredObject": "object does not exist in the system configuration",
"DataUnavailable": "data currently unavailable",
"PermissionDenied": "client does not have permission",
"InsufficientResources": "insufficient system resources",
@@ -9,6 +10,7 @@ op_mode_err_msg = {
op_mode_err_code = {
"UnconfiguredSubsystem": 2000,
+ "UnconfiguredObject": 2003,
"DataUnavailable": 2001,
"InsufficientResources": 2002,
"PermissionDenied": 1003,