From 58492a83722caf1c49977d73abf931418ce1f8f2 Mon Sep 17 00:00:00 2001 From: Ole Troan Date: Tue, 4 Sep 2018 13:19:12 +0200 Subject: STATS: Dynamically mapped shared memory segment Move from using a hash to a vector with offsets into shared memory. Limit exposure of VPP data structures and include files to external stats library and applications. Change-Id: Ic06129f12d10cf4c4946a86d9bc734eacff2c7da Signed-off-by: Ole Troan --- test/test_ipip.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'test/test_ipip.py') diff --git a/test/test_ipip.py b/test/test_ipip.py index 350eae0fded..efaaf52539e 100644 --- a/test/test_ipip.py +++ b/test/test_ipip.py @@ -145,9 +145,9 @@ class TestIPIP(VppTestCase): for p in rx: self.validate(p[1], p4_reply) - err = '/err/ipip4-input/packets decapsulated' - cnt = self.statistics.dump_str(err) - self.assertEqual(cnt[err], 10) + err = self.statistics.get_counter( + '/err/ipip4-input/packets decapsulated') + self.assertEqual(err, 10) # IPv4 tunnel to IPv6 p_ip6 = IPv6(src="1:2:3::4", dst=self.pg0.remote_ip6) @@ -159,8 +159,9 @@ class TestIPIP(VppTestCase): for p in rx: self.validate(p[1], p6_reply) - cnt = self.statistics.dump_str(err) - self.assertEqual(cnt[err], 20) + err = self.statistics.get_counter( + '/err/ipip4-input/packets decapsulated') + self.assertEqual(err, 20) # # Fragmentation / Reassembly and Re-fragmentation @@ -182,8 +183,9 @@ class TestIPIP(VppTestCase): for p in rx: self.validate(p[1], p4_reply) - cnt = self.statistics.dump_str(err) - self.assertEqual(cnt[err], 1020) + err = self.statistics.get_counter( + '/err/ipip4-input/packets decapsulated') + self.assertEqual(err, 1020) f = [] r = [] -- cgit 1.2.3-korg