Added range type to subject-feature-definition/parameter
[groupbasedpolicy.git] / groupbasedpolicy / src / main / yang / integration / openstackgbp / openstackgbp-provider-impl.yang
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  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 openstack-endpoint-provider-impl {
10     yang-version 1;
11     namespace "urn:opendaylight:params:xml:ns:yang:controller:config:openstack-endpoint-provider:impl";
12     prefix "openstack-endpoint-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 openstack-endpoint-provider impl implementation.";
19
20     revision "2014-12-04" {
21         description
22             "Initial revision.";
23     }
24
25     // This is the definition of the service implementation as a module identity
26     identity openstack-endpoint-provider-impl {
27             base config:module-type;
28
29             // Specifies the prefix for generated java classes.
30             config:java-name-prefix OpenstackEndpointProvider;
31     }
32
33     // Augments the 'configuration' choice node under modules/module.
34     augment "/config:modules/config:module/config:configuration" {
35         case openstack-endpoint-provider-impl {
36             when "/config:modules/config:module/config:type = 'openstack-endpoint-provider-impl'";
37
38             //wires in the data-broker service
39             container data-broker {
40                 uses config:service-ref {
41                     refine type {
42                         mandatory false;
43                         config:required-identity mdsal:binding-async-data-broker;
44                     }
45                 }
46             }
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 }