Move HashMapDb to its own bundle
[lispflowmapping.git] / mappingservice / implementation / src / main / yang / lfm-mappingservice-impl.yang
1 module lfm-mappingservice-impl {
2
3   yang-version 1;
4   namespace "urn:opendaylight:params:xml:ns:yang:controller:config:lfm-mappingservice:impl";
5   prefix "lfm-mappingservice-impl";
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 lfm-ms-dao { prefix ms-dao; revision-date 2015-07-13; }
11
12   description
13       "This module contains the base YANG definitions for
14       mappingservice implementation.";
15
16   revision "2015-05-17" {
17       description
18           "Initial revision.";
19   }
20
21   // This is the definition of lfm-mappingservice interface identity.
22   identity lfm-mappingservice {
23       base config:service-type;
24       config:java-class "org.opendaylight.lispflowmapping.interfaces.lisp.IFlowMapping";
25   }
26   
27   // This is the definition of the lfm-mappingservice implementation as a module identity
28   identity lfm-mappingservice-impl {
29       base config:module-type;
30
31       // Specifies the prefix for generated java classes.
32       config:java-name-prefix LfmMappingService;
33       config:provided-service lfm-mappingservice;
34   }
35
36   // Augments the 'configuration' choice node under modules/module.
37   augment "/config:modules/config:module/config:configuration" {
38     case lfm-mappingservice-impl {
39       when "/config:modules/config:module/config:type = 'lfm-mappingservice-impl'";
40
41       //wires in the data-broker service
42       container data-broker {
43         uses config:service-ref {
44           refine type {
45               mandatory true;
46               config:required-identity mdsal:binding-async-data-broker;
47           }
48         }
49       }
50       container broker {
51           uses config:service-ref {
52               refine type {
53                   mandatory true;
54                   config:required-identity mdsal:binding-broker-osgi-registry;
55               }
56           }
57       }
58       container rpc-registry {
59         uses config:service-ref {
60           refine type {
61               mandatory true;
62               config:required-identity mdsal:binding-rpc-registry;
63           }
64         }
65       }
66       container dao {
67           uses config:service-ref {
68               refine type {
69                   mandatory true;
70                   config:required-identity ms-dao:ms-dao;
71               }
72           }
73       }
74     }
75   }
76 }