diff options
author | John Estabrook <jestabro@vyos.io> | 2022-08-22 12:03:56 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2022-08-23 09:41:19 -0500 |
commit | f66ad001e153ee42bc46edbe7df55145b7971544 (patch) | |
tree | e56905d2cd1455dbad37eabbc77583d2d76005fe /src/services/api/graphql/recipes/queries/system_status.py | |
parent | bf178babd96ee5b898f0dfa1f6e7d5a74fe34afd (diff) | |
download | vyos-1x-f66ad001e153ee42bc46edbe7df55145b7971544.tar.gz vyos-1x-f66ad001e153ee42bc46edbe7df55145b7971544.zip |
graphql: T3993: reorganize/rename directory structure
Diffstat (limited to 'src/services/api/graphql/recipes/queries/system_status.py')
-rwxr-xr-x | src/services/api/graphql/recipes/queries/system_status.py | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/services/api/graphql/recipes/queries/system_status.py b/src/services/api/graphql/recipes/queries/system_status.py deleted file mode 100755 index 8dadcc9f3..000000000 --- a/src/services/api/graphql/recipes/queries/system_status.py +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env python3 -# -# Copyright (C) 2022 VyOS maintainers and contributors -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 or later as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. -# -# - -import os -import sys -import json -import importlib.util - -from vyos.defaults import directories - -from api.graphql.utils.util import load_op_mode_as_module - -def get_system_version() -> dict: - show_version = load_op_mode_as_module('version.py') - return show_version.show(raw=True, funny=False) - -def get_system_uptime() -> dict: - show_uptime = load_op_mode_as_module('show_uptime.py') - return show_uptime.get_raw_data() - -def get_system_ram_usage() -> dict: - show_ram = load_op_mode_as_module('memory.py') - return show_ram.show(raw=True) |