Bug 3353 - added table offset to of-overlay-config
[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
20     description
21         "This module contains the base YANG definitions for
22           ofoverlay-provider impl implementation.";
23
24     revision "2014-06-11" {
25         description
26             "Initial revision.";
27     }
28
29     identity ofoverlay-provider-impl {
30         base "config:module-type";
31
32         config:java-name-prefix OFOverlayProvider;
33     }
34
35     // Augments the 'configuration' choice node under modules/module.  
36     augment "/config:modules/config:module/config:configuration" {
37         case ofoverlay-provider-impl {
38             when "/config:modules/config:module/config:type = 'ofoverlay-provider-impl'";
39
40             //wires in the data-broker service 
41             container data-broker {
42                 uses config:service-ref {
43                     refine type {
44                         mandatory true;
45                         config:required-identity mdsal:binding-async-data-broker;
46                     }
47                 }
48             }
49             // RPC Registry
50             container rpc-registry {
51                 uses config:service-ref {
52                     refine type {
53                         mandatory true;
54                         config:required-identity mdsal:binding-rpc-registry;
55                     }
56                 }
57             }
58             // Notification service
59             container notification-adapter {
60                 uses config:service-ref {
61                     refine type {
62                         mandatory true;
63                         config:required-identity sal-broker:binding-new-notification-service;
64                     }
65                 }
66             }
67
68             uses ofoverlay:initial-values;
69         }
70     }
71 }