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

Method Create

extras/packetforge/Path.py:21–35  ·  view source on GitHub ↗
(token)

Source from the content-addressed store, hash-verified

19 self.stack = []
20
21 def Create(token):
22 try:
23 path = Path()
24 ss = token["stack"]
25
26 if ss == None:
27 return None
28
29 for hct in ss:
30 path.stack.append(PathNode.Create(hct))
31
32 return path
33 except:
34 print("Failed to create Path from jsonfile")
35 return None

Callers

nothing calls this directly

Calls 3

PathClass · 0.85
printFunction · 0.85
appendMethod · 0.80

Tested by

no test coverage detected