diff options
author | Ole Troan <ot@cisco.com> | 2018-09-04 13:19:12 +0200 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-09-17 10:07:27 +0000 |
commit | 58492a83722caf1c49977d73abf931418ce1f8f2 (patch) | |
tree | 0e2f7e031fbfa10c35448c9660292146aeb442b1 /test | |
parent | 40ea3f59dca497e5f4b5a8440a9c8c2e37396701 (diff) |
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 <ot@cisco.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/test_ipip.py | 16 |
1 files changed, 9 insertions, 7 deletions
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 = [] |