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 2020-01-20; }
10 import odl-pcep-ietf-stateful { prefix stateful; revision-date 2020-07-20; }
12 organization "Pantheon Technologies";
13 contact "Iveta Halanova <iveta.halanova@pantheon.sk>";
16 "This module contains the data model of PCEP extensions defined
17 in RFC8232: 'Optimizations of Label Switched Path State Synchronization
18 Procedures for a Stateful PCE'.
20 Copyright (c)2015 Cisco Systems, Inc. All rights reserved.
22 This program and the accompanying materials are made available
23 under the terms of the Eclipse Public License v1.0 which
24 accompanies this distribution, and is available at
25 http://www.eclipse.org/legal/epl-v10.html";
27 revision "2020-07-20" {
28 description "Update to Path State Synchronization Procedures RFC";
29 reference "RFC8232: https://tools.ietf.org/html/rfc8232";
32 revision "2018-11-09" {
39 description "Update network-topology-pcep revision";
42 revision "2015-07-14" {
45 reference "https://tools.ietf.org/html/draft-ietf-pce-stateful-sync-optimizations-02";
48 grouping sync-optimizations-capability-tlv {
49 reference "http://tools.ietf.org/html/rfc8232#section-4.1";
50 leaf triggered-initial-sync {
54 leaf delta-lsp-sync-capability {
58 leaf triggered-resync {
62 leaf include-db-version {
68 grouping lsp-db-version-tlv {
69 container lsp-db-version {
71 leaf lsp-db-version-value {
77 grouping speaker-entity-id {
78 leaf speaker-entity-id-value {
83 grouping speaker-entity-id-tlv {
84 container speaker-entity-id {
86 uses speaker-entity-id;
90 augment "/msg:open/msg:open-message/msg:open/msg:tlvs/stateful:stateful" {
91 uses sync-optimizations-capability-tlv;
94 augment "/nt:network-topology/nt:topology/nt:node/topo:path-computation-client/topo:stateful-tlv/stateful:stateful" {
95 uses sync-optimizations-capability-tlv;
98 augment "/msg:open/msg:open-message/msg:open/msg:tlvs" {
99 uses lsp-db-version-tlv;
100 uses speaker-entity-id-tlv;
103 augment "/stateful:pcupd/stateful:pcupd-message/stateful:updates/stateful:lsp/stateful:tlvs" {
104 uses lsp-db-version-tlv;
107 augment "/stateful:pcrpt/stateful:pcrpt-message/stateful:reports/stateful:lsp/stateful:tlvs" {
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 uses lsp-db-version-tlv;
115 augment "/topo:add-lsp/topo:input/topo:arguments/stateful:lsp/stateful:tlvs" {
116 uses lsp-db-version-tlv;
119 augment "/topo:update-lsp/topo:input/topo:arguments/stateful:lsp/stateful:tlvs" {
120 uses lsp-db-version-tlv;
123 augment "/msg:pcerr/msg:pcerr-message/msg:error-type/msg:session-case/msg:session/msg:open/msg:tlvs" {
124 uses lsp-db-version-tlv;
125 uses speaker-entity-id-tlv;
128 augment "/nt:network-topology/nt:topology/nt:node/topo:path-computation-client" {
129 uses lsp-db-version-tlv;