(self, rules, tag=None)
| 209 | ) |
| 210 | |
| 211 | def apply_rules(self, rules, tag=None): |
| 212 | acl = VppAcl(self, rules, tag=tag) |
| 213 | acl.add_vpp_config() |
| 214 | self.logger.info("Dumped ACL: " + str(acl.dump())) |
| 215 | # Apply a ACL on the interface as inbound |
| 216 | for i in self.pg_interfaces: |
| 217 | acl_if = VppAclInterface( |
| 218 | self, sw_if_index=i.sw_if_index, n_input=1, acls=[acl] |
| 219 | ) |
| 220 | acl_if.add_vpp_config() |
| 221 | return acl.acl_index |
| 222 | |
| 223 | def apply_rules_to(self, rules, tag=None, sw_if_index=INVALID_INDEX): |
| 224 | acl = VppAcl(self, rules, tag=tag) |
no test coverage detected