Can get NW filter source XML definition
This commit is contained in:
virtweb_backend/src
@ -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,
|
||||
|
Reference in New Issue
Block a user