7169ca14a95c6b5c06d082f6c4c183d30589b36b
[groupbasedpolicy.git] / renderers / vpp / src / main / yang / vpp-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 vpp-provider-impl {
10     yang-version 1;
11     namespace "urn:opendaylight:params:xml:ns:yang:controller:config:vpp-provider:impl";
12     prefix "vpp-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 groupbasedpolicy-cfg { prefix gbpcfg; revision-date 2015-11-06; }
19
20     description
21         "This module contains the base YANG definitions for
22           vpp-provider impl implementation.";
23
24     revision "2016-04-25" {
25         description
26             "Initial revision.";
27     }
28
29     identity vpp-provider-impl {
30         base "config:module-type";
31
32         config:java-name-prefix GbpVppProvider;
33     }
34
35     // Augments the 'configuration' choice node under modules/module.
36     augment "/config:modules/config:module/config:configuration" {
37         case vpp-provider-impl {
38             when "/config:modules/config:module/config:type = 'vpp-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         }
50     }
51 }