Add missing copyrights
[bgpcep.git] / pcep / impl / src / main / yang / pcep-app-config.yang
1 module pcep-app-config {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:controller:pcep:app-config";
4     prefix "pcep-app-config";
5
6     description
7       "Configuration for the PCEP implementation.";
8
9     revision "2016-07-07" {
10         description
11             "Initial revision.
12
13             Copyright (c) 2016 Brocade Communications Systems, Inc. All rights reserved.
14
15             This program and the accompanying materials are made available
16             under the terms of the Eclipse Public License v1.0 which
17             accompanies this distribution, and is available at
18             http://www.eclipse.org/legal/epl-v10.html";
19     }
20
21     container pcep-session-config {
22         leaf dead-timer-value {
23             type uint16;
24             default 120;
25         }
26
27         leaf keep-alive-timer-value {
28             type uint16;
29             default 30;
30         }
31     }
32
33     typedef path-type {
34         type enumeration {
35             enum "PATH";
36             enum "CLASSPATH";
37         }
38     }
39
40     typedef store-type {
41         type enumeration {
42             enum "JKS";
43             enum "PKCS12";
44         }
45     }
46
47     container pcep-dispatcher-config {
48         leaf max-unknown-messages {
49             type uint16 {
50                 range "1..max";
51             }
52             default 5;
53         }
54
55         container tls {
56             presence true;
57             leaf keystore {
58                 description "keystore location";
59                 type string;
60                 mandatory true;
61             }
62             leaf keystore-type {
63                 description "keystore type (JKS or PKCS12)";
64                 type store-type;
65                 mandatory true;
66             }
67             leaf keystore-path-type {
68                 description "keystore path type (CLASSPATH or PATH)";
69                 type path-type;
70                 mandatory true;
71             }
72             leaf keystore-password {
73                 description "password protecting keystore";
74                 type string;
75                 mandatory true;
76             }
77             leaf certificate-password {
78                 description "password protecting certificate";
79                 type string;
80                 mandatory true;
81             }
82             leaf truststore {
83                 description "truststore location";
84                 type string;
85                 mandatory true;
86             }
87             leaf truststore-type {
88                 description "truststore type (JKS or PKCS12)";
89                 type store-type;
90                 mandatory true;
91             }
92             leaf truststore-path-type {
93                 description "truststore path type (CLASSPATH or PATH)";
94                 type path-type;
95                 mandatory true;
96             }
97             leaf truststore-password {
98                 description "password protecting truststore";
99                 type string;
100                 mandatory true;
101             }
102         }
103     }
104 }