Sys::V...erface(3pm)
β¨ Sys::Virt::Interface(3pm) β¨
okay so bestie, this is a page from the User Contributed Perl Documentation (iykyk) and it's the whole entire vibe for Sys::Virt::Interface, a Perl module. buckle up π
π NAME
Sys::Virt::Interface β literally the module that lets you represent & manage a libvirt host network interface π¦
πΈ DESCRIPTION
The Sys::Virt::Interface module represents a host network interface, and it's giving full glow-up energy: it lets you configure IP addresses, bonding, vlans and bridges. no cap, it does all of that π
π METHODS
here's the group chat of methods, bestie, every single one:
my $name = $iface->get_name()β returns a string with a locally unique name of the network. it's the interface's government name, fr fr πͺͺ$iface->is_active()β returns a true value if the interface is currently running. vibe check: is it up? β¨my $name = $iface->get_mac()β returns a string with the hardware MAC address of the interface. that's the hardware's literal fingerprint π«Άmy $xml = $iface->get_xml_description()β returns an XML document containing a complete description of the network's configuration. the whole lore, in XML form π$iface->create()β start a network whose configuration was previously defined using the"define_network"method in Sys::Virt. time to make it real π₯$iface->undefine()β remove the configuration associated with a network previously defined with the"define_network"method in Sys::Virt. if the network is running, you probably want to use the"shutdown"or"destroy"methods instead. hope this helps π$iface->destroy()β immediately terminate the machine, and remove it from the virtual machine monitor. the$ifacehandle is invalid after this call completes and should not be used again. like, it's dead-dead, do not touch it π
β οΈ real talk: afterdestroy()the$ifacehandle is invalid β do NOT reuse it. that's not me being dramatic, that's the manpage.
π CONSTANTS
this section documents constants that are used with various APIs described above. little fact drops, keep them in your notes π
β LIST FILTERING
The following constants are used to filter object lists:
Sys::Virt::Interface::LIST_ACTIVEβ include interfaces that are active β¨Sys::Virt::Interface::LIST_INACTIVEβ include interfaces that are not active π΄
π§ INTERFACE DEFINE
The following constants can be used to control the behaviour of interface define operations:
Sys::Virt::Interface::DEFINE_VALIDATEβ validate the XML document against the XML schema. obsessed with a schema check before committing π
π¦ XML CONSTANTS
The following constants are used when querying XML:
Sys::Virt::Interface::XML_INACTIVEβ request the inactive XML, instead of the current possibly live config. the "before" pic instead of the "now" pic πΌοΈ
π AUTHORS
Daniel P. Berrange <berrange@redhat.com> β the main character, we stan π
πΈ COPYRIGHT
Copyright (C) 2006-2009 Red Hat Copyright (C) 2006-2007 Daniel P. Berrange
π LICENSE
This program is free software; you can redistribute it and/or modify it under the terms of either of these two icons:
- the GNU General Public License as published by the Free Software Foundation (either version 2 of the License, or at your option any later version), or
- the Artistic License, as specified in the Perl README file.
pick your fighter, both slay π
π SEE ALSO
Sys::VirtSys::Virt::Error"http://libvirt.org"
and that's the whole page, bestie π«Ά this one's from perl v5.40.2, dated 2026-06-08 β no cap, it's giving iconic manual-page energy, periodt πβ¨
π¦ where this page comes from
- epel 10: perl-Sys-Virt 12.4.0-1.el10_3 Β· GPL-2.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms