summaryrefslogtreecommitdiff
path: root/src/services/api/graphql/recipes/queries
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2022-07-17 15:38:17 -0500
committerJohn Estabrook <jestabro@vyos.io>2022-07-24 08:44:58 -0500
commit40d754b44d95293fc050740e9bf9f8400a76041a (patch)
tree94898c19f08ae99833fad47b6b62995c95266440 /src/services/api/graphql/recipes/queries
parentf9bd803ffe8ae5b8b353bf53c4c7471323935e24 (diff)
downloadvyos-1x-40d754b44d95293fc050740e9bf9f8400a76041a.tar.gz
vyos-1x-40d754b44d95293fc050740e9bf9f8400a76041a.zip
graphql: T4413: update 'SystemStatus' query for standardized op-mode
Update for T2719: Standardized op mode script structure
Diffstat (limited to 'src/services/api/graphql/recipes/queries')
-rwxr-xr-xsrc/services/api/graphql/recipes/queries/system_status.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/services/api/graphql/recipes/queries/system_status.py b/src/services/api/graphql/recipes/queries/system_status.py
index 4a4d9871c..00c137443 100755
--- a/src/services/api/graphql/recipes/queries/system_status.py
+++ b/src/services/api/graphql/recipes/queries/system_status.py
@@ -33,13 +33,13 @@ def load_as_module(name: str):
return mod
def get_system_version() -> dict:
- show_version = load_as_module('show_version.py')
- return show_version.get_raw_data()
+ show_version = load_as_module('version.py')
+ return show_version.show(raw=True, funny=False)
def get_system_uptime() -> dict:
show_uptime = load_as_module('show_uptime.py')
return show_uptime.get_raw_data()
def get_system_ram_usage() -> dict:
- show_ram = load_as_module('show_ram.py')
- return show_ram.get_raw_data()
+ show_ram = load_as_module('memory.py')
+ return show_ram.show(raw=True)