From cdc4d09c152e985c93016ff61789bc699b97883d Mon Sep 17 00:00:00 2001 From: Tibor Král Date: Wed, 28 Nov 2018 18:20:00 +0100 Subject: HC2VPP-395: Provide Interface statistics counters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: If0f62b36b9d9dc6718ed62f81268ac0908f02297 Signed-off-by: Tibor Král --- v3po/api/src/main/yang/v3po@2018-10-08.yang | 88 +++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) (limited to 'v3po/api') diff --git a/v3po/api/src/main/yang/v3po@2018-10-08.yang b/v3po/api/src/main/yang/v3po@2018-10-08.yang index 844390de7..a4ebd7f07 100644 --- a/v3po/api/src/main/yang/v3po@2018-10-08.yang +++ b/v3po/api/src/main/yang/v3po@2018-10-08.yang @@ -48,6 +48,14 @@ module v3po { See the License for the specific language governing permissions and limitations under the License."; + revision "2018-11-28" { + description + "Revision changes: + - adds notification for interface statistics + - adds capture-time to vpp-interface-statistics-augmentation + - adds boolean flag statistics-enabled to interface"; + } + revision "2018-10-08" { description "Revision changes: @@ -823,6 +831,24 @@ module v3po { } } + augment /if:interfaces/if:interface { + ext:augment-identifier "vpp-interface-stats-collection-augmentation"; + container statistics-collection { + leaf statistics-enabled { + type boolean; + } + } + } + + augment /if:interfaces-state/if:interface { + ext:augment-identifier "vpp-interface-state-stats-collection-augmentation"; + container statistics-collection { + leaf statistics-enabled { + type boolean; + } + } + } + augment /if:interfaces-state/if:interface { ext:augment-identifier "vpp-interface-state-augmentation"; @@ -901,6 +927,9 @@ module v3po { leaf out-discards-fifo-full { type yang:counter64; } + leaf capture-time { + type yang:date-and-time; + } } container bridge-domains-state { @@ -941,6 +970,65 @@ module v3po { } } + notification interface-statistics-change { + leaf discontinuity-time { + type yang:date-and-time; + mandatory true; + } + + leaf in-octets { + type yang:counter64; + } + + leaf in-unicast-pkts { + type yang:counter64; + } + + leaf in-broadcast-pkts { + type yang:counter64; + } + + leaf in-multicast-pkts { + type yang:counter64; + } + + leaf in-discards { + type yang:counter32; + } + + leaf in-errors { + type yang:counter32; + } + + leaf in-unknown-protos { + type yang:counter32; + } + + leaf out-octets { + type yang:counter64; + } + + leaf out-unicast-pkts { + type yang:counter64; + } + + leaf out-broadcast-pkts { + type yang:counter64; + } + + leaf out-multicast-pkts { + type yang:counter64; + } + + leaf out-discards { + type yang:counter32; + } + + leaf out-errors { + type yang:counter32; + } + } + notification interface-state-change { leaf name { type interface-name-or-index; -- cgit 1.2.3-korg