1 // vi: set smarttab et sw=4 tabstop=4:
2 module toaster-provider-impl {
5 namespace "urn:opendaylight:params:xml:ns:yang:controller:config:toaster-provider:impl";
6 prefix "toaster-provider-impl";
8 import config { prefix config; revision-date 2013-04-05; }
9 import rpc-context { prefix rpcx; revision-date 2013-06-17; }
10 import opendaylight-md-sal-binding { prefix mdsal; revision-date 2013-10-28; }
13 "This module contains the base YANG definitions for
14 toaster-provider impl implementation.";
16 revision "2014-01-31" {
21 // This is the definition of the service implementation as a module identity.
22 identity toaster-provider-impl {
23 base config:module-type;
25 // Specifies the prefix for generated java classes.
26 config:java-name-prefix ToasterProvider;
29 // Augments the 'configuration' choice node under modules/module.
30 augment "/config:modules/config:module/config:configuration" {
31 case toaster-provider-impl {
32 when "/config:modules/config:module/config:type = 'toaster-provider-impl'";
34 container rpc-registry {
35 uses config:service-ref {
38 config:required-identity mdsal:binding-rpc-registry;
43 container notification-service {
44 uses config:service-ref {
47 config:required-identity mdsal:binding-notification-service;
52 container data-broker {
53 uses config:service-ref {
56 config:required-identity mdsal:binding-data-broker;
63 augment "/config:modules/config:module/config:state" {
64 case toaster-provider-impl {
65 when "/config:modules/config:module/config:type = 'toaster-provider-impl'";
71 rpcx:rpc-context-instance "clear-toasts-made-rpc";
75 identity clear-toasts-made-rpc;
77 rpc clear-toasts-made {
79 "JMX call to clear the toasts-made counter.";
82 uses rpcx:rpc-context-ref {
83 refine context-instance {
84 rpcx:rpc-context-instance clear-toasts-made-rpc;