NM.SettingTCConfig¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
|||
r/w |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class NM.SettingTCConfig(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Linux Traffic Control Settings
Added in version 1.12.
- classmethod new()¶
- Returns:
the new empty
NM.SettingTCConfigobject- Return type:
Creates a new
NM.SettingTCConfigobject with default values.Added in version 1.12.
- add_qdisc(qdisc)¶
- Parameters:
qdisc (
NM.TCQdisc) – the qdisc to add- Returns:
Trueif the qdisc was added;Falseif the qdisc was already known.- Return type:
Appends a new qdisc and associated information to the setting. The given qdisc is duplicated internally and is not changed by this function. If an identical qdisc (considering attributes as well) already exists, the qdisc is not added and the function returns
False.Added in version 1.12.
- add_tfilter(tfilter)¶
- Parameters:
tfilter (
NM.TCTfilter) – the tfilter to add- Returns:
Trueif the tfilter was added;Falseif the tfilter was already known.- Return type:
Appends a new tfilter and associated information to the setting. The given tfilter is duplicated internally and is not changed by this function. If an identical tfilter (considering attributes as well) already exists, the tfilter is not added and the function returns
False.Added in version 1.12.
- clear_qdiscs()¶
Removes all configured queueing disciplines.
Added in version 1.12.
- clear_tfilters()¶
Removes all configured queueing disciplines.
Added in version 1.12.
- get_num_qdiscs()¶
- Returns:
the number of configured queueing disciplines
- Return type:
Added in version 1.12.
- get_num_tfilters()¶
- Returns:
the number of configured queueing disciplines
- Return type:
Added in version 1.12.
- get_qdisc(idx)¶
- Parameters:
idx (
int) – index number of the qdisc to return- Returns:
the qdisc at index idx
- Return type:
Added in version 1.12.
- get_tfilter(idx)¶
- Parameters:
idx (
int) – index number of the tfilter to return- Returns:
the tfilter at index idx
- Return type:
Added in version 1.12.
- remove_qdisc(idx)¶
- Parameters:
idx (
int) – index number of the qdisc
Removes the qdisc at index idx.
Added in version 1.12.
- remove_qdisc_by_value(qdisc)¶
- Parameters:
qdisc (
NM.TCQdisc) – the qdisc to remove- Returns:
Trueif the qdisc was found and removed;Falseif it was not.- Return type:
Removes the first matching qdisc that matches qdisc.
Added in version 1.12.
- remove_tfilter(idx)¶
- Parameters:
idx (
int) – index number of the tfilter
Removes the tfilter at index idx.
Added in version 1.12.
- remove_tfilter_by_value(tfilter)¶
- Parameters:
tfilter (
NM.TCTfilter) – the tfilter to remove- Returns:
Trueif the tfilter was found and removed;Falseif it was not.- Return type:
Removes the first matching tfilter that matches tfilter.
Added in version 1.12.
Property Details¶
- NM.SettingTCConfig.props.qdiscs¶
- Name:
qdiscs- Type:
- Default Value:
- Flags:
Array of TC queueing disciplines.
When the
NM.SettingTCConfigsetting is present, qdiscs from this property are applied upon activation. If the property is empty, all qdiscs are removed and the device will only have the default qdisc assigned by kernel according to the “net.core.default_qdisc” sysctl.If the
NM.SettingTCConfigsetting is not present, NetworkManager doesn’t touch the qdiscs present on the interface.
- NM.SettingTCConfig.props.tfilters¶
- Name:
tfilters- Type:
- Default Value:
- Flags:
Array of TC traffic filters.
When the
NM.SettingTCConfigsetting is present, filters from this property are applied upon activation. If the property is empty, NetworkManager removes all the filters.If the
NM.SettingTCConfigsetting is not present, NetworkManager doesn’t touch the filters present on the interface.