man nm-settings-nmcli: add "Valid values" field
Show a new field called "Valid values" in those properties that only accept a limited set of values, like enums, ints with a valid range of values, etc. As there is some complex logic behind getting this information, this logic has been put in nm-meta-setting-desc and nm-enum-utils so they can be re-used, avoiding duplicity and errors. Some refactor has been done in nm-meta-setting-desc in this direction, too.
This commit is contained in:
@@ -296,6 +296,7 @@ for setting_name in iter_keys_of_dicts(settings_roots, key_fcn_setting_name):
|
||||
else:
|
||||
node_set_attr(property_node, "type", properties_attrs)
|
||||
|
||||
node_set_attr(property_node, "values", properties_attrs)
|
||||
node_set_attr(property_node, "default", properties_attrs)
|
||||
node_set_attr(property_node, "alias", properties_attrs)
|
||||
|
||||
|
Reference in New Issue
Block a user