diff options
author | Michal Novotny <minovotn@redhat.com> | 2012-01-02 15:23:54 +0100 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2012-01-02 23:05:55 +0800 |
commit | 973af2362cbf5348134b7ee90dbd34481182b9ac (patch) | |
tree | 29a7d35f79cc6495ab8c69432bc41825a7497f09 /docs/schemas | |
parent | qemu: Fix bandwidth memory leak on failure (diff) | |
download | libvirt-973af2362cbf5348134b7ee90dbd34481182b9ac.tar.gz libvirt-973af2362cbf5348134b7ee90dbd34481182b9ac.tar.bz2 libvirt-973af2362cbf5348134b7ee90dbd34481182b9ac.zip |
Implement DNS SRV record into the bridge driver
Hi,
this is the fifth version of my SRV record for DNSMasq patch rebased
for the current codebase to the bridge driver and libvirt XML file to
include support for the SRV records in the DNS. The syntax is based on
DNSMasq man page and tests for both xml2xml and xml2argv were added as
well. There are some things written a better way in comparison with
version 4, mainly there's no hack in tests/networkxml2argvtest.c and
also the xPath context is changed to use a simpler query using the
virXPathInt() function relative to the current node.
Also, the patch is also fixing the networkxml2argv test to pass both
checks, i.e. both unit tests and also syntax check.
Please review,
Michal
Signed-off-by: Michal Novotny <minovotn@redhat.com>
Diffstat (limited to 'docs/schemas')
-rw-r--r-- | docs/schemas/network.rng | 20 | ||||
-rw-r--r-- | docs/schemas/networkcommon.rng | 17 |
2 files changed, 30 insertions, 7 deletions
diff --git a/docs/schemas/network.rng b/docs/schemas/network.rng index 937e1808e..5d58fe402 100644 --- a/docs/schemas/network.rng +++ b/docs/schemas/network.rng @@ -138,6 +138,19 @@ </element> </zeroOrMore> <zeroOrMore> + <element name="srv"> + <attribute name="service"><text/></attribute> + <attribute name="protocol"><ref name="protocol"/></attribute> + <optional> + <attribute name="domain"><ref name="dnsName"/></attribute> + <attribute name="target"><text/></attribute> + <attribute name="port"><ref name="unsignedShort"/></attribute> + <attribute name="priority"><ref name="unsignedShort"/></attribute> + <attribute name="weight"><ref name="unsignedShort"/></attribute> + </optional> + </element> + </zeroOrMore> + <zeroOrMore> <element name="host"> <attribute name="ip"><ref name="ipv4Addr"/></attribute> <oneOrMore> @@ -216,11 +229,4 @@ </interleave> </element> </define> - - <define name='addr-family'> - <data type='string'> - <param name="pattern">(ipv4)|(ipv6)</param> - </data> - </define> - </grammar> diff --git a/docs/schemas/networkcommon.rng b/docs/schemas/networkcommon.rng index 3a168c337..2328892f1 100644 --- a/docs/schemas/networkcommon.rng +++ b/docs/schemas/networkcommon.rng @@ -95,4 +95,21 @@ <param name="minInclusive">1</param> </data> </define> + + <define name='unsignedShort'> + <data type='integer'> + <param name="minInclusive">0</param> + <param name="maxInclusive">65535</param> + </data> + </define> + <define name='protocol'> + <data type='string'> + <param name='pattern'>(tcp)|(udp)</param> + </data> + </define> + <define name='addr-family'> + <data type='string'> + <param name="pattern">(ipv4)|(ipv6)</param> + </data> + </define> </grammar> |