diff options
author | John Levon <john.levon@sun.com> | 2009-01-23 01:48:47 +0000 |
---|---|---|
committer | John Levon <john.levon@sun.com> | 2009-01-23 01:48:47 +0000 |
commit | e80f10064e2290414d0b525a2b7505a84fee9f66 (patch) | |
tree | 53a7b2965bb5c4beeb015346cab5e98a52f528b5 /tests/xml2sexprdata | |
parent | use the gnulib random_r function (diff) | |
download | libvirt-e80f10064e2290414d0b525a2b7505a84fee9f66.tar.gz libvirt-e80f10064e2290414d0b525a2b7505a84fee9f66.tar.bz2 libvirt-e80f10064e2290414d0b525a2b7505a84fee9f66.zip |
parse IP address for bridge interfaces
Diffstat (limited to 'tests/xml2sexprdata')
-rw-r--r-- | tests/xml2sexprdata/xml2sexpr-bridge-ipaddr.sexpr | 1 | ||||
-rw-r--r-- | tests/xml2sexprdata/xml2sexpr-bridge-ipaddr.xml | 30 |
2 files changed, 31 insertions, 0 deletions
diff --git a/tests/xml2sexprdata/xml2sexpr-bridge-ipaddr.sexpr b/tests/xml2sexprdata/xml2sexpr-bridge-ipaddr.sexpr new file mode 100644 index 000000000..898fe2d8a --- /dev/null +++ b/tests/xml2sexprdata/xml2sexpr-bridge-ipaddr.sexpr @@ -0,0 +1 @@ +(vm (name 'pvtest')(memory 420)(maxmem 420)(vcpus 2)(uuid '596a5d21-71f4-8fb2-e068-e2386a5c413e')(on_poweroff 'destroy')(on_reboot 'destroy')(on_crash 'destroy')(image (linux (kernel '/var/lib/xen/vmlinuz.2Dn2YT')(ramdisk '/var/lib/xen/initrd.img.0u-Vhq')(args ' method=http://download.fedora.devel.redhat.com/pub/fedora/linux/core/test/5.91/x86_64/os ')))(device (vbd (dev 'xvda')(uname 'file:/root/some.img')(mode 'w')))(device (vif (mac '00:11:22:33:44:55')(bridge 'xenbr2')(script 'vif-bridge')(ip '192.0.2.1'))))
\ No newline at end of file diff --git a/tests/xml2sexprdata/xml2sexpr-bridge-ipaddr.xml b/tests/xml2sexprdata/xml2sexpr-bridge-ipaddr.xml new file mode 100644 index 000000000..587cc6a3f --- /dev/null +++ b/tests/xml2sexprdata/xml2sexpr-bridge-ipaddr.xml @@ -0,0 +1,30 @@ +<domain type='xen' id='15'> + <name>pvtest</name> + <uuid>596a5d2171f48fb2e068e2386a5c413e</uuid> + <os> + <type>linux</type> + <kernel>/var/lib/xen/vmlinuz.2Dn2YT</kernel> + <initrd>/var/lib/xen/initrd.img.0u-Vhq</initrd> + <cmdline> method=http://download.fedora.devel.redhat.com/pub/fedora/linux/core/test/5.91/x86_64/os </cmdline> + </os> + <memory>430080</memory> + <vcpu>2</vcpu> + <on_poweroff>destroy</on_poweroff> + <on_reboot>destroy</on_reboot> + <on_crash>destroy</on_crash> + <devices> + <disk type='file' device='disk'> + <source file='/root/some.img'/> + <target dev='xvda'/> + </disk> + <interface type="bridge"> + <mac address="00:11:22:33:44:55"/> + <source bridge="xenbr2"/> + <ip address="192.0.2.1"/> + <script path="vif-bridge"/> + <target dev="vif4.0"/> + </interface> + <console tty='/dev/pts/4'/> + </devices> +</domain> + |