X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fmodel%2Fmodel-flow-statistics%2Fsrc%2Fmain%2Fyang%2Fopendaylight-statistics-types.yang;fp=opendaylight%2Fmd-sal%2Fmodel%2Fmodel-flow-statistics%2Fsrc%2Fmain%2Fyang%2Fopendaylight-statistics-types.yang;h=c4cccc11023f33fd77ba0b27abf15e4d195b155d;hb=79fc532382872d160d2f22119d32d8d6c0796886;hp=0000000000000000000000000000000000000000;hpb=51338753f18b900d1c42f97fe65b4d497e13677d;p=controller.git diff --git a/opendaylight/md-sal/model/model-flow-statistics/src/main/yang/opendaylight-statistics-types.yang b/opendaylight/md-sal/model/model-flow-statistics/src/main/yang/opendaylight-statistics-types.yang new file mode 100644 index 0000000000..c4cccc1102 --- /dev/null +++ b/opendaylight/md-sal/model/model-flow-statistics/src/main/yang/opendaylight-statistics-types.yang @@ -0,0 +1,121 @@ +module opendaylight-statistics-types { + namespace "urn:opendaylight:model:statistics:types"; + prefix stat-types; + + import ietf-yang-types {prefix yang;} + + 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 { + leaf received { + type uint64; + } + leaf transmitted { + type uint64; + } + } + container bytes { + leaf received { + type uint64; + } + leaf transmitted { + type uint64; + } + } + leaf receive-drops { + type uint64; + } + leaf transmit-drops { + type uint64; + } + leaf receive-errors { + type uint64; + } + leaf transmit-errors { + type uint64; + } + leaf receive-frame-error { + type uint64; + } + leaf receive-over-run-error { + type uint64; + } + leaf receive-crc-error { + type uint64; + } + 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; + } + +}