Seems like the official libvirt-php isn't being maintenanced by anyone, contributions sent to libvirt-list was ignored, so this repository appeared.
resource libvirt_domain_snapshot_create_xml(resource $domain, string $xml, int $flags = 0)
bool libvirt_domain_undefine_flags(resource $domain, int $flags = 0)
bool libvirt_domain_reset(resource $domain, int $flags = 0)
int libvirt_get_last_error_code()
int libvirt_get_last_error_domain()
array libvirt_network_get_dhcp_leases(string $mac = null, int $flags = 0)
array libvirt_domain_get_cpu_total_stats()
enum virDomainUndefineFlagsValues {
VIR_DOMAIN_UNDEFINE_MANAGED_SAVE = 1 (0x1; 1 << 0)
Also remove any managed save
VIR_DOMAIN_UNDEFINE_SNAPSHOTS_METADATA = 2 (0x2; 1 << 1)
If last use of domain, then also remove any snapshot metadata
VIR_DOMAIN_UNDEFINE_NVRAM = 4 (0x4; 1 << 2)
Also remove any nvram file
VIR_DOMAIN_UNDEFINE_KEEP_NVRAM = 8 (0x8; 1 << 3)
Keep nvram file Future undefine control flags should come here.
}
enum virStorageVolDeleteFlags {
VIR_STORAGE_VOL_DELETE_NORMAL = 0 (0x0)
Delete metadata only (fast)
VIR_STORAGE_VOL_DELETE_ZEROED = 1 (0x1; 1 << 0)
Clear all data to zeros (slow)
VIR_STORAGE_VOL_DELETE_WITH_SNAPSHOTS = 2 (0x2; 1 << 1)
Force removal of volume, even if in use
}
Bugfix libvirt-php required for KnightSwarm/Squire
Fixes:
-
Fix libvirt_domain_update_device not being properly defined. 8bb78b3cfb
-
Fix libvirt_storagepool_get_xml_desc requiring OPTIONAL second parameter for xPath. f89fb516ad