Can get XML network definition
This commit is contained in:
@ -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?
|
||||
|
Reference in New Issue
Block a user