NM.SettingOvsPort¶
- 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 |
|||
r/w/en |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class NM.SettingOvsPort(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
OvsPort Link Settings
- classmethod new()¶
- Returns:
the new empty
NM.SettingOvsPort
object- Return type:
Creates a new
NM.SettingOvsPort
object with default values.New in version 1.10.
- add_trunk(trunk)¶
- Parameters:
trunk (
NM.Range
) – the trunk to add
Appends a new trunk range to the setting. This takes a reference to trunk.
New in version 1.42.
- clear_trunks()¶
Removes all configured trunk ranges.
New in version 1.42.
- get_bond_downdelay()¶
- Returns:
the
NM.SettingOvsPort
:bond-downdelay
property of the setting- Return type:
New in version 1.10.
- get_bond_mode()¶
- Returns:
the
NM.SettingOvsPort
:bond-mode
property of the setting- Return type:
New in version 1.10.
- get_bond_updelay()¶
- Returns:
the
NM.SettingOvsPort
:bond-updelay
property of the setting- Return type:
New in version 1.10.
- get_lacp()¶
- Returns:
the
NM.SettingOvsPort
:lacp
property of the setting- Return type:
New in version 1.10.
- get_tag()¶
- Returns:
the
NM.SettingOvsPort
:tag
property of the setting- Return type:
New in version 1.10.
- get_trunk(idx)¶
- Parameters:
idx (
int
) – index number of the trunk range to return- Returns:
the trunk range at index idx
- Return type:
New in version 1.42.
- get_vlan_mode()¶
- Returns:
the
NM.SettingOvsPort
:vlan-mode
property of the setting- Return type:
New in version 1.10.
Property Details¶
- NM.SettingOvsPort.props.bond_downdelay¶
- Name:
bond-downdelay
- Type:
- Default Value:
0
- Flags:
The time port must be inactive in order to be considered down.
New in version 1.10.
- NM.SettingOvsPort.props.bond_mode¶
- Name:
bond-mode
- Type:
- Default Value:
- Flags:
Bonding mode. One of “active-backup”, “balance-slb”, or “balance-tcp”.
New in version 1.10.
- NM.SettingOvsPort.props.bond_updelay¶
- Name:
bond-updelay
- Type:
- Default Value:
0
- Flags:
The time port must be active before it starts forwarding traffic.
New in version 1.10.
- NM.SettingOvsPort.props.lacp¶
- Name:
lacp
- Type:
- Default Value:
- Flags:
LACP mode. One of “active”, “off”, or “passive”.
New in version 1.10.
- NM.SettingOvsPort.props.tag¶
- Name:
tag
- Type:
- Default Value:
0
- Flags:
The VLAN tag in the range 0-4095.
New in version 1.10.
- NM.SettingOvsPort.props.trunks¶
- Name:
trunks
- Type:
- Default Value:
- Flags:
A list of VLAN ranges that this port trunks.
The property is valid only for ports with mode “trunk”, “native-tagged”, or “native-untagged port”. If it is empty, the port trunks all VLANs.
New in version 1.42.