summaryrefslogtreecommitdiff
path: root/src/services/api
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2023-01-23 16:45:06 +0000
committerDaniil Baturin <daniil@baturin.org>2023-01-23 16:50:17 +0000
commitb5e90197263bd59b62cf24c631cc4973c4514dd9 (patch)
tree51c1c39e4fd35a6abf7ff8e2a43c8edcacad9e0d /src/services/api
parent1bd69a81dc32fdaa62be27e4f5ae3cfe333f2a26 (diff)
downloadvyos-1x-b5e90197263bd59b62cf24c631cc4973c4514dd9.tar.gz
vyos-1x-b5e90197263bd59b62cf24c631cc4973c4514dd9.zip
op mode: T4951: add InsufficientResources error
Diffstat (limited to 'src/services/api')
-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 4029fd0a1..a8a9ee426 100644
--- a/src/services/api/graphql/session/errors/op_mode_errors.py
+++ b/src/services/api/graphql/session/errors/op_mode_errors.py
@@ -4,6 +4,7 @@ op_mode_err_msg = {
"UnconfiguredSubsystem": "subsystem is not configured or not running",
"DataUnavailable": "data currently unavailable",
"PermissionDenied": "client does not have permission",
+ "InsufficientResources": "insufficient system resources"
"IncorrectValue": "argument value is incorrect",
"UnsupportedOperation": "operation is not supported (yet)",
}
@@ -11,6 +12,7 @@ op_mode_err_msg = {
op_mode_err_code = {
"UnconfiguredSubsystem": 2000,
"DataUnavailable": 2001,
+ "InsufficientResources": 2002,
"PermissionDenied": 1003,
"IncorrectValue": 1002,
"UnsupportedOperation": 1004,