dd2116eed29100cc041dc4247fec658cfadb1b66
[aaa.git] / aaa-shiro / impl / src / main / yang / aaa-app-config.yang
1 module aaa-app-config {
2     yang-version 1;
3     namespace "urn:opendaylight:aaa:app:config";
4     prefix "aaa-app-config";
5     organization "OpenDaylight";
6
7     contact "ryandgoulding@gmail.com, m.elserngawy@gmail.com";
8
9     revision "2017-06-19" {
10         description "aaa-app-config is used to manipulate aspects of AAA clustered-app-config.";
11     }
12
13     grouping string-pair {
14         description "Used to store string key/value pairs.";
15         leaf pair-key {
16             type string;
17             description "The key.";
18         }
19         leaf pair-value {
20             type string;
21             description "The value.";
22         }
23     }
24
25     container shiro-configuration {
26         description "AAA shiro related configuration.";
27         list main {
28             key "pair-key";
29             uses string-pair;
30             ordered-by user;
31             description "The main section of shiro.ini.";
32         }
33
34         list urls {
35             key "pair-key";
36             uses string-pair;
37             ordered-by user;
38             description "The urls section of shiro.ini.";
39         }
40     }
41
42     container datastore-config {
43         leaf store {
44             description "Available data store types.";
45             type enumeration {
46                 enum h2-data-store {
47                     description "H2 DataStore.";
48                 }
49             }
50         }
51         leaf time-to-live {
52             description "Time to live for tokens in second.";
53              type uint64;
54              default 36000;
55          }
56          leaf time-to-wait {
57              description "Time to wait for tokens in second.";
58              type uint64;
59              default 3600;
60          }
61     }
62
63 }