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

@ -62,6 +62,12 @@ pub async fn get_single(client: LibVirtReq, req: web::Path<NetworkFilterID>) ->
Ok(HttpResponse::Ok().json(nwfilter))
}
/// Get the XML source description of a single network filter
pub async fn single_src(client: LibVirtReq, req: web::Path<NetworkFilterID>) -> HttpResult {
let xml = client.get_single_network_filter_xml(req.uid).await?;
Ok(HttpResponse::Ok().content_type("application/xml").body(xml))
}
/// Update the information about a single network filter
pub async fn update(
client: LibVirtReq,