Requesting Interface Statistics

Marek Gradzki -X (mgradzki - PANTHEON TECHNOLOGIES@Cisco) <mgradzki@...>

Hello Sivan,


you request is valid. Reading statistics is currently not supported.


We often do not support fully external models (e.g. ietf ones) we expose

if there is limited/no vpp support for some feature.


VPP 18.01 has much better support for reading statistics:


so now it should be possible to add support for reading statistics container.


If you find the feature useful,

feel free to create jira ticket for hc2vpp project at


To check which VPP APIs are currently supported via NETCONF/RESTCONF

and how they are mapped to the YANG models,

please take a look at API documentation from our release notes.

Here is link for 17.10:





From: honeycomb-dev-bounces@... [mailto:honeycomb-dev-bounces@...] On Behalf Of sivan.b@...
Sent: 10 stycznia 2018 18:49
To: honeycomb-dev@...
Subject: [honeycomb-dev] Requesting Interface Statistics




I want to get interface statistics from VPP using an RPC from Honeycomb. I issue the following request:

<rpc message-id="m-0" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">


<filter xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:type="subtree">

<interfaces-state xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">









Looking at the ietf-interfaces yang model, I see there is a statistics container in the interface list of interfaces-state, so I expect the response to include the interface’s statistics, but it does not:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="m-0">


<interfaces-state xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">





<ipv4 xmlns="urn:ietf:params:xml:ns:yang:ietf-ip">






<ethernet xmlns="urn:opendaylight:params:xml:ns:yang:v3po">





<type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>






Am I misinterpreting the yang model? Should I issue a different request to get statistics?


Thanks for the help,