summaryrefslogtreecommitdiffstats
path: root/verigraph/src/main/schema/net_types.xsd
blob: c99c7a615cb1110a3be3f81bb35cf2a73539a6f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
        xmlns:net="http://www.example.org/net/"
        targetNamespace="http://www.example.org/net/"
        elementFormDefault="qualified">

	<annotation>
    	<documentation>
      		Copyright (C) 2006-2007 Code Synthesis Tools CC

			Redistribution and use with or without modification are permitted
		    under the terms of the new BSD license. See the accompanying LICENSE
		    file.
    	</documentation>
  	</annotation>

	<simpleType name="macAddressType">
  		<restriction base="string">
  			<pattern value="(([a-fA-F0-9]{2})-){5,7}[a-fA-F0-9]{2}"/>
  		</restriction>
  	</simpleType>

  	<simpleType name="ipAddressType">
    	<restriction base="string">
      		<pattern value="((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])"/>
      		<pattern value="(([0-9a-fA-F]{1,4}:){6})(([0-9a-fA-F]{1,4}:[0-9a-fA-F]{1,4})|([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}))"/>
    		<pattern value="(([0-9a-fA-F]{1,4}:)*|([0-9a-fA-F]{1,4}))*(::)(([0-9a-fA-F]{1,4}:)*|([0-9a-fA-F]{1,4}))*"/>
    	</restriction>
  	</simpleType>

  	<simpleType name="portNumberType">
    	<restriction base="unsignedShort">
      		<minInclusive value="1"/>
    	</restriction>
  	</simpleType>

  	<!-- <complexType name="ipEndpointStructType">
    	<sequence>
      		<element name="address" type="net:ipAddressType"/>
      		<element name="port" type="net:portNumberType"/>
    	</sequence>
  	</complexType> -->

  	<simpleType name="ethertypeType">
  		<restriction base="unsignedShort">
  			<minInclusive value="1536"/>
  		</restriction>
  	</simpleType>

  	<simpleType name="vlanIdType">
  		<restriction base="unsignedShort">
  			<minInclusive value="1"/>
  			<maxInclusive value="4095"/>
  		</restriction>
  	</simpleType>

  	<simpleType name="vlanPcpType">
  		<restriction base="unsignedShort">
  			<maxInclusive value="7"/>
  		</restriction>
  	</simpleType>
</schema>