Bug-1517: Introduce topology data-change counter
[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 "2014-08-15" {
26         description
27             "Initial revision";
28     }
29
30     identity data-change-counter-impl {
31         base config:module-type;
32         config:java-name-prefix DataChangeCounterImpl;
33     }
34
35     augment "/config:modules/config:module/config:configuration" {
36         case data-change-counter-impl {
37             when "/config:modules/config:module/config:type = 'data-change-counter-impl'";
38
39             leaf topology-name {
40                 type string;
41             }
42
43             container data-provider {
44                 uses config:service-ref {
45                     refine type {
46                         mandatory true;
47                         config:required-identity mdsal:binding-async-data-broker;
48                     }
49                 }
50             }
51         }
52     }
53 }