]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Implement DNS SRV record into the bridge driver
authorMichal Novotny <minovotn@redhat.com>
Mon, 2 Jan 2012 14:23:54 +0000 (15:23 +0100)
committerDaniel Veillard <veillard@redhat.com>
Mon, 2 Jan 2012 15:05:55 +0000 (23:05 +0800)
commit973af2362cbf5348134b7ee90dbd34481182b9ac
tree29a7d35f79cc6495ab8c69432bc41825a7497f09
parentbaade4cd2bf67c8551505d0fc5614ee1ee59ff9a
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>
15 files changed:
docs/formatnetwork.html.in
docs/schemas/network.rng
docs/schemas/networkcommon.rng
src/conf/network_conf.c
src/conf/network_conf.h
src/network/bridge_driver.c
tests/networkxml2argvdata/nat-network-dns-srv-record-minimal.argv [new file with mode: 0644]
tests/networkxml2argvdata/nat-network-dns-srv-record-minimal.xml [new file with mode: 0644]
tests/networkxml2argvdata/nat-network-dns-srv-record.argv [new file with mode: 0644]
tests/networkxml2argvdata/nat-network-dns-srv-record.xml [new file with mode: 0644]
tests/networkxml2argvtest.c
tests/networkxml2xmlin/nat-network-dns-srv-record-minimal.xml [new file with mode: 0644]
tests/networkxml2xmlin/nat-network-dns-srv-record.xml [new file with mode: 0644]
tests/networkxml2xmlout/nat-network-dns-srv-record-minimal.xml [new file with mode: 0644]
tests/networkxml2xmlout/nat-network-dns-srv-record.xml [new file with mode: 0644]