Added range type to subject-feature-definition/parameter
[groupbasedpolicy.git] / renderers / oc / src / main / yang / oc-provider-impl.yang
1 /*
2  * Copyright (c) 2015 Juniper Networks, Inc.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 module oc-provider-impl {
10     yang-version 1;
11     namespace "urn:opendaylight:params:xml:ns:yang:controller:config:oc-provider:impl";
12     prefix "oc-provider-impl";
13
14     import config { prefix config; revision-date 2013-04-05; }
15     import opendaylight-md-sal-binding { prefix mdsal; revision-date 2013-10-28; }
16
17     description
18         "This module contains the base YANG definitions for
19           oc-provider impl implementation.";
20
21     revision "2014-06-11" {
22         description
23             "Initial revision.";
24     }
25
26     identity oc-provider-impl {
27         base "config:module-type";
28
29         config:java-name-prefix OcProvider;
30     }
31
32     // Augments the 'configuration' choice node under modules/module.
33     augment "/config:modules/config:module/config:configuration" {
34         case oc-provider-impl {
35             when "/config:modules/config:module/config:type = 'oc-provider-impl'";
36
37             //wires in the data-broker service
38             container data-broker {
39                 uses config:service-ref {
40                     refine type {
41                         mandatory true;
42                         config:required-identity mdsal:binding-async-data-broker;
43                     }
44                 }
45             }
46             // RPC Registry
47             container rpc-registry {
48                 uses config:service-ref {
49                     refine type {
50                         mandatory true;
51                         config:required-identity mdsal:binding-rpc-registry;
52                     }
53                 }
54             }
55         }
56     }
57 }