Bug-5536: When using clustering with replication, linkstate topology of non-leaders...
[bgpcep.git] / pcep / ietf-stateful07 / src / main / yang / odl-pcep-ietf-stateful07-cfg.yang
1 // vi: set smarttab et sw=4 tabstop=4:
2 module odl-pcep-ietf-stateful07-cfg {
3     yang-version 1;
4     namespace "urn:opendaylight:params:xml:ns:yang:controller:pcep:stateful07:cfg";
5     prefix "pcep-stateful07";
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 "Robert Varga <rovarga@cisco.com>";
14
15     description
16         "This module contains the base YANG definitions for
17          draft-ietf-pce-stateful-pce-07 extensions.
18
19         Copyright (c)2013 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 "2015-07-14" {
27         description
28             "Extended stateful capabilities.";
29     }
30
31     revision "2014-02-21" {
32         description
33             "Updated revision dates for imports.";
34     }
35
36     identity stateful-capability {
37         base config:module-type;
38         config:java-name-prefix "PCEPStatefulCapability";
39         config:provided-service pcep:pcep-capability;
40     }
41
42     grouping stateful-capabilities {
43         leaf dead-timer-value {
44             type uint8;
45             default 120;
46         }
47
48         leaf keep-alive-timer-value {
49             type uint8;
50             default 30;
51         }
52
53         leaf initiated {
54             type boolean;
55             default true;
56         }
57
58         leaf stateful {
59             type boolean;
60             default true;
61         }
62
63         leaf active {
64             type boolean;
65             default true;
66         }
67
68         leaf triggered-initial-sync {
69             type boolean;
70             default true;
71         }
72
73         leaf delta-lsp-sync-capability {
74             type boolean;
75             default true;
76         }
77
78         leaf triggered-resync {
79             type boolean;
80             default true;
81         }
82
83         leaf include-db-version {
84             type boolean;
85             default true;
86         }
87     }
88
89     augment "/config:modules/config:module/config:configuration" {
90         case stateful-capability {
91             when "/config:modules/config:module/config:type = 'stateful-capability'";
92             uses stateful-capabilities;
93         }
94     }
95 }
96