diff options
author | Roger Pau Monne <roger.pau@citrix.com> | 2013-03-13 17:42:17 +0000 |
---|---|---|
committer | Ian Jackson <Ian.Jackson@eu.citrix.com> | 2013-03-15 12:40:37 +0000 |
commit | e66be7e48421f0a67f29dd7d572d42c7627807c7 (patch) | |
tree | bbfac72498c90cc774574245d63e90f48468a69c /tools/libxl | |
parent | cb724faf0138a92dcebb8cf249ae79ba87a67ff9 (diff) | |
download | xen-e66be7e48421f0a67f29dd7d572d42c7627807c7.tar.gz xen-e66be7e48421f0a67f29dd7d572d42c7627807c7.tar.bz2 xen-e66be7e48421f0a67f29dd7d572d42c7627807c7.zip |
xl: add vif.default.bridge
This is a replacement for defaultbridge xl.conf option. The now
deprecated defaultbridge is still supported.
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Cc: George Dunlap <George.Dunlap@eu.citrix.com>
Cc: 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')
-rw-r--r-- | tools/libxl/xl.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tools/libxl/xl.c b/tools/libxl/xl.c index 71561a49ef..9f45e4559f 100644 --- a/tools/libxl/xl.c +++ b/tools/libxl/xl.c @@ -99,8 +99,17 @@ static void parse_global_config(const char *configfile, if (!xlu_cfg_get_string (config, "vifscript", &buf, 0)) default_vifscript = strdup(buf); - if (!xlu_cfg_get_string (config, "defaultbridge", &buf, 0)) - default_bridge = strdup(buf); + if (!xlu_cfg_get_string (config, "defaultbridge", &buf, 0)) { + fprintf(stderr, "the global config option defaultbridge is deprecated, " + "please switch to vif.default.bridge\n"); + free(default_bridge); + default_bridge = strdup(buf); + } + + if (!xlu_cfg_get_string (config, "vif.default.bridge", &buf, 0)) { + free(default_bridge); + default_bridge = strdup(buf); + } if (!xlu_cfg_get_string (config, "vif.default.gatewaydev", &buf, 0)) default_gatewaydev = strdup(buf); |