diff options
Diffstat (limited to 'test/vpp_interface.py')
-rw-r--r-- | test/vpp_interface.py | 8 |
1 files changed, 8 insertions, 0 deletions
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] |