aboutsummaryrefslogtreecommitdiffstats
path: root/upstream/odl-aaa-moon/aaa/aaa-authn-mdsal-store/aaa-authn-mdsal-store-impl/src/main/yang/aaa-authn-mdsal-store-cfg.yang
blob: eac344b83ceb62b5cd97d5d9a10e08beb10fc5a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
module aaa-authn-mdsal-store-cfg {

    yang-version 1;
    namespace "config:aaa:authn:mdsal:store";
    prefix "aaa-authn-store-cfg";

    import config { prefix config; revision-date 2013-04-05; }
    import rpc-context { prefix rpcx; revision-date 2013-06-17; }
    import opendaylight-md-sal-binding { prefix mdsal; revision-date 2013-10-28; }
    import opendaylight-md-sal-dom {prefix dom;}


    description
        "This module contains the base YANG definitions for
        AuthN MD-SAL backed data cache implementation.";

    revision "2014-10-31" {
        description
            "Initial revision.";
    }

    identity token-store-service{
           base config:service-type;
           config:java-class "org.opendaylight.aaa.api.TokenStore";
    }


    // This is the definition of the service implementation as a module identity.
    identity aaa-authn-mdsal-store {
            base config:module-type;
            // Specifies the prefix for generated java classes.
            config:java-name-prefix AuthNStore;
            config:provided-service token-store-service;
    }

    // Augments the 'configuration' choice node under modules/module.

    augment "/config:modules/config:module/config:configuration" {
        case aaa-authn-mdsal-store {
            when "/config:modules/config:module/config:type = 'aaa-authn-mdsal-store'";

    //Defines reference to the Bundle context and MD-SAL data broker
            container dom-broker {
               uses config:service-ref {
                   refine type {
                       mandatory true;
                       config:required-identity dom:dom-broker-osgi-registry;
                   }
               }
           }
           container data-broker {
               uses config:service-ref {
                   refine type {
                       mandatory true;
                       config:required-identity mdsal:binding-async-data-broker;

                   }
               }
           }

           leaf timeToLive {
             description "Time to live for tokens. When set to 0 = never expire";
             type uint64;
             default 360000;
           }
           leaf timeToWait {
             description "Time to wait for future from data store. 10 by default = never expire";
             type uint16;
             default 10;
           }
           leaf password {
             description "Encryption password for the Store";
             type string;
           }
       }
    }
}