summaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-08-08 20:48:25 +0200
committerThomas Haller <thaller@redhat.com>2018-08-10 10:38:19 +0200
commit9e7c960fadfc166ea27fd17e42d590d1d5bc1b55 (patch)
treec7cc1b9c10390c27626a6c2294ee6e30f24ee2ee /shared
parent582ee91145a5369222b709fb8ee8d367dea85ed7 (diff)
downloadNetworkManager-9e7c960fadfc166ea27fd17e42d590d1d5bc1b55.tar.gz
cli: hide ethtool options form `nmcli connection show "$PROFILE"` output
We will add a large number of offload features. That means, the output of `nmcli connection show "$PROFILE"` would be very verbose, in case the profile has a [ethtool] option. Since this is newly added API, don't do that. Don't show ethtool properties that are left unset. A minor problem here is, that it becomes no longer obvious which properties exist. We should however counter that by documentation. Also, one could do: $ nmcli connection modify "$PROFILE" ethtool.xxx x Error: invalid property 'xxx': 'xxx' not among [feature-gro, feature-gso, feature-lro, feature-ntuple, feature-rx, feature-rxhash, feature-rxvlan, feature-sg, feature-tso, feature-tx, feature-txvlan, feature-tx-tcp6-segmentation, feature-tx-tcp-segmentation]. Likewise, bash completion still works as one would expect. $ nmcli --complete-args connection modify "$PROFILE" ethtool. ethtool.feature-gro ethtool.feature-gso ethtool.feature-lro [...] Note the output of $ nmcli -f ethtool.feature-gro connection show "$PROFILE" gives now nothing (if there is an ethtool section, but not this particular feature). Maybe this shouldn't be like that. On the other hand, specifying a connection setting that doesn't exist also gives no output: $ nmcli -f bond connection show "$PROFILE" So, maybe this behavior is fine.
Diffstat (limited to 'shared')
0 files changed, 0 insertions, 0 deletions