3 namespace "urn:opendaylight:params:xml:ns:yang:graph";
6 import ietf-inet-types { prefix inet; revision-date 2013-07-15; }
7 import odl-uint24 { prefix uint24; }
10 contact "Philippe Niger <philippe.niger@orange.com>";
13 "This module contains the graph data model for network topology and datastore
14 used in the Path Computation Algorithms.
16 Copyright (c)2019 Orange. All rights reserved.
18 This program and the accompanying materials are made available
19 under the terms of the Eclipse Public License v1.0 which
20 accompanies this distribution, and is available at
21 http://www.eclipse.org/legal/epl-v10.html";
23 revision "2019-11-25" {
30 description "Link delay is in the range 0 - 16.777215 seconds. Larger value is also encoded with Max value.";
36 description "Link loss is in the range 0 - 50.331642% (= 2^24 - 2). Larger value is also encoded with Max value.";
41 typedef decimal-bandwidth {
42 description "Bandwidth in decimal format for easy comparison";
49 grouping edge-attributes {
50 description "Attributes associated with the Edge";
51 reference "RFC 3630 & RFC 7471, RFC 3784 & RFC8570: OSPF / IS-IS Traffic Engineering (TE) & Extended Metrics";
54 description "Standard Metric from the routing protocol";
58 description "Traffic Engineering Metric";
62 description "Administrative group or color of the link";
71 leaf local-identifier {
74 leaf remote-identifier {
77 leaf max-link-bandwidth {
78 description "Maximum bandwidth that can be use";
79 type decimal-bandwidth;
81 leaf max-resv-link-bandwidth {
82 description "Maximum amount of bandwidth that can be reserved";
83 type decimal-bandwidth;
85 list unreserved-bandwidth {
86 description "Unreserved bandwidth for 0-7 class type";
96 description "Unreserved bandwidth for this class type";
97 type decimal-bandwidth;
101 description "Unidirectional Delay.";
104 container min-max-delay {
105 description "Min/Max Unidirectional Delay";
114 description "Unidirectional Delay Variation";
118 description "Unidirectional Loss";
121 leaf residual-bandwidth {
122 description "Unidirectional Residual Bandwidth";
123 type decimal-bandwidth;
125 leaf available-bandwidth {
126 description "Unidirectional Available Bandwidth";
127 type decimal-bandwidth;
129 leaf utilized-bandwidth {
130 description "Unidirectional Utilized Bandwidth";
131 type decimal-bandwidth;
134 description "Segment Routing Adjacency Identifier";
138 leaf backup-adj-sid {
139 description "Segment Routing Backup Adjacency Identifier";
144 description "List of Shared Risk Link Group Attributes";
150 description "Unidirectional Edge (link) representation for the network topology";
155 leaf local-vertex-id {
156 description "Vertex identifier where the Edge is attached";
159 leaf remote-vertex-id {
160 description "Vertex identifier where the Edge is going to";
164 description "Edge name";
167 container edge-attributes {
168 description "All attributes associated to the Edge";
169 uses edge-attributes;
174 description "Segment Routing Global Block: lower-bound + range-size";
176 description "Lower bound of label range in SRGB. Unit MPLS label";
180 description "Label range size in SRGB. Unit MPLS label";
186 description "Vertex (node) representation for the network topology";
188 description "Identifier of the Vertex";
193 description "Name of the Vertex when known";
197 description "Global unique IP Trafic Engineering Router ID";
198 type inet:ip-address;
221 description "Segment Routing Global Block";
225 description "AS Number";
232 description "IP (v4 or v6) Prefix.";
237 description "Segment Routing prefix Identifier. Unit MPLS label";
241 description "Prefix is a Node Segment Routing Identifier (Node-SID)";
245 description "Reference to the Vertex where the prefix is attached";
250 container graph-topology {
252 description "Graph representation of the Network Topology";
258 description "Network domain scope: intra or inter domain";
267 default intra-domain;
270 description "AS Number";
274 description "The list of Vertices defined for the Graph.";
279 description "The list of Edges defined for the Graph.";
284 description "The list of prefixes for the Graph.";