From 020592d6fc398b65fe1bc234e743426bebb9ac03 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Tue, 2 Jan 2024 13:44:33 +0100 Subject: live: add command to list available live images Add new command to display the available live images: # ogcli list live --- cli/objects/live.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 cli/objects/live.py (limited to 'cli/objects') diff --git a/cli/objects/live.py b/cli/objects/live.py new file mode 100644 index 0000000..e62b648 --- /dev/null +++ b/cli/objects/live.py @@ -0,0 +1,17 @@ +# Copyright (C) 2023-2024 Soleta Networks +# +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU Affero General Public License as published by the +# Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + +import argparse + +from cli.utils import * + +class OgLive(): + + @staticmethod + def list_live(rest): + r = rest.get('/oglive/list') + print_json(r.text) -- cgit v1.2.3-18-g5258