1 module odl-pcep-sync-optimizations {
3 namespace "urn:opendaylight:params:xml:ns:yang:controller:pcep:sync:optimizations";
4 prefix "sync-optimizations";
6 import pcep-types { prefix pcep; revision-date 2018-11-09; }
7 import pcep-message { prefix msg; revision-date 2018-11-09; }
8 import network-topology { prefix nt; revision-date 2013-10-21; }
9 import network-topology-pcep { prefix topo; revision-date 2022-07-30; }
10 import odl-pcep-ietf-stateful { prefix stateful; revision-date 2020-07-20; }
11 import yang-ext { prefix ext; }
13 organization "Pantheon Technologies";
14 contact "Iveta Halanova <iveta.halanova@pantheon.sk>";
17 "This module contains the data model of PCEP extensions defined
18 in RFC8232: 'Optimizations of Label Switched Path State Synchronization
19 Procedures for a Stateful PCE'.
21 Copyright (c)2015 Cisco Systems, Inc. All rights reserved.
23 This program and the accompanying materials are made available
24 under the terms of the Eclipse Public License v1.0 which
25 accompanies this distribution, and is available at
26 http://www.eclipse.org/legal/epl-v10.html";
28 revision "2020-07-20" {
29 description "Update to Path State Synchronization Procedures RFC";
30 reference "RFC8232: https://tools.ietf.org/html/rfc8232";
33 revision "2018-11-09" {
40 description "Update network-topology-pcep revision";
43 revision "2015-07-14" {
46 reference "https://tools.ietf.org/html/draft-ietf-pce-stateful-sync-optimizations-02";
49 grouping sync-optimizations-capability-tlv {
50 reference "http://tools.ietf.org/html/rfc8232#section-4.1";
51 leaf triggered-initial-sync {
55 leaf delta-lsp-sync-capability {
59 leaf triggered-resync {
63 leaf include-db-version {
69 grouping lsp-db-version-tlv {
70 container lsp-db-version {
72 leaf lsp-db-version-value {
78 grouping speaker-entity-id {
79 leaf speaker-entity-id-value {
84 grouping speaker-entity-id-tlv {
85 container speaker-entity-id {
87 uses speaker-entity-id;
91 augment "/msg:open/msg:open-message/msg:open/msg:tlvs/stateful:stateful" {
92 uses sync-optimizations-capability-tlv;
95 augment "/msg:open/msg:open-message/msg:open/msg:tlvs" {
96 ext:augment-identifier tlvs3;
97 uses lsp-db-version-tlv;
98 uses speaker-entity-id-tlv;
101 augment "/msg:pcerr/msg:pcerr-message/msg:error-type/msg:session-case/msg:session/msg:open/msg:tlvs" {
102 ext:augment-identifier tlvs4;
103 uses lsp-db-version-tlv;
104 uses speaker-entity-id-tlv;
107 augment "/nt:network-topology/nt:topology/nt:node/topo:path-computation-client" {
108 uses lsp-db-version-tlv;
111 augment "/nt:network-topology/nt:topology/nt:node/topo:path-computation-client/topo:reported-lsp/topo:path/stateful:lsp/stateful:tlvs" {
112 ext:augment-identifier tlvs2;
113 uses lsp-db-version-tlv;
116 augment "/nt:network-topology/nt:topology/nt:node/topo:path-computation-client/topo:stateful-tlv/stateful:stateful" {
117 uses sync-optimizations-capability-tlv;
120 augment "/stateful:pcrpt/stateful:pcrpt-message/stateful:reports/stateful:lsp/stateful:tlvs" {
121 ext:augment-identifier tlvs5;
122 uses lsp-db-version-tlv;
125 augment "/stateful:pcupd/stateful:pcupd-message/stateful:updates/stateful:lsp/stateful:tlvs" {
126 ext:augment-identifier tlvs6;
127 uses lsp-db-version-tlv;
130 augment "/topo:add-lsp/topo:input/topo:arguments/stateful:lsp/stateful:tlvs" {
131 ext:augment-identifier tlvs1;
132 uses lsp-db-version-tlv;
135 augment "/topo:update-lsp/topo:input/topo:arguments/stateful:lsp/stateful:tlvs" {
136 ext:augment-identifier tlvs7;
137 uses lsp-db-version-tlv;