X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=opendaylight%2Fmd-sal%2Fmodel%2Fmodel-flow-statistics%2Fsrc%2Fmain%2Fyang%2Fstatistics-types.yang;h=7bde486e91da8c4228086a9a6e1e08f8637b8707;hb=df3615ff3fd59b4c28175b9f359e8caa3a14f914;hp=47c4c9369e2ded77a471de29928e58e1fbef82df;hpb=fe024ad74b8656c3ee61b9ddff6009a779aa2189;p=controller.git diff --git a/opendaylight/md-sal/model/model-flow-statistics/src/main/yang/statistics-types.yang b/opendaylight/md-sal/model/model-flow-statistics/src/main/yang/statistics-types.yang index 47c4c9369e..7bde486e91 100644 --- a/opendaylight/md-sal/model/model-flow-statistics/src/main/yang/statistics-types.yang +++ b/opendaylight/md-sal/model/model-flow-statistics/src/main/yang/statistics-types.yang @@ -2,14 +2,23 @@ module opendaylight-statistics-types { namespace "urn:opendaylight:model:statistics:types"; prefix stat-types; - import opendaylight-inventory {prefix inv;} - + import ietf-yang-types {prefix yang;} + import opendaylight-inventory {prefix inv;revision-date "2013-08-19";} - revision "2013-08-19" { + revision "2013-09-25" { description "Initial revision of flow service"; } - + grouping duration { + container duration { + leaf second { + type yang:counter32; + } + leaf nanosecond { + type yang:counter32; + } + } + } grouping node-connector-statistics { container packets { @@ -52,5 +61,62 @@ module opendaylight-statistics-types { leaf collision-count { type uint64; } + uses duration; } + + grouping generic-statistics { + description "Generic grouping for statistics"; + leaf packet-count { + type yang:counter64; + } + + leaf byte-count { + type yang:counter64; + } + uses duration; + } + + grouping generic-table-statistics { + 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; + } + } + + grouping aggregate-flow-statistics { + description "Aggregate flow statistics"; + leaf packet-count { + type yang:counter64; + } + + leaf byte-count { + type yang:counter64; + } + leaf flow-count { + 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; + } + } \ No newline at end of file