diff options
Diffstat (limited to 'schemas/services.xsd')
-rw-r--r-- | schemas/services.xsd | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/schemas/services.xsd b/schemas/services.xsd index e69de29bb..2299725df 100644 --- a/schemas/services.xsd +++ b/schemas/services.xsd @@ -0,0 +1,43 @@ +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en"> + + <xsd:annotation> + <xsd:documentation> + services schema for bcfg2 + Narayan Desai, Argonne National Laboratory + $Id: $ + </xsd:documentation> + </xsd:annotation> + + <xsd:complexType name='ServiceType'> + <xsd:choice minOccurs='0' maxOccurs='unbounded'> + <xsd:element name='User'> + <xsd:complexType> + <xsd:attribute name='address' type='xsd:string' use='required'/> + <xsd:attribute name='mask' type='xsd:string' use='required'/> + </xsd:complexType> + </xsd:element> + </xsd:choice> + <xsd:attribute name='name' type='xsd:string' use='required'/> + <xsd:attribute name='status' type='xsd:string' use='required'/> + <xsd:attribute name='port' type='xsd:string' use='required'/> + <xsd:attribute name='protocol' type='xsd:string' use='required'/> + </xsd:complexType> + + <xsd:complexType name='ContainerType'> + <xsd:choice minOccurs='0' maxOccurs='unbounded'> + <xsd:element name='Service' type='ServiceType'/> + </xsd:choice> + <xsd:attribute name='name' type='xsd:string'/> + </xsd:complexType> + + <xsd:element name='Services'> + <xsd:complexType> + <xsd:choice minOccurs='0' maxOccurs='unbounded'> + <xsd:element name='Service' type='ServiceType'/> + <xsd:element name='Class' type='ContainerType'/> + <xsd:element name='Host' type='ContainerType'/> + </xsd:choice> + </xsd:complexType> + </xsd:element> + +</xsd:schema>
\ No newline at end of file |