1 module odl-pcep-ietf-stateful02 {
3 namespace "urn:opendaylight:params:xml:ns:yang:pcep:crabbe:stateful:02";
6 import ietf-inet-types { prefix inet; revision-date 2010-09-24; }
7 import pcep-types { prefix pcep; revision-date 2013-10-05; }
8 import pcep-message { prefix msg; revision-date 2013-10-07; }
9 import rsvp { prefix rsvp; revision-date 2013-08-20; }
10 import network-topology { prefix nt; revision-date 2013-10-21; }
11 import network-topology-pcep { prefix topo; revision-date 2013-10-24; }
12 import topology-tunnel { prefix tt; revision-date 2013-08-19; }
13 import topology-tunnel-pcep { prefix tun; revision-date 2013-08-20; }
14 import topology-tunnel-pcep-programming { prefix ttpp; revision-date 2013-10-30; }
16 organization "Cisco Systems, Inc.";
17 contact "Dana Kutenicsova <dkutenic@cisco.com>";
20 "This module contains the data model of PCEP extensions defined
21 in draft-ietf-pce-stateful-pce.
23 Copyright (c)2014 Cisco Systems, Inc. All rights reserved.
25 This program and the accompanying materials are made available
26 under the terms of the Eclipse Public License v1.0 which
27 accompanies this distribution, and is available at
28 http://www.eclipse.org/legal/epl-v10.html";
30 revision "2014-01-10" {
33 reference "http://tools.ietf.org/html/draft-ietf-pce-stateful-pce-02";
42 typedef symbolic-path-name {
48 typedef node-identifier {
54 grouping lsp-db-version-tlv {
55 description "LSP State Database Version TLV";
56 reference "http://tools.ietf.org/html/draft-ietf-pce-stateful-pce-02#section-7.2.3";
58 container lsp-db-version {
67 grouping node-identifier-tlv {
68 description "Node Identifier TLV";
69 reference "http://tools.ietf.org/html/draft-ietf-pce-stateful-pce-02#section-7.1.3";
71 container node-identifier {
80 grouping rsvp-error-spec-tlv {
81 description "RSVP Error Spec TLV";
82 reference "http://tools.ietf.org/html/draft-ietf-pce-stateful-pce-02#section-7.2.2";
83 container rsvp-error-spec {
85 container rsvp-error {
91 grouping stateful-capability-tlv {
92 description "Stateful PCE Capability TLV";
93 reference "http://tools.ietf.org/html/draft-ietf-pce-stateful-pce-02#section-7.1.1";
98 leaf lsp-update-capability {
102 leaf include-db-version {
109 grouping symbolic-path-name-tlv {
110 description "Symbolic Path Name TLV";
111 reference "http://tools.ietf.org/html/draft-ietf-pce-stateful-pce-02#section-7.2.1";
112 container symbolic-path-name {
115 type symbolic-path-name;
121 grouping lsp-object {
122 description "LSP Object";
123 reference "http://tools.ietf.org/html/draft-ietf-pce-stateful-pce-02#section-7.2";
128 uses lsp-db-version-tlv;
130 uses rsvp-error-spec-tlv;
132 uses symbolic-path-name-tlv;
134 uses pcep:vendor-information-tlvs;
164 grouping pcupd-message {
167 container pcupd-message {
168 description "State Update Request Message";
169 reference "http://tools.ietf.org/html/draft-ietf-pce-stateful-pce-02#section-6.2";
171 uses pcep:message-header;
177 uses pcep:path-definition;
183 grouping pcrpt-message {
186 container pcrpt-message {
187 description "State Report Message";
188 reference "http://tools.ietf.org/html/draft-ietf-pce-stateful-pce-02#section-6.1";
190 uses pcep:message-header;
196 uses pcep:path-definition;
210 augment "/msg:open/msg:open-message/msg:open/msg:tlvs" {
211 uses stateful-capability-tlv;
213 uses node-identifier-tlv;
216 augment "/msg:pcerr/msg:pcerr-message/msg:error-type/msg:session-case/msg:session/msg:open/msg:tlvs" {
217 uses stateful-capability-tlv;
219 uses node-identifier-tlv;
222 augment "/msg:pcreq/msg:pcreq-message/msg:requests/msg:segment-computation/msg:p2p" {
226 augment "/msg:pcrep/msg:pcrep-message/msg:replies" {
230 augment "/msg:pcreq/msg:pcreq-message/msg:requests/msg:segment-computation/msg:p2p/msg:lspa/msg:tlvs" {
231 uses symbolic-path-name-tlv;
234 augment "/nt:network-topology/nt:topology/nt:node/topo:path-computation-client/topo:reported-lsp" {
238 augment "/nt:network-topology/nt:topology/nt:node/topo:path-computation-client/topo:stateful-tlv" {
239 uses stateful-capability-tlv;
242 augment "/topo:ensure-lsp-operational/topo:input/topo:arguments" {
248 augment "/topo:update-lsp/topo:input/topo:arguments" {
254 typedef administrative-status {
259 reference "https://tools.ietf.org/html/draft-ietf-pce-stateful-pce-02#section-7.2";
262 grouping cfg-attributes {
263 leaf administrative-status {
264 type administrative-status;
268 grouping oper-attributes {
269 leaf operational-status {
275 augment "/nt:network-topology/nt:topology/nt:link" {
276 when "../../tunnel-types/pcep-tunnel";
279 uses oper-attributes;
282 augment "/nt:network-topology/nt:topology/tt:paths" {
283 when "../../tunnel-types/pcep-tunnel";
286 uses oper-attributes;
289 augment "/ttpp:pcep-create-p2p-tunnel/ttpp:input" {
293 augment "/ttpp:pcep-update-tunnel/ttpp:input" {