Can view from web UI XML definition of domains
This commit is contained in:
virtweb_backend/src
virtweb_frontend
@ -28,6 +28,13 @@ impl LibVirtClient {
|
||||
self.0.send(libvirt_actor::GetDomainXMLReq(id)).await?
|
||||
}
|
||||
|
||||
/// Get the source XML configuration of a single domain
|
||||
pub async fn get_single_domain_xml(&self, id: XMLUuid) -> anyhow::Result<String> {
|
||||
self.0
|
||||
.send(libvirt_actor::GetSourceDomainXMLReq(id))
|
||||
.await?
|
||||
}
|
||||
|
||||
/// Update a domain
|
||||
pub async fn update_domain(&self, xml: DomainXML) -> anyhow::Result<XMLUuid> {
|
||||
self.0.send(libvirt_actor::DefineDomainReq(xml)).await?
|
||||
|
Reference in New Issue
Block a user