fca8565d52d801ddadfe3fdb07b0c89ef906c8d1
[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
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
51       container broker {
52           uses config:service-ref {
53               refine type {
54                   mandatory true;
55                   config:required-identity mdsal:binding-broker-osgi-registry;
56               }
57           }
58       }
59
60       container rpc-registry {
61         uses config:service-ref {
62           refine type {
63               mandatory true;
64               config:required-identity mdsal:binding-rpc-registry;
65           }
66         }
67       }
68     }
69   }
70 }