f5c07edb878ec9951ced93b9147574a8d0bb8388
[controller.git] / opendaylight / md-sal / model / model-flow-statistics / src / main / yang / statistics-types.yang
1 module opendaylight-statistics-types {
2     namespace "urn:opendaylight:model:statistics:types";
3     prefix stat-types;
4
5     import ietf-yang-types {prefix yang;}
6     import opendaylight-inventory {prefix inv;}
7     import opendaylight-port-inventory {prefix port-inv;}
8     
9     revision "2013-09-25" {
10         description "Initial revision of flow service";
11     }    
12
13     grouping node-connector-statistics {
14         container packets {
15             leaf received {
16                 type uint64;
17             }
18             leaf transmitted {
19                 type uint64;
20             }
21         }
22         container bytes {
23             leaf received {
24                 type uint64;
25             }
26             leaf transmitted {
27                 type uint64;
28             }
29         }
30         leaf receive-drops {
31             type uint64;
32         }
33         leaf transmit-drops {
34             type uint64;
35         }
36         leaf receive-errors {
37             type uint64;
38         }
39         leaf transmit-errors {
40             type uint64;
41         }
42         leaf receive-frame-error {
43             type uint64;
44         }
45         leaf receive-over-run-error {
46             type uint64;
47         }
48         leaf receive-crc-error {
49             type uint64;
50         }
51         leaf collision-count {
52             type uint64;
53         }
54         
55         container duration {
56             leaf second {
57                 type yang:counter32;
58             }
59             leaf nanosecond {
60                 type yang:counter32;
61             }
62         }
63     }
64     
65     grouping ofp-port-description {
66         uses port-inv:ofp-port;
67     }
68 }