Introduce ShiroIni
[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   grouping shiro.ini {
26     description "Basic structure of generated shiro.ini";
27
28     list main {
29       key "pair-key";
30       uses string-pair;
31       ordered-by user;
32       description "The main section of shiro.ini.";
33     }
34
35     list urls {
36       key "pair-key";
37       uses string-pair;
38       ordered-by user;
39       description "The urls section of shiro.ini.";
40     }
41   }
42
43   container shiro-configuration {
44     description "AAA shiro related configuration.";
45     uses shiro.ini;
46   }
47
48   container datastore-config {
49     leaf store {
50       description "Available data store types.";
51       type enumeration {
52         enum h2-data-store {
53           description "H2 DataStore.";
54         }
55       }
56     }
57     leaf time-to-live {
58       description "Time to live for tokens in second.";
59       type uint64;
60       default 36000;
61     }
62     leaf time-to-wait {
63       description "Time to wait for tokens in second.";
64       type uint64;
65       default 3600;
66     }
67   }
68 }