Bug 2803 - Update SR
[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
11     organization "Cisco Systems, Inc.";
12
13     contact "Milos Fabian <milfabia@cisco.com>";
14
15     description
16         "This module contains the data model of PCEP Extensions for Segment Routing,
17         draft-ietf-pce-segment-routing-00.
18
19         Copyright (c)2014 Cisco Systems, Inc. All rights reserved.
20
21         This program and the accompanying materials are made available
22         under the terms of the Eclipse Public License v1.0 which
23         accompanies this distribution, and is available at
24         http://www.eclipse.org/legal/epl-v10.html";
25
26     revision "2014-06-09" {
27         description
28             "Initial revision.";
29     }
30
31     identity pcep-parser-segment-routing {
32         base config:module-type;
33         config:provided-service spi:extension;
34         config:java-name-prefix SegmentRoutingPCEPParser;
35     }
36
37     augment "/config:modules/config:module/config:configuration" {
38         case pcep-parser-segment-routing {
39             when "/config:modules/config:module/config:type = 'pcep-parser-segment-routing'";
40         }
41     }
42
43     identity pcep-session-proposal-factory-sr {
44         base config:module-type;
45         config:java-name-prefix "SrPCEPSessionProposalFactory";
46         config:provided-service pcep:pcep-session-proposal-factory;
47     }
48
49     augment "/config:modules/config:module/config:configuration" {
50         case pcep-session-proposal-factory-sr {
51             when "/config:modules/config:module/config:type = 'pcep-session-proposal-factory-sr'";
52
53             leaf dead-timer-value {
54                 type uint8;
55                 default 120;
56             }
57
58             leaf keep-alive-timer-value {
59                 type uint8;
60                 default 30;
61             }
62
63             leaf initiated {
64                 type boolean;
65                 default true;
66             }
67
68             leaf stateful {
69                 type boolean;
70                 default true;
71             }
72
73             leaf active {
74                 type boolean;
75                 default true;
76             }
77
78             leaf sr-capable {
79                 type boolean;
80                 default true;
81             }
82         }
83     }
84 }
85