1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
3 xmlns:yin="urn:ietf:params:xml:schema:yang:yin:1"
4 targetNamespace="urn:opendaylight:controller:network"
5 xmlns="urn:opendaylight:controller:network"
6 elementFormDefault="qualified"
7 attributeFormDefault="unqualified"
10 xmlns:topos="urn:opendaylight:controller:network"
11 xmlns:inet="urn:ietf:params:xml:ns:yang:ietf-inet-types">
13 <xs:import namespace="urn:ietf:params:xml:ns:yang:ietf-inet-types"
14 schemaLocation="ietf-inet-types@2010-09-24.xsd"/>
18 This schema was generated from the YANG module controller-network
21 The schema describes an instance document consisting
22 of the entire configuration data store, operational
23 data, rpc operations, and notifications.
24 This schema can thus NOT be used as-is to
25 validate NETCONF PDUs.
30 <!-- YANG typedefs -->
31 <xs:simpleType name="topology-id">
32 <xs:restriction base="xs:string">
35 <xs:simpleType name="node-id">
36 <xs:restriction base="xs:string">
39 <xs:simpleType name="link-id">
40 <xs:restriction base="xs:string">
43 <xs:simpleType name="tp-id">
46 identifier for termination points on a port
50 <xs:restriction base="xs:string">
53 <xs:simpleType name="tp-ref">
54 <xs:restriction base="tp-id">
57 <xs:simpleType name="topology-ref">
60 This type is used for leafs that reference topology identifier instance.
64 <xs:restriction base="topology-id">
67 <xs:simpleType name="node-ref">
70 This type is used for leafs that reference a node instance.
74 <xs:restriction base="node-id">
77 <xs:simpleType name="link-ref">
80 This type is used for leafs that reference a link instance.
84 <xs:restriction base="link-id">
87 <xs:simpleType name="network-element-ref">
88 <xs:restriction base="element-id">
91 <xs:simpleType name="element-id">
92 <xs:restriction base="xs:string">
96 <xs:element name="network">
99 <xs:element name="topologies" minOccurs="0">
102 <xs:element name="topology" minOccurs="0" maxOccurs="unbounded">
106 This is the model of abstract topology which contains only Network
107 Nodes and Network Links. Each topology MUST be identified by
108 unique topology-id for reason that the store could contain many
115 <xs:element name="topology-id" type="topology-id">
119 It is presumed that datastore will contain many topologies. To
120 distinguish between topologies it is vital to have UNIQUE
126 <xs:element name="types" minOccurs="0">
130 The container for definition of topology types.
131 The augmenting modules should add empty optional leaf
132 to this container to signalize topology type.
138 <xs:any minOccurs="0" maxOccurs="unbounded"
139 namespace="##other" processContents="lax"/>
143 <xs:element name="nodes" minOccurs="0">
146 <xs:element name="node" minOccurs="0" maxOccurs="unbounded">
149 The list of network nodes defined for topology.
154 <xs:element name="node-id" type="node-id">
157 The Topology identifier of network-node.
161 <xs:element name="supporting-ne" minOccurs="0" type="network-element-ref">
163 <xs:element name="termination-points" minOccurs="0">
166 <xs:element name="termination-point" minOccurs="0" maxOccurs="unbounded">
169 <xs:element name="tp-id" type="tp-id">
171 <xs:any minOccurs="0" maxOccurs="unbounded"
172 namespace="##other" processContents="lax"/>
176 <xs:any minOccurs="0" maxOccurs="unbounded"
177 namespace="##other" processContents="lax"/>
180 <xs:key name="key_termination-points_node_nodes_topology_topologies_network_termination-point">
181 <xs:selector xpath="topos:termination-point"/>
182 <xs:field xpath="topos:tp-id"/>
185 <xs:any minOccurs="0" maxOccurs="unbounded"
186 namespace="##other" processContents="lax"/>
190 <xs:any minOccurs="0" maxOccurs="unbounded"
191 namespace="##other" processContents="lax"/>
194 <xs:key name="key_nodes_topology_topologies_network_node">
195 <xs:selector xpath="topos:node"/>
196 <xs:field xpath="topos:node-id"/>
199 <xs:element name="links" minOccurs="0">
202 <xs:element name="link" minOccurs="0" maxOccurs="unbounded">
206 The Network Link which is defined by Local (Source) and
207 Remote (Destination) Network Nodes. Every link MUST be
208 defined either by identifier and his local and remote
209 Network Nodes (in real applications it is common that many
210 links are originated from one node and end up in same
211 remote node). To ensure that we would always know to
212 distinguish between links, every link SHOULD have
219 <xs:element name="link-id" type="link-id">
221 <xs:element name="source" minOccurs="0">
224 <xs:element name="source-node" minOccurs="0" type="node-ref">
227 Source node identifier.
231 <xs:element name="source-tp" minOccurs="0" type="tp-ref">
233 <xs:any minOccurs="0" maxOccurs="unbounded"
234 namespace="##other" processContents="lax"/>
238 <xs:element name="destination" minOccurs="0">
241 <xs:element name="dest-node" minOccurs="0" type="node-ref">
244 Destination node identifier.
248 <xs:element name="dest-tp" minOccurs="0" type="tp-ref">
250 <xs:any minOccurs="0" maxOccurs="unbounded"
251 namespace="##other" processContents="lax"/>
255 <xs:any minOccurs="0" maxOccurs="unbounded"
256 namespace="##other" processContents="lax"/>
260 <xs:any minOccurs="0" maxOccurs="unbounded"
261 namespace="##other" processContents="lax"/>
264 <xs:key name="key_links_topology_topologies_network_link">
265 <xs:selector xpath="topos:link"/>
266 <xs:field xpath="topos:link-id"/>
269 <xs:any minOccurs="0" maxOccurs="unbounded"
270 namespace="##other" processContents="lax"/>
274 <xs:any minOccurs="0" maxOccurs="unbounded"
275 namespace="##other" processContents="lax"/>
278 <xs:key name="key_topologies_network_topology">
279 <xs:selector xpath="topos:topology"/>
280 <xs:field xpath="topos:topology-id"/>
283 <xs:element name="network-elements" minOccurs="0">
286 <xs:element name="network-element" minOccurs="0" maxOccurs="unbounded">
289 <xs:element name="element-id" type="element-id">
291 <xs:any minOccurs="0" maxOccurs="unbounded"
292 namespace="##other" processContents="lax"/>
296 <xs:any minOccurs="0" maxOccurs="unbounded"
297 namespace="##other" processContents="lax"/>
300 <xs:key name="key_network-elements_network_network-element">
301 <xs:selector xpath="topos:network-element"/>
302 <xs:field xpath="topos:element-id"/>
305 <xs:any minOccurs="0" maxOccurs="unbounded"
306 namespace="##other" processContents="lax"/>