diff options
Diffstat (limited to 'test/test_classifier.py')
-rw-r--r-- | test/test_classifier.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test_classifier.py b/test/test_classifier.py index 74851f92377..9f0fdbf587a 100644 --- a/test/test_classifier.py +++ b/test/test_classifier.py @@ -915,10 +915,20 @@ class TestClassifierPunt(TestClassifier): proto=socket.IPPROTO_UDP, src_port=sport)) self.send_and_expect_only(self.pg0, pkts, self.pg1) + # test dump api: ip4 is set, ip6 is not + r = self.vapi.punt_acl_get() + self.assertEqual(r.ip4_table_index, table_index) + self.assertEqual(r.ip6_table_index, 0xffffffff) + # cleanup self.acl_active_table = '' self.vapi.punt_acl_add_del(ip4_table_index=table_index, is_add=0) + # test dump api: nothing set + r = self.vapi.punt_acl_get() + self.assertEqual(r.ip4_table_index, 0xffffffff) + self.assertEqual(r.ip6_table_index, 0xffffffff) + if __name__ == '__main__': unittest.main(testRunner=VppTestRunner) |