eac344b83ceb62b5cd97d5d9a10e08beb10fc5a5
[moon.git] /
1 module aaa-authn-mdsal-store-cfg {
2
3     yang-version 1;
4     namespace "config:aaa:authn:mdsal:store";
5     prefix "aaa-authn-store-cfg";
6
7     import config { prefix config; revision-date 2013-04-05; }
8     import rpc-context { prefix rpcx; revision-date 2013-06-17; }
9     import opendaylight-md-sal-binding { prefix mdsal; revision-date 2013-10-28; }
10     import opendaylight-md-sal-dom {prefix dom;}
11
12
13     description
14         "This module contains the base YANG definitions for
15         AuthN MD-SAL backed data cache implementation.";
16
17     revision "2014-10-31" {
18         description
19             "Initial revision.";
20     }
21
22     identity token-store-service{
23            base config:service-type;
24            config:java-class "org.opendaylight.aaa.api.TokenStore";
25     }
26
27
28     // This is the definition of the service implementation as a module identity.
29     identity aaa-authn-mdsal-store {
30             base config:module-type;
31             // Specifies the prefix for generated java classes.
32             config:java-name-prefix AuthNStore;
33             config:provided-service token-store-service;
34     }
35
36     // Augments the 'configuration' choice node under modules/module.
37
38     augment "/config:modules/config:module/config:configuration" {
39         case aaa-authn-mdsal-store {
40             when "/config:modules/config:module/config:type = 'aaa-authn-mdsal-store'";
41
42     //Defines reference to the Bundle context and MD-SAL data broker
43             container dom-broker {
44                uses config:service-ref {
45                    refine type {
46                        mandatory true;
47                        config:required-identity dom:dom-broker-osgi-registry;
48                    }
49                }
50            }
51            container data-broker {
52                uses config:service-ref {
53                    refine type {
54                        mandatory true;
55                        config:required-identity mdsal:binding-async-data-broker;
56
57                    }
58                }
59            }
60
61            leaf timeToLive {
62              description "Time to live for tokens. When set to 0 = never expire";
63              type uint64;
64              default 360000;
65            }
66            leaf timeToWait {
67              description "Time to wait for future from data store. 10 by default = never expire";
68              type uint16;
69              default 10;
70            }
71            leaf password {
72              description "Encryption password for the Store";
73              type string;
74            }
75        }
76     }
77 }