NM.SettingEthtool¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class NM.SettingEthtool(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Ethtool Ethernet Settings
New in version 1.14.
- classmethod new()¶
- Returns:
the new empty
NM.SettingEthtoolobject- Return type:
Creates a new
NM.SettingEthtoolobject with default values.New in version 1.14.
- clear_features()¶
Clears all offload features settings
New in version 1.14.
Deprecated since version 1.26: use
NM.Setting.option_clear_by_name() withNM.ethtool_optname_is_feature() predicate instead.
- get_feature(optname)¶
- Parameters:
optname (
str) – option name of the offload feature to get- Returns:
a
NM.Ternaryvalue indicating whether the offload feature is enabled, disabled, or left untouched.- Return type:
Gets and offload feature setting. Returns
NM.Ternary.DEFAULTif the feature is not set.Note that optname must be a valid name for a feature, according to
NM.ethtool_optname_is_feature().New in version 1.14.
Deprecated since version 1.26: use
NM.Setting.option_get_boolean() instead.
- get_optnames()¶
- Returns:
list of set option names or
Noneif no options are set. The option names are still owned by self and may get invalidated when self gets modified.- out_length:
return location for the number of keys returned, or
None
- Return type:
This returns all options names that are set. This includes the feature names like
NM.ETHTOOL_OPTNAME_FEATURE_GRO. SeeNM.ethtool_optname_is_feature() to check whether the option name is valid for offload features.New in version 1.20.
Deprecated since version 1.26: use
NM.Setting.option_get_all_names() instead.
- set_feature(optname, value)¶
- Parameters:
optname (
str) – option name of the offload feature to getvalue (
NM.Ternary) – the new value to set. The special valueNM.Ternary.DEFAULTmeans to clear the offload feature setting.
Sets and offload feature setting.
Note that optname must be a valid name for a feature, according to
NM.ethtool_optname_is_feature().New in version 1.14.
Deprecated since version 1.26: use
NM.Setting.option_set() orNM.Setting.option_set_boolean() instead.