summaryrefslogtreecommitdiff
path: root/src/services
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-01-09 14:39:27 -0600
committerJohn Estabrook <jestabro@vyos.io>2023-01-09 14:50:20 -0600
commit2fc4f15353eb9ec3788693b87cd2b8fee1d4eafa (patch)
tree21a2d91f548b485ea611189e8b109e24de9db438 /src/services
parent91e0ad075586d27e51a354dbe057d04957b30168 (diff)
downloadvyos-1x-2fc4f15353eb9ec3788693b87cd2b8fee1d4eafa.tar.gz
vyos-1x-2fc4f15353eb9ec3788693b87cd2b8fee1d4eafa.zip
container: T4880: include 'add'/'delete' in standard op-mode functions
Diffstat (limited to 'src/services')
-rw-r--r--src/services/api/graphql/libs/op_mode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/api/graphql/libs/op_mode.py b/src/services/api/graphql/libs/op_mode.py
index 211f8ce19..c1eb493db 100644
--- a/src/services/api/graphql/libs/op_mode.py
+++ b/src/services/api/graphql/libs/op_mode.py
@@ -30,7 +30,7 @@ def load_op_mode_as_module(name: str):
return load_as_module(name, path)
def is_op_mode_function_name(name):
- if re.match(r"^(show|clear|reset|restart)", name):
+ if re.match(r"^(show|clear|reset|restart|add|delete)", name):
return True
return False