aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/xl.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2011-02-18 15:32:02 +0000
committerIan Campbell <ian.campbell@citrix.com>2011-02-18 15:32:02 +0000
commitce30570ae8b53d7625243ee41984c24cfbf5935c (patch)
tree28474b2577310792e0017444e658fd5472648041 /tools/libxl/xl.c
parentb9ef3bf4e1a5724af87097630d71a217cd7de399 (diff)
downloadxen-ce30570ae8b53d7625243ee41984c24cfbf5935c.tar.gz
xen-ce30570ae8b53d7625243ee41984c24cfbf5935c.tar.bz2
xen-ce30570ae8b53d7625243ee41984c24cfbf5935c.zip
libxl/xl: enable support for routed network configurations.
Add "vifscript" option to xl.conf which configures the default vif script to use (default remains "vif-bridge") Write each VIFs "ip" option to xenstore so the vif-route script can pick it up. Reported-by: W. Michael Petullo <mike@flyn.org>. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/xl.c')
-rw-r--r--tools/libxl/xl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/libxl/xl.c b/tools/libxl/xl.c
index 2ad117f56d..9e3023c629 100644
--- a/tools/libxl/xl.c
+++ b/tools/libxl/xl.c
@@ -35,6 +35,7 @@
xentoollog_logger_stdiostream *logger;
int autoballoon = 1;
char *lockfile;
+char *default_vifscript = NULL;
static xentoollog_level minmsglevel = XTL_PROGRESS;
@@ -72,6 +73,9 @@ static void parse_global_config(const char *configfile,
}
}
+ if (!xlu_cfg_get_string (config, "vifscript", &buf))
+ default_vifscript = strdup(buf);
+
xlu_cfg_destroy(config);
}