Can get XML network definition

This commit is contained in:
2023-12-11 18:41:59 +01:00
parent 2d5dc9237e
commit 375bdb1a46
11 changed files with 135 additions and 18 deletions

View File

@ -119,6 +119,13 @@ impl LibVirtClient {
self.0.send(libvirt_actor::GetNetworkXMLReq(id)).await?
}
/// Get the source XML configuration of a single network
pub async fn get_single_network_xml(&self, id: XMLUuid) -> anyhow::Result<String> {
self.0
.send(libvirt_actor::GetSourceNetworkXMLReq(id))
.await?
}
/// Delete a network
pub async fn delete_network(&self, id: XMLUuid) -> anyhow::Result<()> {
self.0.send(libvirt_actor::DeleteNetwork(id)).await?