f7beace5f4182d2d8b11cbd45dc93bea71debe2c
[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;
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 2022-03-28 {
24         description "Add ted-name key";
25     }
26
27     revision 2020-01-20 {
28         description "Update to use -no-zone-adresses";
29     }
30
31     revision "2017-10-25" {
32         description
33             "Initial revision.";
34     }
35
36     grouping pcep-config {
37         container session-config {
38             description "PCEP topology config";
39
40             leaf rpc-timeout {
41                 type int16;
42                 default 30;
43                 units seconds;
44             }
45
46             leaf listen-address {
47                 type inet:ip-address-no-zone;
48                 default "0.0.0.0";
49             }
50
51             leaf listen-port {
52                 type inet:port-number;
53                 default 4189;
54             }
55
56             leaf dead-timer-value {
57                 type uint16;
58                 default 120;
59                 units seconds;
60             }
61
62             leaf keep-alive-timer-value {
63                 type uint16;
64                 default 30;
65                 units seconds;
66             }
67
68             leaf ted-name {
69                 type string;
70                 default "example-linkstate-topology";
71             }
72         }
73     }
74
75     grouping pcep-node-config {
76         description "PCEP node config";
77
78         container session-config {
79             leaf password {
80                 type rfc2385:rfc2385-key;
81                 description "RFC2385 shared secret";
82             }
83         }
84     }
85 }