d2a36c5958
The new base/xsd/config.inc defines generic XSD types such as 'Boolean' or 'Session_label'. It can be included in config XSD files by using: ! <xs:include schemaLocation="file://${GENODE_CONFIG_INC}"/> The string ${GENODE_CONFIG_INC} is replaced by the run tool with the above mentionened file path. Issue #2897
39 lines
1.3 KiB
XML
39 lines
1.3 KiB
XML
<?xml version="1.0"?>
|
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
|
|
|
<xs:include schemaLocation="base_types.xsd"/>
|
|
|
|
<xs:simpleType name="Interface_label">
|
|
<xs:restriction base="xs:string">
|
|
<xs:minLength value="1"/>
|
|
<xs:maxLength value="64"/>
|
|
</xs:restriction>
|
|
</xs:simpleType><!-- Interface_label -->
|
|
|
|
<xs:simpleType name="Log_style">
|
|
<xs:restriction base="xs:string">
|
|
<xs:enumeration value="no" />
|
|
<xs:enumeration value="name" />
|
|
<xs:enumeration value="default" />
|
|
<xs:enumeration value="all" />
|
|
</xs:restriction>
|
|
</xs:simpleType><!-- Log_style -->
|
|
|
|
<xs:element name="config">
|
|
<xs:complexType>
|
|
<xs:attribute name="uplink" type="Interface_label" />
|
|
<xs:attribute name="downlink" type="Interface_label" />
|
|
<xs:attribute name="time" type="Boolean" />
|
|
<xs:attribute name="default" type="Log_style" />
|
|
<xs:attribute name="eth" type="Log_style" />
|
|
<xs:attribute name="ipv4" type="Log_style" />
|
|
<xs:attribute name="arp" type="Log_style" />
|
|
<xs:attribute name="icmp" type="Log_style" />
|
|
<xs:attribute name="udp" type="Log_style" />
|
|
<xs:attribute name="tcp" type="Log_style" />
|
|
<xs:attribute name="dhcp" type="Log_style" />
|
|
</xs:complexType>
|
|
</xs:element><!-- config -->
|
|
|
|
</xs:schema>
|