adding some stuff for repomirror
This commit is contained in:
@@ -116,6 +116,13 @@
|
||||
<xs:whiteSpace value="collapse"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="t_net_port">
|
||||
<xs:restriction base="xs:positiveInteger">
|
||||
<xs:minExclusive value="0"/>
|
||||
<xs:maxInclusive value="65535"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="t_net_proto">
|
||||
<!-- TODO: expand? Remove gre? -->
|
||||
|
||||
13
schema/lib/types/repomirror.xsd
Normal file
13
schema/lib/types/repomirror.xsd
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
elementFormDefault="qualified"
|
||||
attributeFormDefault="unqualified">
|
||||
|
||||
<xs:simpleType name="t_repomir_synctype">
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:enumeration value="rsync"/>
|
||||
<xs:enumeration value="ftp"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
</xs:schema>
|
||||
35
schema/lib/types/router.xsd
Normal file
35
schema/lib/types/router.xsd
Normal file
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
elementFormDefault="qualified"
|
||||
attributeFormDefault="unqualified">
|
||||
|
||||
<xs:include schemaLocation="linux.xsd"/>
|
||||
<xs:include schemaLocation="net.xsd"/>
|
||||
|
||||
<!-- IEEE 802.1Q -->
|
||||
<xs:simpleType name="t_router_vlan">
|
||||
<xs:restriction base="xs:nonNegativeInteger">
|
||||
<xs:minInclusive value="0"/><!-- Technically redundant. -->
|
||||
<!--
|
||||
This is actually a vendor-specific thing; the official IEEE 802.1Q spec does NOT specify that VLAN ID 1 is
|
||||
reserved for management.
|
||||
-->
|
||||
<!-- <xs:minInclusive value="1"/> -->
|
||||
<xs:maxInclusive value="4094"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="t_router_bridge_iface">
|
||||
<xs:list itemType="t_linux_iface_name"/>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:complexType name="t_router_iface">
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="t_linux_iface_name">
|
||||
<xs:attribute name="vlan" type="t_router_vlan" use="optional"/>
|
||||
<xs:attribute name="bridge" type="t_router_bridge_iface" use="optional"/>
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
|
||||
</xs:schema>
|
||||
Reference in New Issue
Block a user