summaryrefslogtreecommitdiff
path: root/clients/common
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-04-25 09:53:12 +0200
committerThomas Haller <thaller@redhat.com>2020-04-28 13:01:18 +0200
commit3cf1e8395e2b6b007b45b9dedcb76289ec977e05 (patch)
tree3d6fa6d0effaf02ca1cb19941f96f7412d9f4fdc /clients/common
parent9b295f0df56880be2677f18a21bc6b5c27c51dfc (diff)
downloadNetworkManager-th/mud-url-global-default.tar.gz
cli: hide default setting of "connection.mud-url" from nmcli outputth/mud-url-global-default
"connection.mud-url" is a commonly not used parameter, that most users won't care. To minimize the output of $ nmcli connection show "$PROFILE" hide the MUD URL if it is unset. This mechanism of nmcli is not yet great, because there is currently no way to print a default value, and $ nmcli -f connection.mud-url connection show "$PROFILE" does not work as one would expect(??). But that is a shortcoming of the general mechanism in nmcli, and not specific to the MUD URL property.
Diffstat (limited to 'clients/common')
-rw-r--r--clients/common/nm-meta-setting-desc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/clients/common/nm-meta-setting-desc.c b/clients/common/nm-meta-setting-desc.c
index 4f4758fc49..66c1a4f1be 100644
--- a/clients/common/nm-meta-setting-desc.c
+++ b/clients/common/nm-meta-setting-desc.c
@@ -5263,6 +5263,7 @@ static const NMMetaPropertyInfo *const property_infos_CONNECTION[] = {
),
PROPERTY_INFO_WITH_DESC (NM_SETTING_CONNECTION_MUD_URL,
.property_type = &_pt_gobject_string,
+ .hide_if_default = TRUE,
),
PROPERTY_INFO_WITH_DESC (NM_SETTING_CONNECTION_WAIT_DEVICE_TIMEOUT,
.property_type = &_pt_gobject_int,