Cleaning up code, comments, and documentation for SimpleForwarding
[controller.git] / opendaylight / sal / yang-prototype / sal / model / model-flow-statistics / src / main / yang / opendaylight-flow-statistics.yang
1 module opendaylight-flow-statistics {
2     namespace "urn:opendaylight:flow:statistics";
3     prefix flowstat;
4
5     import yang-ext {prefix ext;}
6     import ietf-inet-types {prefix inet;}
7     import ietf-yang-types {prefix yang;}
8     import opendaylight-flow {prefix flow;}
9     import opendaylight-inventory {prefix inv;}
10
11     revision "2013-08-19" {
12         description "Initial revision of flow service";
13     }
14
15     augment "/flow:flows/flow:flow" {
16         ext:augment-identifier "flow-statistics";
17
18         leaf packet-count {
19             type uint64;
20         } 
21
22         leaf byte-count {
23             type uint64;
24         }
25
26         container duration {
27             leaf second {
28                 type uint64;
29             }
30             leaf nanosecond {
31                 type uint64;
32             }
33         }
34     }
35
36     augment "/inv:nodes/inv:node/inv:node-connector" {
37         ext:augment-identifier "node-connector-statistics";
38
39         container packets {
40             leaf received {
41                 type uint64;
42             }
43             leaf transmitted {
44                 type uint64;
45             }
46         }
47         container bytes {
48             leaf received {
49                 type uint64;
50             }
51             leaf transmitted {
52                 type uint64;
53             }
54         }
55         leaf receive-drops {
56             type uint64;
57         }
58         leaf transmit-drops {
59             type uint64;
60         }
61         leaf receive-errors {
62             type uint64;
63         }
64         leaf transmit-errors {
65             type uint64;
66         }
67         leaf receive-frame-error {
68             type uint64;
69         }
70         leaf receive-over-run-error {
71             type uint64;
72         }
73         leaf receive-crc-error {
74             type uint64;
75         }
76         leaf collision-count {
77             type uint64;
78         }
79
80     }
81
82 }