01b3bdd7ae97d1357c63f7f10f5ea67e7a6964ad
[bgpcep.git] / pcep / api / src / main / yang / pcep-config.yang
1 // vi: set smarttab et sw=4 tabstop=4:
2 module pcep-config {
3     yang-version 1.1;
4     namespace "urn:opendaylight:params:xml:ns:yang:pcep:config";
5     prefix pd-config;
6
7     import ietf-inet-types { prefix inet; revision-date 2013-07-15; }
8     import rfc2385 { prefix rfc2385; revision-date 2016-03-24; }
9
10     organization "AT&T Services, Inc.";
11     contact "Claudio D. Gasparini <claudio.gasparini@pantheon.sk>";
12
13     description
14         "This module contains the base YANG definitions for
15          PCEP Dispatcher service config.
16          Copyright (c)2017 AT&T Services, Inc. All rights reserved.;
17
18          This program and the accompanying materials are made available
19          under the terms of the Eclipse Public License v1.0 which
20          accompanies this distribution, and is available at
21          http://www.eclipse.org/legal/epl-v10.html";
22
23     revision "2017-10-25" {
24         description
25             "Initial revision.";
26     }
27
28     grouping pcep-config {
29         container session-config {
30             description "PCEP topology config";
31
32             leaf rpc-timeout {
33                 type int16;
34                 default 30;
35                 units seconds;
36             }
37
38             leaf listen-address {
39                 type inet:ip-address;
40                 default "0.0.0.0";
41             }
42
43             leaf listen-port {
44                 type inet:port-number;
45                 default 4189;
46             }
47
48             leaf dead-timer-value {
49                 type uint16;
50                 default 120;
51                 units seconds;
52             }
53
54             leaf keep-alive-timer-value {
55                 type uint16;
56                 default 30;
57                 units seconds;
58             }
59         }
60     }
61
62     grouping pcep-node-config {
63         description "PCEP node config";
64
65         container session-config {
66             leaf password {
67                 type rfc2385:rfc2385-key;
68                 description "RFC2385 shared secret";
69             }
70         }
71     }
72 }