This patch adds support for more network configurations in vmx files.
Changes since v1:
Adapt virVMXFormatEthernet() to handle empty bridge names and user
interface type.
Add new test cases to vmx2xmltest and xml2vmxtest.
Jean-Baptiste Rouault (1):
vmx: Better Workstation vmx handling
src/vmx/vmx.c | 39 ++++++++++++------
tests/vmx2xmldata/vmx2xml-ethernet-nat.vmx | 6 +++
tests/vmx2xmldata/vmx2xml-ethernet-nat.xml | 21 ++++++++++
tests/vmx2xmldata/vmx2xml-ws-in-the-wild-1.vmx | 52 ++++++++++++++++++++++++
tests/vmx2xmldata/vmx2xml-ws-in-the-wild-1.xml | 35 ++++++++++++++++
tests/vmx2xmldata/vmx2xml-ws-in-the-wild-2.vmx | 52 ++++++++++++++++++++++++
tests/vmx2xmldata/vmx2xml-ws-in-the-wild-2.xml | 36 ++++++++++++++++
tests/vmx2xmltest.c | 4 ++
tests/xml2vmxdata/xml2vmx-ethernet-nat.vmx | 14 ++++++
tests/xml2vmxdata/xml2vmx-ethernet-nat.xml | 13 ++++++
tests/xml2vmxdata/xml2vmx-ws-in-the-wild-1.vmx | 22 ++++++++++
tests/xml2vmxdata/xml2vmx-ws-in-the-wild-1.xml | 29 +++++++++++++
tests/xml2vmxdata/xml2vmx-ws-in-the-wild-2.vmx | 22 ++++++++++
tests/xml2vmxdata/xml2vmx-ws-in-the-wild-2.xml | 30 ++++++++++++++
tests/xml2vmxtest.c | 4 ++
15 files changed, 366 insertions(+), 13 deletions(-)
create mode 100644 tests/vmx2xmldata/vmx2xml-ethernet-nat.vmx
create mode 100644 tests/vmx2xmldata/vmx2xml-ethernet-nat.xml
create mode 100644 tests/vmx2xmldata/vmx2xml-ws-in-the-wild-1.vmx
create mode 100644 tests/vmx2xmldata/vmx2xml-ws-in-the-wild-1.xml
create mode 100644 tests/vmx2xmldata/vmx2xml-ws-in-the-wild-2.vmx
create mode 100644 tests/vmx2xmldata/vmx2xml-ws-in-the-wild-2.xml
create mode 100644 tests/xml2vmxdata/xml2vmx-ethernet-nat.vmx
create mode 100644 tests/xml2vmxdata/xml2vmx-ethernet-nat.xml
create mode 100644 tests/xml2vmxdata/xml2vmx-ws-in-the-wild-1.vmx
create mode 100644 tests/xml2vmxdata/xml2vmx-ws-in-the-wild-1.xml
create mode 100644 tests/xml2vmxdata/xml2vmx-ws-in-the-wild-2.vmx
create mode 100644 tests/xml2vmxdata/xml2vmx-ws-in-the-wild-2.xml
--
1.7.9