MCPcopy Create free account
hub / github.com/FDio/vpp / apply_rules_to

Method apply_rules_to

test/test_acl_plugin.py:223–229  ·  view source on GitHub ↗
(self, rules, tag=None, sw_if_index=INVALID_INDEX)

Source from the content-addressed store, hash-verified

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

Callers 1

test_0315_del_intfMethod · 0.95

Calls 4

add_vpp_configMethod · 0.95
dumpMethod · 0.95
VppAclClass · 0.90
VppAclInterfaceClass · 0.90

Tested by

no test coverage detected