(self, rules, tag=None, sw_if_index=INVALID_INDEX)
| 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) |
| 225 | acl.add_vpp_config() |
| 226 | self.logger.info("Dumped ACL: " + str(acl.dump())) |
| 227 | # Apply a ACL on the interface as inbound |
| 228 | acl_if = VppAclInterface(self, sw_if_index=sw_if_index, n_input=1, acls=[acl]) |
| 229 | return acl.acl_index |
| 230 | |
| 231 | def etype_whitelist(self, whitelist, n_input, add=True): |
| 232 | # Apply whitelists on all the interfaces |
no test coverage detected