Bug: 5287
[bgpcep.git] / data-change-counter / src / main / yang / odl-data-change-counter-cfg.yang
1 // vi: set smarttab et sw=4 tabstop=4:
2 module odl-data-change-counter-cfg {
3     yang-version 1;
4     namespace "urn:opendaylight:params:xml:ns:yang:controller:bgpcep:data:change:counter";
5     prefix "dcc-cfg";
6
7     import config { prefix config; revision-date 2013-04-05; }
8     import opendaylight-md-sal-binding { prefix mdsal; revision-date 2013-10-28; }
9
10     organization "Cisco Systems, Inc.";
11
12     contact "Milos Fabian <milfabia@cisco.com>";
13
14     description
15         "This module contains the base YANG definitions for
16          topology data-change counter.
17
18         Copyright (c)2014 Cisco Systems, Inc. All rights reserved.;
19
20         This program and the accompanying materials are made available
21         under the terms of the Eclipse Public License v1.0 which
22         accompanies this distribution, and is available at
23         http://www.eclipse.org/legal/epl-v10.html";
24
25     revision "2016-03-15" {
26         description
27             "Updated to support multiple instances";
28     }
29     revision "2014-08-15" {
30         description
31             "Initial revision";
32     }
33
34     identity data-change-counter-impl {
35         base config:module-type;
36         config:java-name-prefix DataChangeCounterImpl;
37     }
38
39     augment "/config:modules/config:module/config:configuration" {
40         case data-change-counter-impl {
41             when "/config:modules/config:module/config:type = 'data-change-counter-impl'";
42
43             leaf counter-id {
44                 type string;
45             }
46
47             leaf topology-name {
48                 type string;
49             }
50
51             container data-provider {
52                 uses config:service-ref {
53                     refine type {
54                         mandatory true;
55                         config:required-identity mdsal:binding-async-data-broker;
56                     }
57                 }
58             }
59         }
60     }
61 }