WIP REST routes to create / update Network filters
This commit is contained in:
@ -6,6 +6,7 @@ use crate::libvirt_lib_structures::nwfilter::NetworkFilterXML;
|
||||
use crate::libvirt_lib_structures::XMLUuid;
|
||||
use crate::libvirt_rest_structures::hypervisor::HypervisorInfo;
|
||||
use crate::libvirt_rest_structures::net::NetworkInfo;
|
||||
use crate::libvirt_rest_structures::nw_filter::NetworkFilter;
|
||||
use crate::libvirt_rest_structures::vm::VMInfo;
|
||||
use actix::Addr;
|
||||
|
||||
@ -185,4 +186,14 @@ impl LibVirtClient {
|
||||
pub async fn get_single_network_filter(&self, id: XMLUuid) -> anyhow::Result<NetworkFilterXML> {
|
||||
self.0.send(libvirt_actor::GetNWFilterXMLReq(id)).await?
|
||||
}
|
||||
|
||||
/// Update the information about a single domain
|
||||
pub async fn update_network_filter(
|
||||
&self,
|
||||
_vm_def: NetworkFilter,
|
||||
xml: NetworkFilterXML,
|
||||
) -> anyhow::Result<XMLUuid> {
|
||||
println!("nwfilter xml to update: {:#?}", xml);
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user