summaryrefslogtreecommitdiff
path: root/src/services/api/graphql/libs
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-01-23 12:12:43 -0600
committerJohn Estabrook <jestabro@vyos.io>2023-01-23 12:13:39 -0600
commit90bd28bd9c487d4f2e4e8555dccc0b1e89886ab0 (patch)
tree35ad2e023e5d956e72f776e7998866a989321c43 /src/services/api/graphql/libs
parent36adc975316b8511c53c813b7542196e3d2779a8 (diff)
downloadvyos-1x-90bd28bd9c487d4f2e4e8555dccc0b1e89886ab0.tar.gz
vyos-1x-90bd28bd9c487d4f2e4e8555dccc0b1e89886ab0.zip
graphql: T4544: use opmode._is_op_mode_function_name instead of local copy
Diffstat (limited to 'src/services/api/graphql/libs')
-rw-r--r--src/services/api/graphql/libs/op_mode.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/services/api/graphql/libs/op_mode.py b/src/services/api/graphql/libs/op_mode.py
index c1eb493db..c553bbd67 100644
--- a/src/services/api/graphql/libs/op_mode.py
+++ b/src/services/api/graphql/libs/op_mode.py
@@ -29,11 +29,6 @@ def load_op_mode_as_module(name: str):
name = os.path.splitext(name)[0].replace('-', '_')
return load_as_module(name, path)
-def is_op_mode_function_name(name):
- if re.match(r"^(show|clear|reset|restart|add|delete)", name):
- return True
- return False
-
def is_show_function_name(name):
if re.match(r"^show", name):
return True