diff options
author | Michal Novotny <minovotn@redhat.com> | 2011-06-24 12:04:36 +0200 |
---|---|---|
committer | Laine Stump <laine@laine.org> | 2011-06-24 16:15:12 -0400 |
commit | 5dd986dbd7ff0bdae0b572bafde16b4b94237ff8 (patch) | |
tree | d4797fad777535b4f30e9e51d436e31e8055c71e /tests/networkxml2xmlin | |
parent | python: Don't declare Py_ssize_t for Python 2.6 (diff) | |
download | libvirt-5dd986dbd7ff0bdae0b572bafde16b4b94237ff8.tar.gz libvirt-5dd986dbd7ff0bdae0b572bafde16b4b94237ff8.tar.bz2 libvirt-5dd986dbd7ff0bdae0b572bafde16b4b94237ff8.zip |
Add TXT record support for virtual DNS service
This commit introduces the <dns> element and <txt> record for the
virtual DNS network. The DNS TXT record can be defined using following
syntax in the network XML file:
<dns>
<txt name="example" value="example value" />
</dns>
Also, the Relax-NG scheme has been altered to allow the texts without
spaces only for the name element and some nitpicks about memory
free'ing have been fixed by Laine so therefore I'm adding Laine to the
SOB clause ;-)
Signed-off-by: Michal Novotny <minovotn@redhat.com>
Signed-off-by: Laine Stump <laine@laine.org>
Diffstat (limited to 'tests/networkxml2xmlin')
-rw-r--r-- | tests/networkxml2xmlin/nat-network-dns-txt-record.xml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/networkxml2xmlin/nat-network-dns-txt-record.xml b/tests/networkxml2xmlin/nat-network-dns-txt-record.xml new file mode 100644 index 000000000..bd1697608 --- /dev/null +++ b/tests/networkxml2xmlin/nat-network-dns-txt-record.xml @@ -0,0 +1,24 @@ +<network> + <name>default</name> + <uuid>81ff0d90-c91e-6742-64da-4a736edb9a9b</uuid> + <forward dev='eth1' mode='nat'/> + <bridge name='virbr0' stp='on' delay='0' /> + <dns> + <txt name='example' value='example value' /> + </dns> + <ip address='192.168.122.1' netmask='255.255.255.0'> + <dhcp> + <range start='192.168.122.2' end='192.168.122.254' /> + <host mac='00:16:3e:77:e2:ed' name='a.example.com' ip='192.168.122.10' /> + <host mac='00:16:3e:3e:a9:1a' name='b.example.com' ip='192.168.122.11' /> + </dhcp> + </ip> + <ip family='ipv4' address='192.168.123.1' netmask='255.255.255.0'> + </ip> + <ip family='ipv6' address='2001:db8:ac10:fe01::1' prefix='64'> + </ip> + <ip family='ipv6' address='2001:db8:ac10:fd01::1' prefix='64'> + </ip> + <ip family='ipv4' address='10.24.10.1'> + </ip> +</network> |