cli: support explicitly selecting team-config as file or json data

System Internals / NetworkManager - Thomas Haller [redhat.com] - 27 September 2016 03:59 UTC

nmcli has a heuristic when setting the team-config to accepting both a filename or the plain json text.

Add support for two schemes "file://" and "json://" to explicitly determine whether to read from file or from json.

Also, no longer silently ignore an all-whitespace word. That is an error (unless you have a file named " ").

Also, no longer replace newlines with space. Don't mangle the input text at all.

c1a4c08 cli: support explicitly selecting team-config as file or json data
clients/cli/common.c | 62 +++++++++++++++++++++++++++++++++++---------------
man/nmcli.xml | 16 ++++++++-----
2 files changed, 54 insertions(+), 24 deletions(-)

Upstream: cgit.freedesktop.org


  • Share