summaryrefslogtreecommitdiffstats
path: root/cli/objects
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-01-02 13:44:33 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-01-02 13:52:36 +0100
commit020592d6fc398b65fe1bc234e743426bebb9ac03 (patch)
tree4a080c5f3b4dc25d91208b202d56d1a2be0e6d14 /cli/objects
parent76b4492fe65199c974b35c90b577c9cf977cf78d (diff)
live: add command to list available live images
Add new command to display the available live images: # ogcli list live
Diffstat (limited to 'cli/objects')
-rw-r--r--cli/objects/live.py17
1 files changed, 17 insertions, 0 deletions
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 <info@soleta.eu>
+#
+# 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)