summaryrefslogtreecommitdiff
path: root/python/vyos
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-11-19 06:52:47 +0100
committerGitHub <noreply@github.com>2022-11-19 06:52:47 +0100
commit0cec72de1716e5dcad5074be8c5de03464577364 (patch)
tree5f5ee1753edb918b42fc57ebdc2e04e5bf56dd8d /python/vyos
parent95abda42a4ef4a949b897a4aa5eaf52e6c2842a8 (diff)
parent58057480e22712dc6d04396f8805d3db338bddfa (diff)
downloadvyos-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 'python/vyos')
-rw-r--r--python/vyos/opmode.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/vyos/opmode.py b/python/vyos/opmode.py
index 2e896c8e6..9dba8d30f 100644
--- a/python/vyos/opmode.py
+++ b/python/vyos/opmode.py
@@ -45,6 +45,12 @@ class PermissionDenied(Error):
"""
pass
+class IncorrectValue(Error):
+ """ Requested operation is valid, but an argument provided has an
+ incorrect value, preventing successful completion.
+ """
+ pass
+
class InternalError(Error):
""" Any situation when VyOS detects that it could not perform
an operation correctly due to logic errors in its own code