LibvirtGObject.NetworkDHCPLease

g GObject.Object GObject.Object LibvirtGObject.NetworkDHCPLease LibvirtGObject.NetworkDHCPLease GObject.Object->LibvirtGObject.NetworkDHCPLease

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_client_id ()

get_expiry_time ()

get_hostname ()

get_iaid ()

get_iface ()

get_ip ()

get_ip_type ()

get_mac ()

get_prefix ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

handle

int

r/w/co

The lease handle

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class LibvirtGObject.NetworkDHCPLease(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

LibvirtGObject.NetworkDHCPLeaseClass

get_client_id()
Returns:

The client ID or DUID.

Return type:

str

get_expiry_time()
Returns:

The expiry time of this lease, as seconds since epoch.

Return type:

int

get_hostname()
Returns:

The hostname.

Return type:

str

get_iaid()
Returns:

The IAID.

Return type:

str

get_iface()
Returns:

The network interface name.

Return type:

str

get_ip()
Returns:

The IP address.

Return type:

str

get_ip_type()
Returns:

The type of IP, see LibvirtGObject.IPAddrType for possible values.

Return type:

int

get_mac()
Returns:

The MAC address.

Return type:

str

get_prefix()
Returns:

The number of network address bits in the IP address.

Return type:

int

Property Details

LibvirtGObject.NetworkDHCPLease.props.handle
Name:

handle

Type:

int

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The lease handle