X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=inline;f=model%2Fmodel-flow-statistics%2Fsrc%2Fmain%2Fyang%2Fopendaylight-statistics-types.yang;fp=model%2Fmodel-flow-statistics%2Fsrc%2Fmain%2Fyang%2Fopendaylight-statistics-types.yang;h=3ca453082b87e6a631dd0404aa3a283aad469b7b;hb=611180ac770b6038b526c54994701db16d1a8567;hp=19d6eafa789204b252caa2e8da233808dbce150e;hpb=958a836b772d6f8bec46279c767609aac023e720;p=openflowplugin.git diff --git a/model/model-flow-statistics/src/main/yang/opendaylight-statistics-types.yang b/model/model-flow-statistics/src/main/yang/opendaylight-statistics-types.yang index 19d6eafa78..3ca453082b 100644 --- a/model/model-flow-statistics/src/main/yang/opendaylight-statistics-types.yang +++ b/model/model-flow-statistics/src/main/yang/opendaylight-statistics-types.yang @@ -3,12 +3,16 @@ module opendaylight-statistics-types { prefix stat-types; import ietf-yang-types {prefix yang; revision-date "2010-09-24";} - + + description "Openflowplugin statistics common types."; + revision "2013-09-25" { description "Initial revision of flow service"; } - + grouping duration { + description "Duration, contains seconds and nanoseconds."; + container duration { leaf second { type yang:counter32; @@ -20,7 +24,9 @@ module opendaylight-statistics-types { } grouping node-connector-statistics { - container packets { + description "Openflow node connector (port) statistics structure."; + + container packets { leaf received { type uint64; } @@ -62,9 +68,10 @@ module opendaylight-statistics-types { } uses duration; } - + grouping generic-statistics { - description "Generic grouping for statistics"; + description "Generic grouping for statistics"; + leaf packet-count { type yang:counter64; } @@ -72,24 +79,26 @@ module opendaylight-statistics-types { leaf byte-count { type yang:counter64; } - uses duration; - } - + uses duration; + } + grouping generic-table-statistics { - description "Generic grouping holding generic statistics related to switch table"; - leaf active-flows { + description "Generic grouping holding generic statistics related to switch table"; + + leaf active-flows { type yang:counter32; - } - leaf packets-looked-up { - type yang:counter64; - } - leaf packets-matched { - type yang:counter64; - } + } + leaf packets-looked-up { + type yang:counter64; + } + leaf packets-matched { + type yang:counter64; + } } - + grouping aggregate-flow-statistics { - description "Aggregate flow statistics"; + description "Aggregate flow statistics"; + leaf packet-count { type yang:counter64; } @@ -101,21 +110,21 @@ module opendaylight-statistics-types { type yang:counter32; } } - + grouping generic-queue-statistics { - description "Generic statistics of switch port attached queues."; - leaf transmitted-bytes { - type yang:counter64; - } - - leaf transmitted-packets { - type yang:counter64; - } - - leaf transmission-errors { - type yang:counter64; - } - uses duration; + description "Generic statistics of switch port attached queues."; + + leaf transmitted-bytes { + type yang:counter64; + } + + leaf transmitted-packets { + type yang:counter64; + } + + leaf transmission-errors { + type yang:counter64; + } + uses duration; } - }