Introduced neutron-mapper
[groupbasedpolicy.git] / neutron-mapper / src / main / yang / neutron-mapper-impl.yang
1 module neutron-mapper-impl {
2
3     yang-version 1;
4     namespace "urn:opendaylight:params:xml:ns:yang:controller:config:neutron-mapper:impl";
5     prefix "neutron-mapper-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
10     description
11         "This module contains the base YANG definitions for
12         neutron-mapper implementation.";
13
14     revision "2015-02-19" {
15         description
16             "Initial revision.";
17     }
18
19     // This is the definition of the service implementation as a module identity.
20     identity neutron-mapper-impl {
21         base config:module-type;
22
23         // Specifies the prefix for generated java classes.
24         config:java-name-prefix NeutronMapper;
25     }
26
27     // Augments the 'configuration' choice node under modules/module.
28     augment "/config:modules/config:module/config:configuration" {
29         case neutron-mapper-impl {
30             when "/config:modules/config:module/config:type = 'neutron-mapper-impl'";
31
32             container data-broker {
33                 uses config:service-ref {
34                     refine type {
35                         mandatory true;
36                         config:required-identity mdsal:binding-async-data-broker;
37                     }
38                 }
39             }
40
41             container rpc-registry {
42                 uses config:service-ref {
43                     refine type {
44                         mandatory true;
45                         config:required-identity mdsal:binding-rpc-registry;
46                     }
47                 }
48             }
49
50         }
51     }
52 }