X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Fvpp_ipsec.py;fp=test%2Fvpp_ipsec.py;h=76080e05c3a62ba4f41f0f9f06f8473c10ca8550;hb=e11203e5b8fd61986573e0cba9e47cefcf50e60d;hp=f9b7bc43752984c16925fe0df715be93d3696b3c;hpb=979545e79579bdc6fe3cb2d3cfd0036c588acb32;p=vpp.git diff --git a/test/vpp_ipsec.py b/test/vpp_ipsec.py index f9b7bc43752..76080e05c3a 100644 --- a/test/vpp_ipsec.py +++ b/test/vpp_ipsec.py @@ -313,6 +313,17 @@ class VppIpsecSA(VppObject): # +1 to skip main thread return c[worker+1][self.stat_index] + def get_lost(self, worker=None): + c = self.test.statistics.get_counter("/net/ipsec/sa/lost") + if worker is None: + total = 0 + for t in c: + total += t[self.stat_index] + return total + else: + # +1 to skip main thread + return c[worker+1][self.stat_index] + class VppIpsecTunProtect(VppObject): """