tests: test input policer
[vpp.git] / test / vpp_policer.py
index 387ab27..2c47eed 100644 (file)
@@ -61,6 +61,10 @@ class VppPolicer(VppObject):
         self._test.vapi.policer_bind(name=self.name, worker_index=worker,
                                      bind_enable=bind)
 
+    def apply_vpp_config(self, if_index, apply):
+        self._test.vapi.policer_input(name=self.name, sw_if_index=if_index,
+                                      apply=apply)
+
     def query_vpp_config(self):
         dump = self._test.vapi.policer_dump(
             match_name_valid=True, match_name=self.name)