diff options
author | John Estabrook <jestabro@vyos.io> | 2022-07-17 15:38:17 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2022-07-24 08:44:58 -0500 |
commit | 40d754b44d95293fc050740e9bf9f8400a76041a (patch) | |
tree | 94898c19f08ae99833fad47b6b62995c95266440 /src/services/api/graphql/recipes | |
parent | f9bd803ffe8ae5b8b353bf53c4c7471323935e24 (diff) | |
download | vyos-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')
-rwxr-xr-x | src/services/api/graphql/recipes/queries/system_status.py | 8 |
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) |