Sys::Virt::NetworkPort3pm
Represent & manage a libvirt virtual network port
Overview
The "Sys::Virt::NetworkPort" module represents a port in a virtual network.
Methods
- my $uuid = $port->
get_uuid() -
Returns a 16 byte long string containing the raw globally unique identifier (UUID) for the network port.
- my $uuid = $port->
get_uuid_string() -
Returns a printable string representation of the raw UUID, in the format 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'.
- my $xml = $port->
get_xml_description() -
Returns an XML document containing a complete description of the network port's configuration
- $port->
delete() -
Delete the network port from the managed network.
- my $params = $port->get_parameters($flags=0);
-
Get tunable parameters associated with the network port. The
$flagsparameter is currently unused and defaults to zero. The returned$paramsis a hash reference whose keys are one or more of the following constants:- Sys::Virt::NetworkPort::BANDWIDTH_IN_AVERAGE
-
The average inbound bandwidth
- Sys::Virt::NetworkPort::BANDWIDTH_IN_BURST
-
The burstable inbound bandwidth
- Sys::Virt::NetworkPort::BANDWIDTH_IN_FLOOR
-
The minimum inbound bandwidth
- Sys::Virt::NetworkPort::BANDWIDTH_IN_PEAK
-
The peak inbound bandwidth
- Sys::Virt::NetworkPort::BANDWIDTH_OUT_AVERAGE
-
The average outbound bandwidth
- Sys::Virt::NetworkPort::BANDWIDTH_OUT_BURST
-
The burstable outbound bandwidth
- Sys::Virt::NetworkPort::BANDWIDTH_OUT_PEAK
-
The peak outbound bandwidth
- $port->set_parameters($params, $flags=0);
-
Set tunable parameters associated with the network port. The
$flagsparameter is currently unused and defaults to zero. The$paramsparameter is a hash reference whose keys are one or more of the constants listed for"get_parameters".
Network port creation constants
When creating network ports zero or more of the following constants may be used
Sys::Virt::NetworkPort::CREATE_RECLAIM
|
Providing configuration reclaiming a pre-existing network port. |
|---|---|
Sys::Virt::NetworkPort::CREATE_VALIDATE
|
Validate the XML document against the XML schema |
Releases
4 releases since Debian 11 (Bullseye); the text changed 3 times.