Can get NW filter source XML definition

This commit is contained in:
2024-01-02 15:52:04 +01:00
parent b4f65a6703
commit 06ddf57b5c
4 changed files with 35 additions and 0 deletions

View File

@ -187,6 +187,13 @@ impl LibVirtClient {
self.0.send(libvirt_actor::GetNWFilterXMLReq(id)).await?
}
/// Get the source XML configuration of a single network filter
pub async fn get_single_network_filter_xml(&self, id: XMLUuid) -> anyhow::Result<String> {
self.0
.send(libvirt_actor::GetSourceNetworkFilterXMLReq(id))
.await?
}
/// Update the information about a single domain
pub async fn update_network_filter(
&self,