// 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 toaster-provider { prefix toaster-provider; revision-date 2014-01-31; } import opendaylight-md-sal-binding { prefix mdsal; 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 a service implementation identity toaster-provider-impl { base config:module-type; config:provided-service toaster-provider:toaster-provider; config:java-name-prefix ToasterProvider; } 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 mdsal:binding-notification-service; } } } } } 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; } } } }