ELAN FT Support for BE
[vpnservice.git] / elanmanager / elanmanager-api / src / main / yang / elan-statistics.yang
1 module elan-statistics {
2     namespace "urn:opendaylight:vpnservice:elan:statistics";
3     prefix elan-stats;
4
5     import ietf-interfaces {
6         prefix if;
7     }
8
9     import interface-statistics {
10         prefix if-stats;
11     }
12
13     revision "2015-08-24" {
14         description "YANG model describes rpc to retrieve the different
15                ELAN interface statistics ie. packet/byte counts";
16     }
17
18     rpc get-elan-interface-statistics {
19         input {
20             leaf interface-name {
21                 type leafref {
22                     path "/if:interfaces/if:interface/if:name";
23                 }
24             }
25         }
26         output {
27             container stat-result {
28                 uses if-stats:stat-reply;
29             }
30         }
31     }
32 }