summaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2015-09-04 10:45:04 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2015-09-04 10:45:04 +0200
commit04e29df47dfb0aefd691d2c6e6065a56cff75d39 (patch)
tree0458b48826efefbfe2e3e726d340e3558d9ebd77 /clients
parent54019a403a6d345f6dae961fe56ce9907dc0e09a (diff)
downloadNetworkManager-04e29df47dfb0aefd691d2c6e6065a56cff75d39.tar.gz
cli: describe usage of the 'connection.metered' property
Diffstat (limited to 'clients')
-rw-r--r--clients/cli/settings.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/clients/cli/settings.c b/clients/cli/settings.c
index 9460acdabc..1132c862cc 100644
--- a/clients/cli/settings.c
+++ b/clients/cli/settings.c
@@ -2895,6 +2895,16 @@ nmc_property_connection_set_metered (NMSetting *setting, const char *prop,
return TRUE;
}
+static const char *
+nmc_property_connection_describe_metered (NMSetting *setting, const char *prop)
+{
+ return _("Enter a value which indicates whether the connection is subject to a data\n"
+ "quota, usage costs or other limitations. Accepted options are:\n"
+ "'true','yes','on' to set the connection as metered\n"
+ "'false','no','off' to set the connection as not metered\n"
+ "'unknown' to let NetworkManager choose a value using some heuristics\n");
+}
+
/* --- NM_SETTING_802_1X_SETTING_NAME property setter functions --- */
#define DEFINE_SETTER_STR_LIST(def_func, set_func) \
static gboolean \
@@ -5587,7 +5597,7 @@ nmc_properties_init (void)
nmc_property_connection_get_metered,
nmc_property_connection_set_metered,
NULL,
- NULL,
+ nmc_property_connection_describe_metered,
NULL,
NULL);