1 // vi: set smarttab et sw=4 tabstop=4:
2 module kitchen-service-impl {
5 namespace "urn:opendaylight:params:xml:ns:yang:controller:config:kitchen-service:impl";
6 prefix "kitchen-service-impl";
8 import config { prefix config; revision-date 2013-04-05; }
9 import rpc-context { prefix rpcx; revision-date 2013-06-17; }
11 import opendaylight-md-sal-binding { prefix mdsal; revision-date 2013-10-28; }
14 "This module contains the base YANG definitions for
15 kitchen-service impl implementation.";
17 revision "2014-01-31" {
22 // This is the definition of kitchen service interface identity.
23 identity kitchen-service {
24 base "config:service-type";
25 config:java-class "org.opendaylight.controller.sample.kitchen.api.KitchenService";
28 // This is the definition of kitchen service implementation module identity.
29 identity kitchen-service-impl {
30 base config:module-type;
31 config:provided-service kitchen-service;
32 config:java-name-prefix KitchenService;
35 augment "/config:modules/config:module/config:configuration" {
36 case kitchen-service-impl {
37 when "/config:modules/config:module/config:type = 'kitchen-service-impl'";
39 container rpc-registry {
40 uses config:service-ref {
43 config:required-identity mdsal:binding-rpc-registry;
48 container notification-service {
49 uses config:service-ref {
52 config:required-identity mdsal:binding-notification-service;
59 augment "/config:modules/config:module/config:state" {
60 case kitchen-service-impl {
61 when "/config:modules/config:module/config:type = 'kitchen-service-impl'";
63 rpcx:rpc-context-instance "make-scrambled-with-wheat-rpc";
67 identity make-scrambled-with-wheat-rpc;
69 rpc make-scrambled-with-wheat {
71 "Shortcut JMX call to make breakfast with scrambled eggs and wheat toast for testing.";
74 uses rpcx:rpc-context-ref {
75 refine context-instance {
76 rpcx:rpc-context-instance make-scrambled-with-wheat-rpc;