Can update and delete networks

This commit is contained in:
2023-10-31 12:03:37 +01:00
parent 2025416607
commit 9a99e0b54e
4 changed files with 48 additions and 0 deletions

View File

@ -111,4 +111,9 @@ impl LibVirtClient {
pub async fn get_single_network(&self, id: XMLUuid) -> anyhow::Result<NetworkXML> {
self.0.send(libvirt_actor::GetNetworkXMLReq(id)).await?
}
/// Delete a network
pub async fn delete_network(&self, id: XMLUuid) -> anyhow::Result<()> {
self.0.send(libvirt_actor::DeleteNetwork(id)).await?
}
}