LibvirtGObject.Network¶
- Subclasses:
- None 
Methods¶
- Inherited:
- Structs:
| 
 | |
| 
 | |
| 
 | |
| 
 | 
Virtual Methods¶
- Inherited:
| 
 | |
| 
 | 
Properties¶
| Name | Type | Flags | Short Description | 
|---|---|---|---|
| r/w/co | The network handle | 
Signals¶
- Inherited:
Fields¶
- Inherited:
| Name | Type | Access | Description | 
|---|---|---|---|
| parent | r | 
Class Details¶
- class LibvirtGObject.Network(**kwargs)¶
- Bases:
- Abstract:
- No 
- Structure:
 - get_config(flags)¶
- Parameters:
- flags ( - int) – the flags
- Raises:
- Returns:
- the config. The returned object should be unreffed with - GObject.Object.unref() when no longer needed.
- Return type:
 
 - get_dhcp_leases(mac, flags)¶
- Parameters:
- Raises:
- Returns:
- the list of network leases. Each object in the returned list should be unreffed with - GObject.Object.unref() and the list itself using g_list_free, when no longer needed.
- Return type:
 - This function fetches leases info of guests in the specified network. If the optional parameter mac is specified, the returned list will contain only lease info about a specific guest interface with mac. There can be multiple leases for a single mac because this API supports DHCPv6 too. 
 - do_started() virtual¶
 - do_stopped() virtual¶
 
Property Details¶
- LibvirtGObject.Network.props.handle¶
- Name:
- handle
- Type:
- Default Value:
- Flags:
 - The network handle