GNOME Bugzilla – Bug 771870
[review] [nmcli] explicitly select filename/JSON type for team.config setting [th/nmcli-team-config-args-bgo771870]
Last modified: 2016-09-27 09:05:28 UTC
When setting the team.config or team-port.config, nmcli allows either specifying a filename or the JSON inline. Add a possibility to explicitly select whether it should be a file. This is mainly to make scripting more robust. nmcli connection modify my-team team.config "file://$FILE" nmcli connection modify my-team team.config "file://"<(cat "$FILE") or nmcli connection modify my-team team.config "json://$(cat $FILE)" JSON="$(cat "$FILE")" nmcli connection modify my-team team.config "json://$JSON" Please review
> cli: support explicitly selecting team-config as file or json data /* * nmc_team_check_config: * @config: file name with team config, or raw team JSON config data - * @out_config: raw team JSON config data (with removed new-line characters) + * @out_config: raw team JSON config data + * The value must be returned with g_free(). s/returned/freed/ ? Rest LGTM.
merged: https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=c2ef5da42a38d17588fb2591ce790e3daf87aac4