Use quick-xml to serialize network definitions

This commit is contained in:
2024-01-02 14:31:34 +01:00
parent e638829da7
commit 9256b76495
3 changed files with 22 additions and 71 deletions

View File

@ -389,7 +389,7 @@ impl Handler<DefineNetwork> for LibVirtActor {
log::debug!("Define network: {:?}", msg.1);
log::debug!("Source network structure: {:#?}", msg.1);
let network_xml = msg.1.into_xml()?;
let network_xml = msg.1.as_xml()?;
log::debug!("Define network XML: {network_xml}");
let network = Network::define_xml(&self.m, &network_xml)?;