1Sys::Virt::Interface(3)User Contributed Perl DocumentatioSnys::Virt::Interface(3)
2
3
4

NAME

6       Sys::Virt::Interface - Represent & manage a libvirt host network
7       interface
8

DESCRIPTION

10       The "Sys::Virt::Interface" module represents a host network interface
11       allowing configuration of IP addresses, bonding, vlans and bridges.
12

METHODS

14       my $name = $iface->get_name()
15           Returns a string with a locally unique name of the network
16
17       $iface->is_active()
18           Returns a true value if the interface is currently running
19
20       my $name = $iface->get_mac()
21           Returns a string with the hardware MAC address of the interface
22
23       my $xml = $iface->get_xml_description()
24           Returns an XML document containing a complete description of the
25           network's configuration
26
27       $iface->create()
28           Start a network whose configuration was previously defined using
29           the "define_network" method in Sys::Virt.
30
31       $iface->undefine()
32           Remove the configuration associated with a network previously
33           defined with the "define_network" method in Sys::Virt. If the
34           network is running, you probably want to use the "shutdown" or
35           "destroy" methods instead.
36
37       $iface->destroy()
38           Immediately terminate the machine, and remove it from the virtual
39           machine monitor. The $iface handle is invalid after this call
40           completes and should not be used again.
41

CONSTANTS

CONSTANTS

44       This section documents constants that are used with various APIs
45       described above
46
47   LIST FILTERING
48       The following constants are used to filter object lists
49
50       Sys::Virt::Interface::LIST_ACTIVE
51           Include interfaces that are active
52
53       Sys::Virt::Interface::LIST_INACTIVE
54           Include interfaces that are not active
55
56   XML CONSTANTS
57       The following constants are used when querying XML
58
59       Sys::Virt::Interface::XML_INACTIVE
60           Request the inactive XML, instead of the current possibly live
61           config.
62

AUTHORS

64       Daniel P. Berrange <berrange@redhat.com>
65
67       Copyright (C) 2006-2009 Red Hat Copyright (C) 2006-2007 Daniel P.
68       Berrange
69

LICENSE

71       This program is free software; you can redistribute it and/or modify it
72       under the terms of either the GNU General Public License as published
73       by the Free Software Foundation (either version 2 of the License, or at
74       your option any later version), or, the Artistic License, as specified
75       in the Perl README file.
76

SEE ALSO

78       Sys::Virt, Sys::Virt::Error, "http://libvirt.org"
79
80
81
82perl v5.30.1                      2020-03-10           Sys::Virt::Interface(3)
Impressum