1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
5 This program and the accompanying materials are made available under the
6 terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 and is available at http://www.eclipse.org/legal/epl-v10.html
9 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
10 xmlns:yin="urn:ietf:params:xml:schema:yang:yin:1"
11 targetNamespace="urn:opendaylight:controller:network"
12 xmlns="urn:opendaylight:controller:network"
13 elementFormDefault="qualified"
14 attributeFormDefault="unqualified"
17 xmlns:topos="urn:opendaylight:controller:network"
18 xmlns:inet="urn:ietf:params:xml:ns:yang:ietf-inet-types">
20 <xs:import namespace="urn:ietf:params:xml:ns:yang:ietf-inet-types"
21 schemaLocation="ietf-inet-types@2010-09-24.xsd"/>
25 This schema was generated from the YANG module controller-network
28 The schema describes an instance document consisting
29 of the entire configuration data store, operational
30 data, rpc operations, and notifications.
31 This schema can thus NOT be used as-is to
32 validate NETCONF PDUs.
37 <!-- YANG typedefs -->
38 <xs:simpleType name="topology-id">
39 <xs:restriction base="xs:string">
42 <xs:simpleType name="node-id">
43 <xs:restriction base="xs:string">
46 <xs:simpleType name="link-id">
47 <xs:restriction base="xs:string">
50 <xs:simpleType name="tp-id">
53 identifier for termination points on a port
57 <xs:restriction base="xs:string">
60 <xs:simpleType name="tp-ref">
61 <xs:restriction base="tp-id">
64 <xs:simpleType name="topology-ref">
67 This type is used for leafs that reference topology identifier instance.
71 <xs:restriction base="topology-id">
74 <xs:simpleType name="node-ref">
77 This type is used for leafs that reference a node instance.
81 <xs:restriction base="node-id">
84 <xs:simpleType name="link-ref">
87 This type is used for leafs that reference a link instance.
91 <xs:restriction base="link-id">
94 <xs:simpleType name="network-element-ref">
95 <xs:restriction base="element-id">
98 <xs:simpleType name="element-id">
99 <xs:restriction base="xs:string">
103 <xs:element name="network">
106 <xs:element name="topologies" minOccurs="0">
109 <xs:element name="topology" minOccurs="0" maxOccurs="unbounded">
113 This is the model of abstract topology which contains only Network
114 Nodes and Network Links. Each topology MUST be identified by
115 unique topology-id for reason that the store could contain many
122 <xs:element name="topology-id" type="topology-id">
126 It is presumed that datastore will contain many topologies. To
127 distinguish between topologies it is vital to have UNIQUE
133 <xs:element name="types" minOccurs="0">
137 The container for definition of topology types.
138 The augmenting modules should add empty optional leaf
139 to this container to signalize topology type.
145 <xs:any minOccurs="0" maxOccurs="unbounded"
146 namespace="##other" processContents="lax"/>
150 <xs:element name="nodes" minOccurs="0">
153 <xs:element name="node" minOccurs="0" maxOccurs="unbounded">
156 The list of network nodes defined for topology.
161 <xs:element name="node-id" type="node-id">
164 The Topology identifier of network-node.
168 <xs:element name="supporting-ne" minOccurs="0" type="network-element-ref">
170 <xs:element name="termination-points" minOccurs="0">
173 <xs:element name="termination-point" minOccurs="0" maxOccurs="unbounded">
176 <xs:element name="tp-id" type="tp-id">
178 <xs:any minOccurs="0" maxOccurs="unbounded"
179 namespace="##other" processContents="lax"/>
183 <xs:any minOccurs="0" maxOccurs="unbounded"
184 namespace="##other" processContents="lax"/>
187 <xs:key name="key_termination-points_node_nodes_topology_topologies_network_termination-point">
188 <xs:selector xpath="topos:termination-point"/>
189 <xs:field xpath="topos:tp-id"/>
192 <xs:any minOccurs="0" maxOccurs="unbounded"
193 namespace="##other" processContents="lax"/>
197 <xs:any minOccurs="0" maxOccurs="unbounded"
198 namespace="##other" processContents="lax"/>
201 <xs:key name="key_nodes_topology_topologies_network_node">
202 <xs:selector xpath="topos:node"/>
203 <xs:field xpath="topos:node-id"/>
206 <xs:element name="links" minOccurs="0">
209 <xs:element name="link" minOccurs="0" maxOccurs="unbounded">
213 The Network Link which is defined by Local (Source) and
214 Remote (Destination) Network Nodes. Every link MUST be
215 defined either by identifier and his local and remote
216 Network Nodes (in real applications it is common that many
217 links are originated from one node and end up in same
218 remote node). To ensure that we would always know to
219 distinguish between links, every link SHOULD have
226 <xs:element name="link-id" type="link-id">
228 <xs:element name="source" minOccurs="0">
231 <xs:element name="source-node" minOccurs="0" type="node-ref">
234 Source node identifier.
238 <xs:element name="source-tp" minOccurs="0" type="tp-ref">
240 <xs:any minOccurs="0" maxOccurs="unbounded"
241 namespace="##other" processContents="lax"/>
245 <xs:element name="destination" minOccurs="0">
248 <xs:element name="dest-node" minOccurs="0" type="node-ref">
251 Destination node identifier.
255 <xs:element name="dest-tp" minOccurs="0" type="tp-ref">
257 <xs:any minOccurs="0" maxOccurs="unbounded"
258 namespace="##other" processContents="lax"/>
262 <xs:any minOccurs="0" maxOccurs="unbounded"
263 namespace="##other" processContents="lax"/>
267 <xs:any minOccurs="0" maxOccurs="unbounded"
268 namespace="##other" processContents="lax"/>
271 <xs:key name="key_links_topology_topologies_network_link">
272 <xs:selector xpath="topos:link"/>
273 <xs:field xpath="topos:link-id"/>
276 <xs:any minOccurs="0" maxOccurs="unbounded"
277 namespace="##other" processContents="lax"/>
281 <xs:any minOccurs="0" maxOccurs="unbounded"
282 namespace="##other" processContents="lax"/>
285 <xs:key name="key_topologies_network_topology">
286 <xs:selector xpath="topos:topology"/>
287 <xs:field xpath="topos:topology-id"/>
290 <xs:element name="network-elements" minOccurs="0">
293 <xs:element name="network-element" minOccurs="0" maxOccurs="unbounded">
296 <xs:element name="element-id" type="element-id">
298 <xs:any minOccurs="0" maxOccurs="unbounded"
299 namespace="##other" processContents="lax"/>
303 <xs:any minOccurs="0" maxOccurs="unbounded"
304 namespace="##other" processContents="lax"/>
307 <xs:key name="key_network-elements_network_network-element">
308 <xs:selector xpath="topos:network-element"/>
309 <xs:field xpath="topos:element-id"/>
312 <xs:any minOccurs="0" maxOccurs="unbounded"
313 namespace="##other" processContents="lax"/>