1Sys::Virt::NetworkPort(U3s)er Contributed Perl DocumentatSiyosn::Virt::NetworkPort(3)
2
3
4

NAME

6       Sys::Virt::NetworkPort - Represent & manage a libvirt virtual network
7       port
8

DESCRIPTION

10       The "Sys::Virt::NetworkPort" module represents a port in a virtual
11       network.
12

METHODS

14       my $uuid = $port->get_uuid()
15           Returns a 16 byte long string containing the raw globally unique
16           identifier (UUID) for the network port.
17
18       my $uuid = $port->get_uuid_string()
19           Returns a printable string representation of the raw UUID, in the
20           format 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'.
21
22       my $xml = $port->get_xml_description()
23           Returns an XML document containing a complete description of the
24           network port's configuration
25
26       $port->delete()
27           Delete the network port from the managed network.
28
29       my $params = $port->get_parameters($flags=0);
30           Get tunable parameters associated with the network port. The $flags
31           parameter is currently unused and defaults to zero. The returned
32           $params is a hash reference whose keys are one or more of the
33           following constants:
34
35           Sys::Virt::NetworkPort::BANDWIDTH_IN_AVERAGE
36               The average inbound bandwidth
37
38           Sys::Virt::NetworkPort::BANDWIDTH_IN_BURST
39               The burstable inbound bandwidth
40
41           Sys::Virt::NetworkPort::BANDWIDTH_IN_FLOOR
42               The minimum inbound bandwidth
43
44           Sys::Virt::NetworkPort::BANDWIDTH_IN_PEAK
45               The peak inbound bandwidth
46
47           Sys::Virt::NetworkPort::BANDWIDTH_OUT_AVERAGE
48               The average outbound bandwidth
49
50           Sys::Virt::NetworkPort::BANDWIDTH_OUT_BURST
51               The burstable outbound bandwidth
52
53           Sys::Virt::NetworkPort::BANDWIDTH_OUT_PEAK
54               The peak outbound bandwidth
55
56       $port->set_parameters($params, $flags=0);
57           Set tunable parameters associated with the network port. The $flags
58           parameter is currently unused and defaults to zero. The $params
59           parameter is a hash reference whose keys are one or more of the
60           constants listed for "get_parameters".
61
62   NETWORK PORT CREATION CONSTANTS
63       When creating network ports zero or more of the following constants may
64       be used
65
66       Sys::Virt::NetworkPort::CREATE_RECLAIM
67           Providing configuration reclaiming a pre-existing network port.
68
69       Sys::Virt::NetworkPort::CREATE_VALIDATE
70           Validate the XML document against the XML schema
71

AUTHORS

73       Daniel P. Berrange <berrange@redhat.com>
74
76       Copyright (C) 2019 Red Hat
77

LICENSE

79       This program is free software; you can redistribute it and/or modify it
80       under the terms of either the GNU General Public License as published
81       by the Free Software Foundation (either version 2 of the License, or at
82       your option any later version), or, the Artistic License, as specified
83       in the Perl README file.
84

SEE ALSO

86       Sys::Virt, Sys::Virt::Network, Sys::Virt::Error, "http://libvirt.org"
87
88
89
90perl v5.36.0                      2023-01-30         Sys::Virt::NetworkPort(3)
Impressum