From 1e4434d652fd0014b3332c5a82aa5bbb0cf0907c Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Thu, 2 Jul 2009 14:02:18 +0000 Subject: [PATCH] Fix some missing parts in network code and schemas * docs/schemas/network.rng: fix the network schemas to match new accepted elements, patch by Satoru SATOH * src/network_conf.c: fix network driver to save the domain name in XML if present, patch by Satoru SATOH * AUTHORS: adding Satoru SATOH Daniel --- AUTHORS | 1 + ChangeLog | 8 ++++++++ docs/schemas/network.rng | 14 ++++++++++++++ src/network_conf.c | 3 +++ 4 files changed, 26 insertions(+) diff --git a/AUTHORS b/AUTHORS index 4fbfb20e65..dd537e6d75 100644 --- a/AUTHORS +++ b/AUTHORS @@ -76,6 +76,7 @@ Patches have also been contributed by: Federico Simoncelli Amy Griffis Henrik Persson E + Satoru SATOH [....send patches to get your name here....] diff --git a/ChangeLog b/ChangeLog index 129a2ccc7a..3f89a74357 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Thu Jul 2 15:58:09 CEST 2009 Daniel Veillard + + * docs/schemas/network.rng: fix the network schemas to match + new accepted elements, patch by Satoru SATOH + * src/network_conf.c: fix network driver to save the domain name + in XML if present, patch by Satoru SATOH + * AUTHORS: adding Satoru SATOH + Wed Jul 1 23:29:33 CEST 2009 Daniel Veillard * src/node_device.c: fix an endless loop in node device XML dump, diff --git a/docs/schemas/network.rng b/docs/schemas/network.rng index 34c0163185..a4281a52ff 100644 --- a/docs/schemas/network.rng +++ b/docs/schemas/network.rng @@ -1,6 +1,7 @@ + @@ -42,6 +43,11 @@ + + + + + @@ -63,7 +69,15 @@ + + + + + + + + diff --git a/src/network_conf.c b/src/network_conf.c index 1e0cbb8206..1b50b84e8a 100644 --- a/src/network_conf.c +++ b/src/network_conf.c @@ -592,6 +592,9 @@ char *virNetworkDefFormat(virConnectPtr conn, def->stp ? "on" : "off", def->delay); + if (def->domain) + virBufferVSprintf(&buf, " \n", def->domain); + if (def->ipAddress || def->netmask) { virBufferAddLit(&buf, "