X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Fvpp_interface.py;h=7be0d45e39b124f328da677ea6ad98fd6ebbcf7c;hb=80f6fd53feaa10b4a798582100724075897c0944;hp=d586c849b02f1a86b1371b4d0401c0b092d0a861;hpb=6348074be4a7efd30f7f6af4c4ec940076afe2fe;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]