Updated SAL Flow Models
[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-base {prefix flow;}
9     import opendaylight-inventory {prefix inv;}
10
11     revision "2013-08-19" {
12         description "Initial revision of flow service";
13     }
14
15     /*
16     augment "/flow:flows/flow:flow" {
17         ext:augment-identifier "flow-statistics";
18
19         leaf packet-count {
20             type uint64;
21         } 
22
23         leaf byte-count {
24             type uint64;
25         }
26
27         container duration {
28             leaf second {
29                 type uint64;
30             }
31             leaf nanosecond {
32                 type uint64;
33             }
34         }
35     }
36     */
37
38     augment "/inv:nodes/inv:node/inv:node-connector" {
39         ext:augment-identifier "node-connector-statistics";
40
41         container packets {
42             leaf received {
43                 type uint64;
44             }
45             leaf transmitted {
46                 type uint64;
47             }
48         }
49         container bytes {
50             leaf received {
51                 type uint64;
52             }
53             leaf transmitted {
54                 type uint64;
55             }
56         }
57         leaf receive-drops {
58             type uint64;
59         }
60         leaf transmit-drops {
61             type uint64;
62         }
63         leaf receive-errors {
64             type uint64;
65         }
66         leaf transmit-errors {
67             type uint64;
68         }
69         leaf receive-frame-error {
70             type uint64;
71         }
72         leaf receive-over-run-error {
73             type uint64;
74         }
75         leaf receive-crc-error {
76             type uint64;
77         }
78         leaf collision-count {
79             type uint64;
80         }
81
82     }
83
84 }