summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-07-25 10:45:27 +0300
committerLars Wirzenius <liw@liw.fi>2021-07-25 11:44:44 +0300
commit40f951a3adbbba94942e007434946a2192eb8989 (patch)
tree47653653c827b3899d95a4bf37e8ce5d528c02ff /src/config.rs
parentbe53a50f86c3f9dcbc003d2ced9824829ee81f19 (diff)
downloadvmadm-40f951a3adbbba94942e007434946a2192eb8989.tar.gz
feat: allow use to add a VM on virtual networks
Sponsored-by: author
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index 7a38942..4786bdb 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -29,6 +29,9 @@ pub struct Configuration {
/// Should new VM be started automatically on host boot?
pub default_autostart: Option<bool>,
+ /// List of default networks to add to hosts.
+ pub default_networks: Option<Vec<String>>,
+
/// Directory where new VM images should be created, if given.
pub image_directory: Option<PathBuf>,