X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Fvpp_interface.py;h=7be0d45e39b124f328da677ea6ad98fd6ebbcf7c;hb=5e6f7348cf456cffc85dae8bc6857589061122ba;hp=d586c849b02f1a86b1371b4d0401c0b092d0a861;hpb=3b0d7e42f65eaf8d84cfe26e2e9f5244c554b934;p=vpp.git diff --git a/test/vpp_interface.py b/test/vpp_interface.py index d586c849b02..7be0d45e39b 100644 --- a/test/vpp_interface.py +++ b/test/vpp_interface.py @@ -463,3 +463,11 @@ class VppInterface(object): def __str__(self): return self.name + + def get_rx_stats(self): + c = self.test.statistics.get_counter("^/if/rx$") + return c[0][self.sw_if_index] + + def get_tx_stats(self): + c = self.test.statistics.get_counter("^/if/tx$") + return c[0][self.sw_if_index]