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
This commit is contained in:
Daniel Veillard
2009-07-02 14:02:18 +00:00
parent bc429a0e54
commit 1e4434d652
4 changed files with 26 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
<!-- A Relax NG schema for the libvirt network XML format -->
<element name="network" xmlns="http://relaxng.org/ns/structure/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<interleave>
<!-- The name of the network, used to refer to it through the API
and in virsh -->
<element name="name"><text/></element>
@@ -42,6 +43,11 @@
</optional>
</element>
</optional>
<optional>
<element name="domain">
<attribute name="name"><text/></attribute>
</element>
</optional>
<optional>
<!-- The IP element sets up NAT'ing and an optional DHCP server
local to the host. -->
@@ -63,7 +69,15 @@
<attribute name="end"><text/></attribute>
</element>
</zeroOrMore>
<zeroOrMore>
<element name="host">
<attribute name="mac"><text/></attribute>
<attribute name="name"><text/></attribute>
<attribute name="ip"><text/></attribute>
</element>
</zeroOrMore>
</element>
</element>
</optional>
</interleave>
</element>