NM.SettingSriov¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class NM.SettingSriov(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
SR-IOV settings
New in version 1.14.
- classmethod new()¶
- Returns:
the new empty
NM.SettingSriovobject- Return type:
Creates a new
NM.SettingSriovobject with default values.New in version 1.14.
- add_vf(vf)¶
- Parameters:
vf (
NM.SriovVF) – the VF to add
Appends a new VF and associated information to the setting. The given VF is duplicated internally and is not changed by this function.
New in version 1.14.
- clear_vfs()¶
Removes all configured VFs.
New in version 1.14.
- get_autoprobe_drivers()¶
- Returns:
the autoprobe-drivers property value
- Return type:
Returns the value contained in the
NM.SettingSriov:autoprobe-driversproperty.New in version 1.14.
- get_eswitch_encap_mode()¶
- Returns:
the value contained in the
NM.SettingSriov:eswitch-encap-modeproperty.- Return type:
New in version 1.46.
- get_eswitch_inline_mode()¶
- Returns:
the value contained in the
NM.SettingSriov:eswitch-inline-modeproperty.- Return type:
New in version 1.46.
- get_eswitch_mode()¶
- Returns:
the value contained in the
NM.SettingSriov:eswitch-modeproperty.- Return type:
New in version 1.46.
- get_preserve_on_down()¶
- Returns:
the value contained in the
NM.SettingSriov:preserve-on-downproperty.- Return type:
New in version 1.54.
- get_total_vfs()¶
- Returns:
the total number of SR-IOV virtual functions to create
- Return type:
Returns the value contained in the
NM.SettingSriov:total-vfsproperty.New in version 1.14.
- get_vf(idx)¶
- Parameters:
idx (
int) – index number of the VF to return- Returns:
the VF at index idx
- Return type:
New in version 1.14.
Property Details¶
- NM.SettingSriov.props.autoprobe_drivers¶
- Name:
autoprobe-drivers- Type:
- Default Value:
- Flags:
Whether to autoprobe virtual functions by a compatible driver.
If set to
NM.Ternary.TRUE, the kernel will try to bind VFs to a compatible driver and if this succeeds a new network interface will be instantiated for each VF.If set to
NM.Ternary.FALSE, VFs will not be claimed and no network interfaces will be created for them.When set to
NM.Ternary.DEFAULT, the global default is used; in case the global default is unspecified it is assumed to beNM.Ternary.TRUE.New in version 1.14.
- NM.SettingSriov.props.eswitch_encap_mode¶
- Name:
eswitch-encap-mode- Type:
- Default Value:
-1- Flags:
Select the eswitch encapsulation support.
Currently it’s only supported for PCI PF devices, and only if the eswitch device is managed from the same PCI address than the PF.
If set to
NM.SriovEswitchEncapMode.PRESERVE(default) the eswitch encap-mode won’t be modified by NetworkManager.New in version 1.46.
- NM.SettingSriov.props.eswitch_inline_mode¶
- Name:
eswitch-inline-mode- Type:
- Default Value:
-1- Flags:
Select the eswitch inline-mode of the device. Some HWs need the VF driver to put part of the packet headers on the TX descriptor so the e-switch can do proper matching and steering.
Currently it’s only supported for PCI PF devices, and only if the eswitch device is managed from the same PCI address than the PF.
If set to
NM.SriovEswitchInlineMode.PRESERVE(default) the eswitch inline-mode won’t be modified by NetworkManager.New in version 1.46.
- NM.SettingSriov.props.eswitch_mode¶
- Name:
eswitch-mode- Type:
- Default Value:
-1- Flags:
Select the eswitch mode of the device. Currently it’s only supported for PCI PF devices, and only if the eswitch device is managed from the same PCI address than the PF.
If set to
NM.SriovEswitchMode.PRESERVE(default) the eswitch mode won’t be modified by NetworkManager.New in version 1.46.
- NM.SettingSriov.props.preserve_on_down¶
- Name:
preserve-on-down- Type:
- Default Value:
-1- Flags:
This controls whether NetworkManager preserves the SR-IOV parameters set on the device when the connection is deactivated, or whether it resets them to their default value. The SR-IOV parameters are those specified in this setting (the “sriov” setting), like the number of VFs to create, the eswitch configuration, etc.
If set to
NM.SriovPreserveOnDown.NO, NetworkManager resets the SR-IOV parameters when the connection is deactivated. When set toNM.SriovPreserveOnDown.YES, NetworkManager preserves those parameters on the device. If the value isNM.SriovPreserveOnDown.DEFAULT, NetworkManager looks up a global default value in the configuration; in case no such value is defined, it usesNM.SriovPreserveOnDown.NOas fallback.New in version 1.54.
- NM.SettingSriov.props.total_vfs¶
- Name:
total-vfs- Type:
- Default Value:
0- Flags:
The total number of virtual functions to create.
Note that when the sriov setting is present NetworkManager enforces the number of virtual functions on the interface (also when it is zero) during activation and resets it upon deactivation. To prevent any changes to SR-IOV parameters don’t add a sriov setting to the connection.
New in version 1.14.
- NM.SettingSriov.props.vfs¶
- Name:
vfs- Type:
- Default Value:
- Flags:
Array of virtual function descriptors.
Each VF descriptor is a dictionary mapping attribute names to
GLib.Variantvalues. The ‘index’ entry is mandatory for each VF.When represented as string a VF is in the form:
“INDEX [ATTR=VALUE[ ATTR=VALUE]…]”.
for example:
“2 mac=00:11:22:33:44:55 spoof-check=true”.
Multiple VFs can be specified using a comma as separator. Currently, the following attributes are supported: mac, spoof-check, trust, min-tx-rate, max-tx-rate, vlans.
The “vlans” attribute is represented as a semicolon-separated list of VLAN descriptors, where each descriptor has the form
“ID[.PRIORITY[.PROTO]]”.
PROTO can be either ‘q’ for 802.1Q (the default) or ‘ad’ for 802.1ad.
New in version 1.14.