Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FDio/vpp
/ encode_rules
Method
encode_rules
test/vpp_acl.py:419–423 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
417
return
len(self._rules)
418
419
def
encode_rules(self):
420
rules = []
421
for
rule in self._rules:
422
rules.append(rule.encode())
423
return
rules
424
425
def
add_vpp_config(self, expect_error=False):
426
try
:
Callers
1
add_vpp_config
Method · 0.95
Calls
2
append
Method · 0.80
encode
Method · 0.45
Tested by
no test coverage detected