Can delete network filter

This commit is contained in:
2024-01-02 15:45:31 +01:00
parent d741e12653
commit b4f65a6703
4 changed files with 41 additions and 1 deletions

View File

@ -197,4 +197,9 @@ impl LibVirtClient {
.send(libvirt_actor::DefineNWFilterReq(nwf_def, xml))
.await?
}
/// Delete a network filter
pub async fn delete_network_filter(&self, id: XMLUuid) -> anyhow::Result<()> {
self.0.send(libvirt_actor::DeleteNetworkFilter(id)).await?
}
}