NM.DeviceEthernet

g GObject.Object GObject.Object NM.Object NM.Object GObject.Object->NM.Object NM.Device NM.Device NM.DeviceEthernet NM.DeviceEthernet NM.Device->NM.DeviceEthernet NM.Object->NM.Device

Subclasses:

NM.DeviceVeth

Methods

Inherited:

NM.Device (54), NM.Object (2), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_carrier ()

get_permanent_hw_address ()

get_s390_subchannels ()

get_speed ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

NM.Device (32), NM.Object (2)

Name

Type

Flags

Short Description

carrier

bool

r

perm-hw-address

str

r

s390-subchannels

[str]

r

speed

int

r

Signals

Inherited:

NM.Device (1), GObject.Object (1)

Fields

Inherited:

NM.Device (1), GObject.Object (1)

Class Details

class NM.DeviceEthernet(**kwargs)
Bases:

NM.Device

Abstract:

No

Structure:

NM.DeviceEthernetClass

get_carrier()
Returns:

True if the device has carrier

Return type:

bool

Whether the device has carrier.

get_permanent_hw_address()
Returns:

the permanent hardware address. This is the internal string used by the device, and must not be modified.

Return type:

str

Gets the permanent hardware (MAC) address of the NM.DeviceEthernet

get_s390_subchannels()
Returns:

array of strings, each specifying one subchannel the s390 device uses to communicate to the host.

Return type:

[str]

Return the list of s390 subchannels if the device supports them.

New in version 1.2.

get_speed()
Returns:

the speed of the device in Mbit/s

Return type:

int

Gets the speed of the NM.DeviceEthernet in Mbit/s.

Property Details

NM.DeviceEthernet.props.carrier
Name:

carrier

Type:

bool

Default Value:

False

Flags:

READABLE

Whether the device has carrier.

NM.DeviceEthernet.props.perm_hw_address
Name:

perm-hw-address

Type:

str

Default Value:

None

Flags:

READABLE

The permanent hardware (MAC) address of the device.

NM.DeviceEthernet.props.s390_subchannels
Name:

s390-subchannels

Type:

[str]

Default Value:

[]

Flags:

READABLE

Identifies subchannels of this network device used for communication with z/VM or s390 host.

New in version 1.2.

NM.DeviceEthernet.props.speed
Name:

speed

Type:

int

Default Value:

0

Flags:

READABLE

The speed of the device.