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:223–227 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
221
return
len(self._rules)
222
223
def
encode_rules(self):
224
rules = []
225
for
rule in self._rules:
226
rules.append(rule.encode())
227
return
rules
228
229
def
add_vpp_config(self, expect_error=False):
230
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