fib: fix the drop counter for ipv6 RPF failures
[vpp.git] / test / test_ip_mcast.py
index 20079aa..50ac01b 100644 (file)
@@ -211,6 +211,9 @@ class TestIPMcast(VppTestCase):
 
         self.pg0.assert_nothing_captured(
             remark="IP multicast packets forwarded on default route")
+        count = self.statistics.get_err_counter(
+            "/err/ip4-input/Multicast RPF check failed")
+        self.assertEqual(count, len(tx))
 
         #
         # A (*,G).
@@ -510,6 +513,9 @@ class TestIPMcast(VppTestCase):
         self.vapi.cli("clear trace")
         tx = self.create_stream_ip6(self.pg1, "2002::1", "ff01:2::255")
         self.send_and_assert_no_replies(self.pg1, tx, "RPF miss")
+        count = self.statistics.get_err_counter(
+            "/err/ip6-input/Multicast RPF check failed")
+        self.assertEqual(count, 2 * len(tx))
 
         #
         # a stream that matches the route for (*, ff01::/16)