From: Marek Marczykowski-Górecki Date: Thu, 7 Dec 2017 02:27:47 +0000 (+0100) Subject: tests: add test for multiple IPs for libxl and xenconfig driver X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=984c534a3f2219444f4cb4df61d77b8c6e5054d7;p=libvirt.git tests: add test for multiple IPs for libxl and xenconfig driver Test conversion of multiple IP addresses to/from xl format and domXML. Also test libxl_domain_config generator handling of multiple IP addresses. Reviewed-by: Jim Fehlig --- diff --git a/tests/libxlxml2domconfigdata/multiple-ip.json b/tests/libxlxml2domconfigdata/multiple-ip.json new file mode 100644 index 0000000000..4aff61d4b5 --- /dev/null +++ b/tests/libxlxml2domconfigdata/multiple-ip.json @@ -0,0 +1,37 @@ +{ + "c_info": { + "type": "pv", + "name": "test-pv", + "uuid": "039e9ee6-4a84-3055-4c81-8ba426ae2656" + }, + "b_info": { + "max_vcpus": 4, + "avail_vcpus": [ + 0, + 1, + 2, + 3 + ], + "max_memkb": 524288, + "target_memkb": 524288, + "sched_params": { + "weight": 1000 + }, + "type.pv": { + "bootloader": "pygrub" + }, + "arch_arm": { + + } + }, + "nics": [ + { + "devid": 0, + "mac": "00:16:3e:3e:86:60", + "ip": "10.0.0.1 2000:abcd::1", + "script": "/etc/xen/scripts/vif-bridge", + "nictype": "vif" + } + ], + "on_reboot": "restart" +} diff --git a/tests/libxlxml2domconfigdata/multiple-ip.xml b/tests/libxlxml2domconfigdata/multiple-ip.xml new file mode 100644 index 0000000000..5188935f60 --- /dev/null +++ b/tests/libxlxml2domconfigdata/multiple-ip.xml @@ -0,0 +1,22 @@ + + test-pv + 039e9ee6-4a84-3055-4c81-8ba426ae2656 + 524288 + 524288 + 4 + + linux + + + destroy + restart + destroy + + + + + +