Merge branch 'master' into topic/ietf_yang
[lispflowmapping.git] / mappingservice / implementation / src / main / yang / mappingservice-shell-impl.yang
1 module mappingservice-shell-impl {
2
3     yang-version 1;
4     namespace "urn:opendaylight:params:xml:ns:yang:controller:config:lfm:mappingservice-shell:impl";
5     prefix "mappingservice-shell-impl";
6
7     import config { prefix config; revision-date 2013-04-05; }
8     import opendaylight-md-sal-binding { prefix mdsal; revision-date 2013-10-28; }
9     import mappingservice { prefix mappingservice; revision-date 2015-09-06; }
10
11     description
12         "This module contains the base YANG definitions for
13         mappingservice shell implementation.";
14
15     revision "2015-09-25" {
16         description
17             "Initial revision.";
18     }
19
20     identity mappingservice-shell-impl {
21         base config:module-type;
22         config:java-name-prefix MappingServiceShell;
23         config:provided-service mappingservice:mappingservice-shell;
24     }
25
26     augment "/config:modules/config:module/config:configuration" {
27         case mappingservice-shell-impl {
28             when "/config:modules/config:module/config:type = 'mappingservice-shell-impl'";
29             container osgi-broker {
30                 uses config:service-ref {
31                     refine type {
32                         mandatory true;
33                         config:required-identity mdsal:binding-broker-osgi-registry;
34                     }
35                 }
36             }
37             container mappingservice {
38                 uses config:service-ref {
39                     refine type {
40                         mandatory true;
41                         config:required-identity mappingservice:mappingservice;
42                     }
43                 }
44             }
45         }
46     }
47 }