summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri <irc@indrajit.com>2024-01-20 02:24:04 -0600
committerIndrajit Raychaudhuri <irc@indrajit.com>2024-01-22 00:54:34 -0600
commit54dfb77a3035450ace0f9dc1ade1b498a900fb8b (patch)
treef9e4991df4abdc2cb19d5553ce414cf6436a529f /python
parent7aa116fc7a2a23eb5e534ca1b10deec0f1dd2a91 (diff)
downloadvyos-1x-54dfb77a3035450ace0f9dc1ade1b498a900fb8b.tar.gz
vyos-1x-54dfb77a3035450ace0f9dc1ade1b498a900fb8b.zip
T2719: Add 'update' in standard op-mode function list
Diffstat (limited to 'python')
-rw-r--r--python/vyos/opmode.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/python/vyos/opmode.py b/python/vyos/opmode.py
index 230a85541..e1af1a682 100644
--- a/python/vyos/opmode.py
+++ b/python/vyos/opmode.py
@@ -1,4 +1,4 @@
-# Copyright 2022-2023 VyOS maintainers and contributors <maintainers@vyos.io>
+# Copyright 2022-2024 VyOS maintainers and contributors <maintainers@vyos.io>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@ -81,7 +81,7 @@ class InternalError(Error):
def _is_op_mode_function_name(name):
- if re.match(r"^(show|clear|reset|restart|add|delete|generate|set)", name):
+ if re.match(r"^(show|clear|reset|restart|add|update|delete|generate|set)", name):
return True
else:
return False
@@ -275,4 +275,3 @@ def run(module):
# Other functions should not return anything,
# although they may print their own warnings or status messages
func(**args)
-