1 module opendaylight-meter-types {
2 namespace "urn:opendaylight:meter:types";
5 import ietf-yang-types {prefix yang; revision-date "2013-07-15";}
8 revision "2013-09-18" {
9 description "Initial revision of meter service";
28 identity meter-capability {
29 description "Base identity for all the supported meter capabilities/flags";
32 base meter-capability;
33 description "Rate value in kb/s (kilo-bit per second)";
35 identity meter-pktps {
36 base meter-capability;
37 description "Rate value in packet/sec.";
39 identity meter-burst {
40 base meter-capability;
41 description "Do burst size.";
43 identity meter-stats {
44 base meter-capability;
45 description "Collect statistics.";
48 typedef meter-band-type {
51 bit ofpmbt-dscp-remark;
52 bit ofpmbt-experimenter;
57 description "Base identity for all the band type available";
59 identity meter-band-drop {
61 description "Drop packet";
63 identity meter-band-dscp-remark {
65 description "Remark DSCP in the IP header";
67 identity meter-band-experimenter {
69 description "Experimenter meter band";
76 description "Rate for dropping packets";
80 leaf drop-burst-size {
81 description "Size of bursts";
87 leaf dscp-remark-rate {
88 description "Rate for remarking packets";
92 leaf dscp-remark-burst-size {
93 description "Size of bursts";
98 description "Number of drop precedence level to add";
104 leaf experimenter-rate {
105 description "Rate for remarking packets";
109 leaf experimenter-burst-size {
110 description "Size of bursts";
115 description "Experimenter id";
123 type instance-identifier;
129 description "Meter configuration flags";
134 description "Meter instance";
139 description "If true, barrier message is sent";
144 description "Name of meter instance";
148 leaf container-name {
149 description "Name of container";
153 container meter-band-headers {
154 list meter-band-header {
157 description "Meter band id";
161 container meter-band-types {
163 description "Meter band flags";
164 type meter-band-type;
169 description "Rate for this band";
173 leaf band-burst-size {
174 description "Size of bursts";
182 grouping meter-statistics {
192 leaf packet-in-count {
209 container meter-band-stats {
216 leaf packet-band-count {
220 leaf byte-band-count {
227 grouping meter-features {
233 leaf-list meter-band-supported {
239 leaf-list meter-capabilities-supported {
241 base meter-capability;
254 grouping meter-stats-config-request {
263 grouping meter-statistics-reply {
266 uses meter-statistics;
270 grouping meter-config-stats-reply {
271 list meter-config-stats {
277 grouping meter-features-reply {