summaryrefslogtreecommitdiff
path: root/python/vyos/opmode.py
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-01-10 11:15:24 -0600
committerGitHub <noreply@github.com>2023-01-10 11:15:24 -0600
commit0e5ea5a63ab9db9ae04ab09e3af42a6e8e1c4c55 (patch)
tree3b470091a65d585ac10f52cc2dedfd88c71e47a1 /python/vyos/opmode.py
parentc86ed3df1e309b6a98de3ce88b508ea79453f9b1 (diff)
parent2ac28861e2a94bef73713fbb78b00ec9beaf4189 (diff)
downloadvyos-1x-0e5ea5a63ab9db9ae04ab09e3af42a6e8e1c4c55.tar.gz
vyos-1x-0e5ea5a63ab9db9ae04ab09e3af42a6e8e1c4c55.zip
Merge pull request #1746 from dmbaturin/op-mode-unsupported-error
opmode: T2546: add UnsupportedOperation to op mode errors
Diffstat (limited to 'python/vyos/opmode.py')
-rw-r--r--python/vyos/opmode.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/vyos/opmode.py b/python/vyos/opmode.py
index 17a9ab581..19c476b1c 100644
--- a/python/vyos/opmode.py
+++ b/python/vyos/opmode.py
@@ -45,6 +45,10 @@ class PermissionDenied(Error):
"""
pass
+class UnsupportedOperation(Error):
+ """ Requested operation is technically valid but is not implemented yet. """
+ pass
+
class IncorrectValue(Error):
""" Requested operation is valid, but an argument provided has an
incorrect value, preventing successful completion.