libvirt/src/xenconfig
Chunyan Liu 03f8bba26e xenFormatNet: correct `type=netfront' to 'type=vif' to match libxl
According to current xl.cfg docs and xl codes, it uses type=vif
instead of type=netfront.

Currently after domxml-to-native, libvirt xml model=netfront will be
converted to xl type=netfront. This has no problem before, xen codes
for a long time just check type=ioemu, if not, set type to _VIF.

Since libxl uses parse_nic_config to avoid duplicate codes, it
compares 'type=vif' and 'type=ioemu' for valid parameters, others
are considered as invalid, thus we have problem with type=netfront
in xl config file.
 #xl create sles12gm-hvm.orig
 Parsing config from sles12gm-hvm.orig
 Invalid parameter `type'.

Correct the conversion in libvirt, so that it matchs libxl codes
and also xl.cfg.

Signed-off-by: Chunyan Liu <cyliu@suse.com>
2016-05-17 14:09:11 -06:00
..
xen_common.c xenFormatNet: correct `type=netfront' to 'type=vif' to match libxl 2016-05-17 14:09:11 -06:00
xen_common.h xenFormatNet: correct `type=netfront' to 'type=vif' to match libxl 2016-05-17 14:09:11 -06:00
xen_sxpr.c graphics: make address attribute for listen type='address' optional 2016-05-17 10:41:45 +02:00
xen_sxpr.h xenconfig: support vif bandwidth in sexpr parser and formatter 2016-01-08 18:56:00 -07:00
xen_xl.c xenFormatNet: correct `type=netfront' to 'type=vif' to match libxl 2016-05-17 14:09:11 -06:00
xen_xl.h Xen: xenconfig: remove xendConfigVersion from public functions 2015-12-17 21:22:33 -07:00
xen_xm.c xenFormatNet: correct `type=netfront' to 'type=vif' to match libxl 2016-05-17 14:09:11 -06:00
xen_xm.h Xen: xenconfig: remove xendConfigVersion from public functions 2015-12-17 21:22:33 -07:00
xenxs_private.h Xen: VIR_FROM_THIS cleanup 2016-01-21 09:31:39 -07:00