Can delete network filter
This commit is contained in:
@ -91,3 +91,10 @@ pub async fn update(
|
||||
|
||||
Ok(HttpResponse::Ok().json("Network filter updated"))
|
||||
}
|
||||
|
||||
/// Delete a network filter
|
||||
pub async fn delete(client: LibVirtReq, path: web::Path<NetworkFilterID>) -> HttpResult {
|
||||
client.delete_network_filter(path.uid).await?;
|
||||
|
||||
Ok(HttpResponse::Ok().json("Network deleted"))
|
||||
}
|
||||
|
Reference in New Issue
Block a user