Integration of fcaps applications
[netvirt.git] / fcapsapplication / fcapsapplication-impl / src / main / yang / fcaps-app.yang
1 module fcaps-app {
2
3     yang-version 1;
4     namespace "urn:opendaylight:params:xml:ns:yang:openflowplugin:app:fcaps-app";
5     prefix "fcaps";
6
7     import config { prefix config; revision-date 2013-04-05; }
8     import opendaylight-md-sal-binding { prefix md-sal-binding; revision-date 2013-10-28; }
9     import opendaylight-sal-binding-broker-impl { prefix sal-broker; revision-date 2013-10-28;}
10     import opendaylight-entity-ownership-service { prefix eos; }
11
12     description
13         "This module contains the base YANG definitions for
14         fcaps-manager implementation.";
15
16     revision "2015-12-11" {
17         description
18             "Initial revision.";
19     }
20
21     identity fcaps-app {
22             base config:module-type;
23             config:java-name-prefix FcapsApp;
24     }
25
26     augment "/config:modules/config:module/config:configuration" {
27         case fcaps-app {
28             when "/config:modules/config:module/config:type = 'fcaps-app'";
29
30             container data-broker {
31                 uses config:service-ref {
32                     refine type {
33                         mandatory true;
34                         config:required-identity md-sal-binding:binding-async-data-broker;
35                     }
36                 }
37             }
38             container rpc-registry {
39                 uses config:service-ref {
40                     refine type {
41                         mandatory true;
42                         config:required-identity md-sal-binding:binding-rpc-registry;
43                     }
44                 }
45             }
46             container notification-adapter {
47                 uses config:service-ref {
48                     refine type {
49                         mandatory true;
50                         config:required-identity sal-broker:binding-new-notification-service;
51                     }
52                 }
53             }
54             container entity-ownership-service {
55                 uses config:service-ref {
56                     refine type {
57                         mandatory true;
58                             config:required-identity eos:entity-ownership-service;
59                     }
60                 }
61             }
62         }
63     }
64 }