NAME

Sys::Async::Virt::Network - Client side proxy to remote LibVirt network

VERSION

v0.0.13

SYNOPSIS

DESCRIPTION

EVENTS

CONSTRUCTOR

new

METHODS

create

await $net->create;
# -> (* no data *)

See documentation of virNetworkCreate.

destroy

await $net->destroy;
# -> (* no data *)

See documentation of virNetworkDestroy.

get_autostart

$autostart = await $net->get_autostart;

See documentation of virNetworkGetAutostart.

get_bridge_name

$name = await $net->get_bridge_name;

See documentation of virNetworkGetBridgeName.

get_dhcp_leases

$leases = await $net->get_dhcp_leases( $mac, $flags = 0 );

See documentation of virNetworkGetDHCPLeases.

get_metadata

$metadata = await $net->get_metadata( $type, $uri, $flags = 0 );

See documentation of virNetworkGetMetadata.

get_xml_desc

$xml = await $net->get_xml_desc( $flags = 0 );

See documentation of virNetworkGetXMLDesc.

is_active

$active = await $net->is_active;

See documentation of virNetworkIsActive.

is_persistent

$persistent = await $net->is_persistent;

See documentation of virNetworkIsPersistent.

list_all_ports

$ports = await $net->list_all_ports( $flags = 0 );

See documentation of virNetworkListAllPorts.

port_create_xml

$port = await $net->port_create_xml( $xml, $flags = 0 );

See documentation of virNetworkPortCreateXML.

port_lookup_by_uuid

$port = await $net->port_lookup_by_uuid( $uuid );

See documentation of virNetworkPortLookupByUUID.

set_autostart

await $net->set_autostart( $autostart );
# -> (* no data *)

See documentation of virNetworkSetAutostart.

set_metadata

await $net->set_metadata( $type, $metadata, $key, $uri, $flags = 0 );
# -> (* no data *)

See documentation of virNetworkSetMetadata.

undefine

await $net->undefine;
# -> (* no data *)

See documentation of virNetworkUndefine.

update

await $net->update( $command, $section, $parentIndex, $xml, $flags = 0 );
# -> (* no data *)

See documentation of virNetworkUpdate.

INTERNAL METHODS

CONSTANTS

XML_INACTIVE
UPDATE_COMMAND_NONE
UPDATE_COMMAND_MODIFY
UPDATE_COMMAND_DELETE
UPDATE_COMMAND_ADD_LAST
UPDATE_COMMAND_ADD_FIRST
SECTION_NONE
SECTION_BRIDGE
SECTION_DOMAIN
SECTION_IP
SECTION_IP_DHCP_HOST
SECTION_IP_DHCP_RANGE
SECTION_FORWARD
SECTION_FORWARD_INTERFACE
SECTION_FORWARD_PF
SECTION_PORTGROUP
SECTION_DNS_HOST
SECTION_DNS_TXT
SECTION_DNS_SRV
UPDATE_AFFECT_CURRENT
UPDATE_AFFECT_LIVE
UPDATE_AFFECT_CONFIG
EVENT_DEFINED
EVENT_UNDEFINED
EVENT_STARTED
EVENT_STOPPED
PORT_CREATE_RECLAIM
PORT_CREATE_VALIDATE
METADATA_DESCRIPTION
METADATA_TITLE
METADATA_ELEMENT

SEE ALSO

LibVirt, Sys::Virt

LICENSE AND COPYRIGHT

Copyright (C) 2024 Erik Huelsmann

All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.