diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-08-20 17:23:12 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-08-20 17:23:12 +0300 |
commit | 70506e844ea26138494f59bfc3ecec88f2464491 (patch) | |
tree | 75b207b7da4353035ff5328510d7a943185d5c52 /src | |
parent | 3b9f7397d4116ae6f661a3d0aaf9f92937775510 (diff) | |
download | vmadm-70506e844ea26138494f59bfc3ecec88f2464491.tar.gz |
feat! add support for non-virtual networks
The virtual, libvirt-only network foo must now be specified as
network=foo, to allow a non-virtual network over a local bridge device
be specified as bridge=br0.
Sponsored-by: author
Diffstat (limited to 'src')
-rw-r--r-- | src/config.rs | 2 | ||||
-rw-r--r-- | src/install.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/config.rs b/src/config.rs index 50b94b0..6829151 100644 --- a/src/config.rs +++ b/src/config.rs @@ -74,7 +74,7 @@ impl Configuration { fn fill_in_missing_networks(&mut self) { if self.default_networks.is_none() { - self.default_networks = Some(vec!["default".to_string()]); + self.default_networks = Some(vec!["network=default".to_string()]); } } diff --git a/src/install.rs b/src/install.rs index 17b7be8..4738855 100644 --- a/src/install.rs +++ b/src/install.rs @@ -111,7 +111,7 @@ pub fn virt_install(args: &VirtInstallArgs, iso: &Path) -> Result<PathBuf, VirtI let networks: Vec<String> = args .networks .iter() - .map(|s| format!("--network=network={}", s)) + .map(|s| format!("--network={}", s)) .collect(); args.init().create_iso(iso)?; |