summaryrefslogtreecommitdiff
path: root/src/services/api/graphql/generate
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-02-06 12:48:59 -0600
committerJohn Estabrook <jestabro@vyos.io>2023-02-06 12:48:59 -0600
commit1f71a4f9d733e5f24b1f1648f68787dc2c5cef09 (patch)
tree62d984ce09b96423726ff328654f3fbbb47b7887 /src/services/api/graphql/generate
parent2622902ac76bc1c3356bb722f63e931119f3eb04 (diff)
downloadvyos-1x-1f71a4f9d733e5f24b1f1648f68787dc2c5cef09.tar.gz
vyos-1x-1f71a4f9d733e5f24b1f1648f68787dc2c5cef09.zip
graphql: T4979: add query show_user_info
Diffstat (limited to 'src/services/api/graphql/generate')
-rw-r--r--src/services/api/graphql/generate/config_session_function.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/services/api/graphql/generate/config_session_function.py b/src/services/api/graphql/generate/config_session_function.py
index fc0dd7a87..20fc7cc1d 100644
--- a/src/services/api/graphql/generate/config_session_function.py
+++ b/src/services/api/graphql/generate/config_session_function.py
@@ -8,8 +8,12 @@ def show_config(path: list[str], configFormat: typing.Optional[str]):
def show(path: list[str]):
pass
+def show_user_info(user: str):
+ pass
+
queries = {'show_config': show_config,
- 'show': show}
+ 'show': show,
+ 'show_user_info': show_user_info}
def save_config_file(fileName: typing.Optional[str]):
pass