8a58edac658a5c8d3b71692f5ec3fd1396a7c55c
[groupbasedpolicy.git] / location-providers / ne-location-provider / src / main / yang / ne-location-provider-cfg.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 ne-location-provider-cfg {
10     yang-version 1;
11     namespace "urn:opendaylight:params:xml:ns:yang:controller:config:ne:location:provider:cfg";
12     prefix "ne-location-provider-cfg";
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           ne location provider implementation.";
20
21     revision "2016-04-21" {
22         description
23             "Initial revision.";
24     }
25
26     identity ne-location-provider {
27         base "config:module-type";
28
29         config:java-name-prefix NeLocationProvider;
30     }
31
32     // Augments the 'configuration' choice node under modules/module.
33     augment "/config:modules/config:module/config:configuration" {
34         case ne-location-provider {
35             when "/config:modules/config:module/config:type = 'ne-location-provider'";
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         }
47     }
48 }