summaryrefslogtreecommitdiffstats
path: root/test/test_gre.py
diff options
context:
space:
mode:
authorNeale Ranns <neale@graphiant.com>2022-08-09 03:03:29 +0000
committerBeno�t Ganne <bganne@cisco.com>2022-08-11 06:54:16 +0000
commite22a7041626cf1ebee7534d84068d48e8671a6ab (patch)
treedc3a7f46c3a4aef4c3af20229d3df18fb5465f8a /test/test_gre.py
parent93688d7341ada44755dc0432de3e3dbaaa8aa111 (diff)
ip: Use .api declared error counters
Type: improvement Signed-off-by: Neale Ranns <neale@graphiant.com> Change-Id: I822ead1495edb96ee62e53dc5920aa6c565e3621
Diffstat (limited to 'test/test_gre.py')
-rw-r--r--test/test_gre.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_gre.py b/test/test_gre.py
index a79819ed73c..cfba5594641 100644
--- a/test/test_gre.py
+++ b/test/test_gre.py
@@ -58,7 +58,7 @@ class TestGREInputNodes(VppTestCase):
self.pg0.add_stream(pkt)
self.pg_start()
# no tunnel created, gre-input not registered
- err = self.statistics.get_counter("/err/ip4-local/unknown ip protocol")[0]
+ err = self.statistics.get_counter("/err/ip4-local/unknown_protocol")[0]
self.assertEqual(err, 1)
err_count = err
@@ -69,7 +69,7 @@ class TestGREInputNodes(VppTestCase):
self.pg0.add_stream(pkt)
self.pg_start()
# tunnel created, gre-input registered
- err = self.statistics.get_counter("/err/ip4-local/unknown ip protocol")[0]
+ err = self.statistics.get_counter("/err/ip4-local/unknown_protocol")[0]
# expect no new errors
self.assertEqual(err, err_count)