Commit Graph

9 Commits (10d7b972cabaaffa099465c08f31dfe676ba5bbb)

Author SHA1 Message Date
Alejandro Sirgo Rica 10d7b972ca cli: add list scopes --client-ip
Implement a --client-ip filter to ease the task of finding the
hierarchy associated to a client or list of clients.

Usage:
/ogcli list scopes --client-ip 10.141.10.23

/ogcli list scopes --client-ip 10.141.10.23 --client-ip 10.141.10.22
2024-06-03 12:46:28 +02:00
OpenGnSys Support Team c1aae6e35e src: update copyright statement
use opengnsys@soleta.eu email instead of info@soleta.eu
2024-01-02 14:00:53 +01:00
Jose M. Guisado d90ab82cec format: use autopep8
Use autopep8 for coding format, and only for whitespace changes. This
change drops use of tabs in favor of spaces.

Doesn't use autopep8 --aggresive option.

Format command:

$ autopep8 --inline --recursive .

When using git-blame, use --ignore-rev in order to ignore this
reformatting commit.
2022-05-20 10:22:42 +02:00
Jose M. Guisado b765ee50d3 utils: add print_json
Adds a pretty printing function for JSON data.

Replaces print for print_json in corresponding cli objects.

Follows commit 828d6c0ce7
("list scopes: pretty print scope tree")
2022-05-17 11:24:49 +02:00
Jose M. Guisado 828d6c0ce7 list scopes: pretty print scope tree
Use json module to pretty print the scope tree. JSON keys are ordered
and two-space indentation is used.
2022-05-16 15:17:58 +02:00
OpenGnSys Support Team 5f922571e2 ogCLI is AGPLv3+
Update license header in files.
2021-05-14 00:26:33 +02:00
Jose M. Guisado 565e798ef9 Print json instead of python dict in responses
r.json() decodes the responses json and passes it to json.loads() which
will convert the content into a python dictionary.

Print the literal JSON text so that output can be further manipulated by
other tools like jq.
2021-03-18 15:40:35 +01:00
OpenGnSys Support Team 14b7729a71 add license header to source code files 2020-07-01 12:34:46 +02:00
Roberto Hueso Gómez dbf0f00650 Rename files to remove 'og' prefix
This prefix is redundant on almost every file, so the prefix is removed from
filenames and imports.
2020-06-30 12:51:51 +02:00