Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.70 KB | None | 0 0
  1. module hello-world-SR2-impl {
  2.  
  3.     yang-version 1;
  4.     namespace "urn:opendaylight:params:xml:ns:yang:controller:config:hello-world-SR2:impl";
  5.     prefix "hello-world-SR2-impl";
  6.  
  7.     import config { prefix config; revision-date 2013-04-05; }
  8.     import rpc-context { prefix rpcx; revision-date 2013-06-17; }
  9.     import opendaylight-md-sal-binding { prefix mdsal; revision-date 2013-10-28; }
  10.  
  11.     description
  12.         "This module contains the base YANG definitions for
  13.         hello-world-SR2 impl implementation.";
  14.  
  15.     revision "2014-01-31" {
  16.         description
  17.             "Initial revision.";
  18.     }
  19.  
  20.     // This is the definition of a service implementation
  21.     identity hello-world-SR2-impl {
  22.             base config:module-type;
  23.            
  24.             // Specifies the prefix for generated java classes.
  25.             config:java-name-prefix HelloWorld;
  26.     }
  27.  
  28.     augment "/config:modules/config:module/config:configuration" {
  29.         case hello-world-SR2-impl {
  30.             when "/config:modules/config:module/config:type = 'hello-world-SR2-impl'";
  31.  
  32.                 container rpc-registry {
  33.                     uses config:service-ref {
  34.                         refine type {
  35.                             mandatory true;
  36.                             config:required-identity mdsal:binding-rpc-registry;
  37.                         }
  38.                     }
  39.                 }
  40.  
  41.                 container data-broker {
  42.                     uses config:service-ref {
  43.                     refine type {
  44.                         mandatory false;
  45.                         config:required-identity mdsal:binding-async-data-broker;
  46.                     }
  47.                 }
  48.             }
  49.         }
  50.     }
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement