X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsamples%2Ftoaster-provider%2Fsrc%2Fmain%2Fyang%2Ftoaster-provider-impl.yang;fp=opendaylight%2Fmd-sal%2Fsamples%2Ftoaster-provider%2Fsrc%2Fmain%2Fyang%2Ftoaster-provider-impl.yang;h=0000000000000000000000000000000000000000;hp=f978e49b47351187e09df0e1ea8f144ab5c14985;hb=21186d16ca8b233674ebdf3aa1ea190a2c0b3959;hpb=34c6032dd81c2d76720cce53478c38f5e5cdddc4 diff --git a/opendaylight/md-sal/samples/toaster-provider/src/main/yang/toaster-provider-impl.yang b/opendaylight/md-sal/samples/toaster-provider/src/main/yang/toaster-provider-impl.yang deleted file mode 100644 index f978e49b47..0000000000 --- a/opendaylight/md-sal/samples/toaster-provider/src/main/yang/toaster-provider-impl.yang +++ /dev/null @@ -1,90 +0,0 @@ -// vi: set smarttab et sw=4 tabstop=4: -module toaster-provider-impl { - - yang-version 1; - namespace "urn:opendaylight:params:xml:ns:yang:controller:config:toaster-provider:impl"; - prefix "toaster-provider-impl"; - - import config { prefix config; revision-date 2013-04-05; } - import rpc-context { prefix rpcx; revision-date 2013-06-17; } - import opendaylight-md-sal-binding { prefix mdsal; revision-date 2013-10-28; } - import opendaylight-sal-binding-broker-impl { prefix binding-impl; revision-date 2013-10-28; } - - description - "This module contains the base YANG definitions for - toaster-provider impl implementation."; - - revision "2014-01-31" { - description - "Initial revision."; - } - - // This is the definition of the service implementation as a module identity. - identity toaster-provider-impl { - base config:module-type; - - // Specifies the prefix for generated java classes. - config:java-name-prefix ToasterProvider; - } - - // Augments the 'configuration' choice node under modules/module. - augment "/config:modules/config:module/config:configuration" { - case toaster-provider-impl { - when "/config:modules/config:module/config:type = 'toaster-provider-impl'"; - - container rpc-registry { - uses config:service-ref { - refine type { - mandatory true; - config:required-identity mdsal:binding-rpc-registry; - } - } - } - - container notification-service { - uses config:service-ref { - refine type { - mandatory true; - config:required-identity binding-impl:binding-new-notification-publish-service; - } - } - } - - container data-broker { - uses config:service-ref { - refine type { - mandatory false; - config:required-identity mdsal:binding-async-data-broker; - } - } - } - } - } - - augment "/config:modules/config:module/config:state" { - case toaster-provider-impl { - when "/config:modules/config:module/config:type = 'toaster-provider-impl'"; - - leaf toasts-made { - type uint32; - } - - rpcx:rpc-context-instance "clear-toasts-made-rpc"; - } - } - - identity clear-toasts-made-rpc; - - rpc clear-toasts-made { - description - "JMX call to clear the toasts-made counter."; - - input { - uses rpcx:rpc-context-ref { - refine context-instance { - rpcx:rpc-context-instance clear-toasts-made-rpc; - } - } - } - } -}