1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
3 elementFormDefault="qualified"
4 targetNamespace="urn:onf:params:xml:ns:onf:of12:config"
5 xmlns="urn:onf:params:xml:ns:onf:of12:config"
6 xmlns:of12-config="urn:onf:params:xml:ns:onf:of12:config"
7 xmlns:inet="urn:ietf:params:xml:ns:yang:ietf-inet-types">
8 <xs:import namespace="urn:ietf:params:xml:ns:yang:ietf-inet-types"
9 schemaLocation="ietf-inet-types.xsd"/>
10 <xs:import namespace="urn:ietf:params:xml:ns:netconf:base:1.0"
11 schemaLocation="../netconf/netconf.xsd"/>
12 <xs:element name="capable-switch" type="OFCapableSwitchType">
14 <xs:documentation>The OpenFlow Capable Switch and its configuration points, logical
15 switches and resources available to logical switches. </xs:documentation>
18 <xs:simpleType name="OFConfigID">
19 <xs:restriction base="xs:string"/>
21 <xs:complexType name="OFCapableSwitchType">
23 <xs:documentation>Representation of an OpenFlow Capable Switch.</xs:documentation>
26 <xs:element name="id" type="OFConfigID">
28 <xs:documentation>An unique but locally arbitrary identifier that identifies a
29 Capable Switch towards management systems and that is persistent across
30 reboots of the system. </xs:documentation>
33 <xs:element name="configuration-points" type="OFConfigurationPointListType">
35 <xs:documentation>The list of all configuration points known to the OpenFlow
36 Capable Switch that may manage it using OF-CONFIG. </xs:documentation>
39 <xs:element name="resources" type="OFCapableSwitchResourceListType">
41 <xs:documentation>This element contains lists of all resources of the OpenFlow
42 Capable Switch that can be used by OpenFlow Logical Switches.
46 <xs:element name="logical-switches" type="OFLogicalSwitchListType">
48 <xs:documentation>List of all OpenFlow Logical Switches available on the
49 OpenFlow Capable Switch. </xs:documentation>
54 <xs:complexType name="OFConfigurationPointListType">
59 <xs:element name="configuration-point" type="OFConfigurationPointType"
60 maxOccurs="unbounded"/>
63 <xs:complexType name="OFCapableSwitchResourceListType">
65 <xs:element name="port" type="OFPortType" maxOccurs="unbounded"/>
66 <xs:element name="queue" type="OFQueueType" maxOccurs="unbounded"/>
69 <xs:complexType name="OFLogicalSwitchListType">
71 <xs:element name="logical-switch" type="OFLogicalSwitchType" maxOccurs="unbounded"/>
74 <xs:complexType name="OFConfigurationPointType">
76 <xs:documentation>Representation of an OpenFlow Configuration Point. </xs:documentation>
79 <xs:element name="id" type="OFConfigID">
81 <xs:documentation>An identifier that identifies a Configuration Point of the
82 OpenFlow Capable Switch. </xs:documentation>
85 <xs:element name="uri" type="inet:uri">
87 <xs:documentation>A locator of the Configuration Point. This element MAY contain
88 a locator of the configuration point including, for example, an IP address
89 and a port number. </xs:documentation>
92 <xs:element name="protocol" type="OFConfigurationPointProtocolType">
94 <xs:documentation>The transport protocol that the Configuration Point uses when
95 communicating via NETCONF with the OpenFlow Capable Switch.
101 <xs:simpleType name="OFConfigurationPointProtocolType">
103 <xs:documentation>The mappings of NETCONF to different transport protocols are defined
104 in RFC 6242 for SSH, RFC 4743 for SOAP, RFC 4744 for BEEP, and RFC 5539 for TLS.
107 <xs:restriction base="xs:string">
108 <xs:enumeration value="ssh"/>
109 <xs:enumeration value="soap"/>
110 <xs:enumeration value="tls"/>
111 <xs:enumeration value="beep"/>
114 <xs:complexType name="OFLogicalSwitchType">
116 <xs:documentation>The representation of an OpenFlow Logical Switch </xs:documentation>
119 <xs:element name="id" type="OFConfigID">
121 <xs:documentation>An unique but locally arbitrary identifier that identifies an
122 OpenFlow Logical Switch within an OpenFlow Capable Switch. It is persistent
123 across reboots of the system. </xs:documentation>
126 <xs:element name="datapath-id" type="OFConfigID">
128 <xs:documentation>A unique identifier that identifiers an OpenFlow Logical
129 Switch within the context of an OpenFlow Controller. </xs:documentation>
132 <xs:element name="enabled" type="xs:boolean"/>
133 <xs:element name="lost-connection-behavior"
134 type="OFLogicalSwitchLostConnnectionBehavior"/>
135 <xs:element name="controllers" type="OFControllerListType">
137 <xs:documentation>The list of controllers that are assigned to the OpenFlow
138 Logical Switch. </xs:documentation>
141 <xs:element name="resources" type="OFLogicalSwitchResourceListType">
143 <xs:documentation>The list of references to all resources of the OpenFlow
144 Capable Switch that the OpenFlow Logical Switch has exclusive access to.
150 <xs:simpleType name="OFLogicalSwitchLostConnnectionBehavior">
151 <xs:restriction base="xs:string">
152 <xs:enumeration value="failSecureMode"/>
153 <xs:enumeration value="failStandaloneMode"/>
156 <xs:complexType name="OFControllerListType">
158 <xs:element name="controller" type="OFControllerType" maxOccurs="unbounded"/>
161 <xs:complexType name="OFLogicalSwitchResourceListType">
163 <xs:element name="port" type="OFConfigID" maxOccurs="unbounded"/>
164 <xs:element name="queue" type="OFConfigID" maxOccurs="unbounded"/>
167 <xs:complexType name="OFControllerType">
169 <xs:documentation>Representation of an OpenFlow Controller </xs:documentation>
172 <xs:element name="id" type="OFConfigID">
174 <xs:documentation>An unique but locally arbitrary identifier that identifies an
175 OpenFlow Controller within the context of an OpenFlow Capable Switch. It is
176 persistent across reboots of the system. </xs:documentation>
179 <xs:element name="role" type="OFControllerRoleType">
181 <xs:documentation>The predefined role of the controller. </xs:documentation>
184 <xs:element name="ip-address" type="inet:ip-prefix">
186 <xs:documentation>The remote IP of the controller to connect
187 to.</xs:documentation>
190 <xs:element name="port" type="inet:port-number">
192 <xs:documentation>The port number the controller listens on. </xs:documentation>
195 <xs:element name="local-ip-address" type="inet:ip-address">
197 <xs:documentation>This specifies the source IP for packets sent to this
198 controller and overrides the default IP used. </xs:documentation>
201 <xs:element name="local-port" type="inet:port-number">
203 <xs:documentation>The port number the controller listens on. If 0 the port is
204 chosen dynamically. </xs:documentation>
207 <xs:element name="protocol" type="OFControllerProtocolType">
209 <xs:documentation>The protocol used for connecting to the controller. Both sides
210 must support the chosen protocol for a successful establishment of a
211 connection. </xs:documentation>
214 <xs:element name="state" type="OFControllerOpenFlowStateType">
216 <xs:documentation>This element represents the state of the OpenFlow protocol
217 connection to the controller. </xs:documentation>
222 <xs:simpleType name="OFControllerRoleType">
223 <xs:restriction base="xs:string">
224 <xs:enumeration value="master"/>
225 <xs:enumeration value="slave"/>
226 <xs:enumeration value="equal"/>
229 <xs:simpleType name="OFControllerProtocolType">
230 <xs:restriction base="xs:string">
231 <xs:enumeration value="tcp"/>
232 <xs:enumeration value="tls"/>
235 <xs:complexType name="OFControllerOpenFlowStateType">
237 <xs:element name="connection-state" type="OFControllerConnectionStateType">
239 <xs:documentation>This element represents the run-time state of the OpenFlow
240 connection to the Contoller. </xs:documentation>
243 <xs:element name="current-version" type="OFOpenFlowVersionType">
245 <xs:documentation>This element denotes the version of OpenFlow that Contoller is
246 currently communicating with. It is only relevant when the connection-state
247 element is set to "up". </xs:documentation>
250 <xs:element name="supported-versions" type="OFOpenFlowSupportedVersionsType">
252 <xs:documentation>This element denotes all of the versions of the OpenFlow
253 protocol that the contoller supports. </xs:documentation>
258 <xs:simpleType name="OFControllerConnectionStateType">
259 <xs:restriction base="xs:string">
260 <xs:enumeration value="up"/>
261 <xs:enumeration value="down"/>
264 <xs:complexType name="OFOpenFlowSupportedVersionsType">
266 <xs:element name="version" type="OFOpenFlowVersionType" maxOccurs="unbounded"/>
269 <xs:simpleType name="OFOpenFlowVersionType">
270 <xs:restriction base="xs:string">
271 <xs:enumeration value="1.2"/>
272 <xs:enumeration value="1.1"/>
273 <xs:enumeration value="1.0"/>
276 <xs:complexType name="OFResourceType">
278 <xs:documentation>A Base Class for OpenFlow Resources. </xs:documentation>
281 <xs:element name="resource-id" type="OFConfigID">
283 <xs:documentation>An unique but locally arbitrary identifier that identifies a
284 resource within the context of and OpenFlow Capable Switch and is persistent
285 across reboots of the system. </xs:documentation>
290 <xs:complexType name="OFPortType">
292 <xs:extension base="OFResourceType">
294 <xs:element name="number" type="xs:unsignedInt"/>
295 <xs:element name="name" type="xs:string"/>
296 <xs:element name="current-rate" type="xs:unsignedLong"/>
297 <xs:element name="max-rate" type="xs:unsignedLong"/>
298 <xs:element name="configuration" type="OFPortConfigurationType"/>
299 <xs:element name="state" type="OFPortStateType"/>
300 <xs:element name="features" type="OFPortFeatureMasterList"/>
305 <xs:complexType name="OFPortFeatureMasterList">
307 <xs:element name="current" type="OFPortCurrentFeatureListType"/>
308 <xs:element name="advertised" type="OFPortOtherFeatureListType"/>
309 <xs:element name="supported" type="OFPortOtherFeatureListType"/>
310 <xs:element name="advertised-peer" type="OFPortOtherFeatureListType"/>
313 <xs:complexType name="OFPortConfigurationType">
315 <xs:element name="admin-state" type="OFPortStateOptionsType"/>
316 <xs:element name="no-receive" type="xs:boolean"/>
317 <xs:element name="no-forward" type="xs:boolean"/>
318 <xs:element name="no-packet-in" type="xs:boolean"/>
321 <xs:complexType name="OFPortStateType">
323 <xs:element name="oper-state" type="OFPortStateOptionsType"/>
324 <xs:element name="blocked" type="xs:boolean"/>
325 <xs:element name="live" type="xs:boolean"/>
328 <xs:simpleType name="OFPortStateOptionsType">
329 <xs:restriction base="xs:string">
330 <xs:enumeration value="up"/>
331 <xs:enumeration value="down"/>
334 <xs:complexType name="OFPortCurrentFeatureListType">
336 <xs:element name="rate" type="OFPortRateType"/>
337 <xs:element name="auto-negotiate" type="OFPortAutoNegotiateType"/>
338 <xs:element name="medium" type="OFPortMediumType"/>
339 <xs:element name="pause" type="OFPortPauseType"/>
342 <xs:complexType name="OFPortOtherFeatureListType">
344 <xs:element name="rate" type="OFPortRateType" maxOccurs="unbounded"/>
345 <xs:element name="auto-negotiate" type="OFPortAutoNegotiateType"/>
346 <xs:element name="medium" type="OFPortMediumType" maxOccurs="unbounded"/>
347 <xs:element name="pause" type="OFPortPauseType"/>
350 <xs:simpleType name="OFPortRateType">
351 <xs:restriction base="xs:string">
352 <xs:enumeration value="10Mb-HD"/>
353 <xs:enumeration value="10Mb-FD"/>
354 <xs:enumeration value="100Mb-HD"/>
355 <xs:enumeration value="100Mb-FD"/>
356 <xs:enumeration value="1Gb-HD"/>
357 <xs:enumeration value="1Gb-FD"/>
358 <xs:enumeration value="1 Tb"/>
359 <xs:enumeration value="Other"/>
362 <xs:simpleType name="OFPortAutoNegotiateType">
363 <xs:restriction base="xs:string">
364 <xs:enumeration value="enabled"/>
365 <xs:enumeration value="disabled"/>
368 <xs:simpleType name="OFPortMediumType">
369 <xs:restriction base="xs:string">
370 <xs:enumeration value="copper"/>
371 <xs:enumeration value="fiber"/>
374 <xs:simpleType name="OFPortPauseType">
375 <xs:restriction base="xs:string">
376 <xs:enumeration value="unsupported"/>
377 <xs:enumeration value="symmetric"/>
378 <xs:enumeration value="asymmetric"/>
381 <xs:complexType name="OFQueueType">
383 <xs:extension base="OFResourceType">
384 <xs:sequence maxOccurs="1" minOccurs="1">
385 <xs:element name="id" type="OFConfigID">
387 <xs:documentation>An unique but locally arbitrary number that identifies
388 a queue within the context of and OpenFlow Logical Switch and is
389 persistent across reboots of the system. </xs:documentation>
392 <xs:element name="port" type="OFConfigID">
394 <xs:documentation>Port in the context of the same Logical Switch which
395 this Queue is associated with. </xs:documentation>
398 <xs:element name="properties" type="OFQueuePropertiesType">
400 <xs:documentation>Properties of the Queue. </xs:documentation>
407 <xs:complexType name="OFQueuePropertiesType">
409 <xs:element name="min-rate" type="OFQueueMinRateType" maxOccurs="1">
411 <xs:documentation>The minimal rate that is reserved for this queue in 1/10 of a
412 percent of the actual rate. </xs:documentation>
415 <xs:element name="max-rate" type="OFQueueMaxRateType">
417 <xs:documentation>The maximum rate that is reserved for this queue in 1/10 of a
418 percent of the actual rate. </xs:documentation>
421 <xs:element maxOccurs="unbounded" name="experimenter" type="xs:unsignedLong">
423 <xs:documentation>Experimental Properties</xs:documentation>
428 <xs:simpleType name="OFQueueMinRateType">
429 <xs:restriction base="xs:integer"/>
431 <xs:simpleType name="OFQueueMaxRateType">
432 <xs:restriction base="xs:integer"/>