BUG-139: Implement PCEP state synchronization avoidance
[bgpcep.git] / pcep / segment-routing / src / main / yang / odl-pcep-segment-routing-cfg.yang
1 // vi: set smarttab et sw=4 tabstop=4:
2 module odl-pcep-segment-routing-cfg {
3     yang-version 1;
4     namespace "urn:opendaylight:params:xml:ns:yang:controller:pcep:sr:cfg";
5     prefix "pcep-sr";
6
7     import config { prefix config; revision-date 2013-04-05; }
8     import odl-pcep-api-cfg { prefix pcep; revision-date 2013-04-09; }
9     import odl-pcep-spi-cfg { prefix spi; revision-date 2013-11-15; }
10     import odl-pcep-ietf-stateful07-cfg { prefix pcep-stateful07; revision-date 2015-07-14; }
11
12     organization "Cisco Systems, Inc.";
13
14     contact "Milos Fabian <milfabia@cisco.com>";
15
16     description
17         "This module contains the data model of PCEP Extensions for Segment Routing,
18         draft-ietf-pce-segment-routing-00.
19
20         Copyright (c)2014 Cisco Systems, Inc. All rights reserved.
21
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";
26
27     revision "2014-06-09" {
28         description
29             "Initial revision.";
30     }
31
32     identity pcep-parser-segment-routing {
33         base config:module-type;
34         config:provided-service spi:extension;
35         config:java-name-prefix SegmentRoutingPCEPParser;
36     }
37
38     augment "/config:modules/config:module/config:configuration" {
39         case pcep-parser-segment-routing {
40             when "/config:modules/config:module/config:type = 'pcep-parser-segment-routing'";
41         }
42     }
43
44     identity pcep-session-proposal-factory-sr {
45         base config:module-type;
46         config:java-name-prefix "SrPCEPSessionProposalFactory";
47         config:provided-service pcep:pcep-session-proposal-factory;
48     }
49
50     augment "/config:modules/config:module/config:configuration" {
51         case pcep-session-proposal-factory-sr {
52             when "/config:modules/config:module/config:type = 'pcep-session-proposal-factory-sr'";
53             uses pcep-stateful07:stateful-capabilities;
54             leaf sr-capable {
55                 type boolean;
56                 default true;
57             }
58         }
59     }
60 }
61