summaryrefslogtreecommitdiffstats
path: root/v3po/impl/src/main/yang/v3po-impl.yang
blob: 2e113e566336570ecf8ef584161b217fe8ed2758 (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
module v3po-impl {
    yang-version 1;
    namespace "urn:opendaylight:params:xml:ns:yang:v3po:impl";
    prefix "v3po-impl";

    import config { prefix config; revision-date 2013-04-05; }
    import opendaylight-md-sal-binding { prefix md-sal-binding; revision-date 2013-10-28;}
    import opendaylight-md-sal-dom {prefix dom;}

    description
        "Service definition for v3po project";

    revision "2014-12-10" {
        description
            "Initial revision";
    }

    identity v3po {
        base config:module-type;
        config:java-name-prefix V3po;
    }

    augment "/config:modules/config:module/config:configuration" {
        case v3po {
            when "/config:modules/config:module/config:type = 'v3po'";
            container broker {
                uses config:service-ref {
                    refine type {
                        mandatory true;
                        config:required-identity md-sal-binding:binding-broker-osgi-registry;
                    }
                }
            }

            container dom-broker {
                uses config:service-ref {
                    refine type {
                        mandatory true;
                        config:required-identity dom:dom-broker-osgi-registry;
                    }
                }
            }
        }
    }
}