diff options
author | John Estabrook <jestabro@vyos.io> | 2024-07-18 07:23:17 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-18 07:23:17 -0500 |
commit | 4d088e615adf5f9cb51b7d83c43f6476a6f1550b (patch) | |
tree | 4486e447f792d32959d6d70345c90238dea4e03d /python/vyos/opmode.py | |
parent | fae91a8d206ecc630284528ed5185aa3bce6bce1 (diff) | |
parent | 33ae19a57dc12ffb38973de5666b428e11187602 (diff) | |
download | vyos-1x-4d088e615adf5f9cb51b7d83c43f6476a6f1550b.tar.gz vyos-1x-4d088e615adf5f9cb51b7d83c43f6476a6f1550b.zip |
Merge pull request #3818 from dmbaturin/T6586-unconfigured-object
op-mode: T6586: add a distinct exception for unconfigured objects (as opposed to entire subsystems)
Diffstat (limited to 'python/vyos/opmode.py')
-rw-r--r-- | python/vyos/opmode.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/python/vyos/opmode.py b/python/vyos/opmode.py index 8dab9a4ca..a9819dc4b 100644 --- a/python/vyos/opmode.py +++ b/python/vyos/opmode.py @@ -31,7 +31,15 @@ class Error(Exception): class UnconfiguredSubsystem(Error): """ Requested operation is valid, but cannot be completed - because corresponding subsystem is not configured and running. + because corresponding subsystem is not configured + and thus is not running. + """ + pass + +class UnconfiguredObject(UnconfiguredSubsystem): + """ Requested operation is valid but cannot be completed + because its parameter refers to an object that does not exist + in the system configuration. """ pass |