2c1835e1e68339a31a1d9395c07b0a5b1676526f
[groupbasedpolicy.git] / renderers / ofoverlay / src / main / yang / ofoverlay-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 ofoverlay-provider-impl {
10     yang-version 1;
11     namespace "urn:opendaylight:params:xml:ns:yang:controller:config:ofoverlay-provider:impl";
12     prefix "ofoverlay-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     import ietf-yang-types { prefix "yang"; revision-date 2010-09-24; }
17     import opendaylight-sal-binding-broker-impl { prefix sal-broker; revision-date 2013-10-28;}
18     import ofoverlay { prefix ofoverlay; revision-date 2014-05-28; }
19     import groupbasedpolicy-cfg { prefix gbpcfg; revision-date 2015-11-06; }
20
21     description
22         "This module contains the base YANG definitions for
23           ofoverlay-provider impl implementation.";
24
25     revision "2014-06-11" {
26         description
27             "Initial revision.";
28     }
29
30     identity ofoverlay-provider-impl {
31         base "config:module-type";
32
33         config:java-name-prefix OFOverlayProvider;
34     }
35
36     // Augments the 'configuration' choice node under modules/module.  
37     augment "/config:modules/config:module/config:configuration" {
38         case ofoverlay-provider-impl {
39             when "/config:modules/config:module/config:type = 'ofoverlay-provider-impl'";
40
41             // Wires in the data-broker service
42             container data-broker {
43                 uses config:service-ref {
44                     refine type {
45                         mandatory true;
46                         config:required-identity mdsal:binding-async-data-broker;
47                     }
48                 }
49             }
50             // RPC Registry
51             container rpc-registry {
52                 uses config:service-ref {
53                     refine type {
54                         mandatory true;
55                         config:required-identity mdsal:binding-rpc-registry;
56                     }
57                 }
58             }
59             // Notification service
60             container notification-adapter {
61                 uses config:service-ref {
62                     refine type {
63                         mandatory true;
64                         config:required-identity sal-broker:binding-new-notification-service;
65                     }
66                 }
67             }
68             // EpRendererAugmentationRegistry service
69             container ep-renderer-augmentation-registry {
70                 uses config:service-ref {
71                     refine type {
72                         mandatory true;
73                         config:required-identity gbpcfg:ep-renderer-augmentation-registry;
74                     }
75                 }
76             }
77             // PolicyProviderRegistry service
78             container policy-validator-registry {
79                 uses config:service-ref {
80                     refine type {
81                         mandatory true;
82                         config:required-identity gbpcfg:policy-validator-registry;
83                     }
84                 }
85             }
86
87             uses ofoverlay:initial-values;
88         }
89     }
90 }