Switching SB to config subsystem
[lispflowmapping.git] / mappingservice / southbound / src / main / yang / lfm-mappingservice-sb-impl.yang
1 module lfm-mappingservice-sb-impl {
2
3   yang-version 1;
4   namespace "urn:opendaylight:params:xml:ns:yang:controller:config:lfm-mappingservice-sb:impl";
5   prefix "lfm-mappingservice-sb-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   description
12       "This module contains the base YANG definitions for
13       mappingservice southbound plugin implementation.";
14
15   revision "2015-05-17" {
16       description
17           "Initial revision.";
18   }
19
20   identity lfm-mappingservice-sb {
21       base "config:service-type";
22       config:java-class "org.opendaylight.lispflowmapping.type.sbplugin.IConfigLispSouthboundPlugin";
23   }
24
25   identity lfm-mappingservice-sb-impl {
26       base config:module-type;
27       config:provided-service lfm-mappingservice-sb;
28       config:java-name-prefix LfmMappingServiceSb;
29   }
30
31
32   // Augments the 'configuration' choice node under modules/module.
33   augment "/config:modules/config:module/config:configuration" {
34     case lfm-mappingservice-sb-impl {
35       when "/config:modules/config:module/config:type = 'lfm-mappingservice-sb-impl'";
36
37       container broker {
38           uses config:service-ref {
39               refine type {
40                   mandatory true;
41                   config:required-identity mdsal:binding-broker-osgi-registry;
42               }
43           }
44       }
45
46       container notification-service {
47           uses config:service-ref {
48               refine type {
49                   mandatory true;
50                   config:required-identity mdsal:binding-notification-service;
51               }
52           }
53       }
54
55       container rpc-registry {
56         uses config:service-ref {
57           refine type {
58               mandatory true;
59               config:required-identity mdsal:binding-rpc-registry;
60           }
61         }
62       }
63     }
64   }
65 }