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

Method SetAttribute

extras/packetforge/ProtocolHeader.py:72–77  ·  view source on GitHub ↗
(self, name, expression)

Source from the content-addressed store, hash-verified

70 return self.setField(name, expression, True)
71
72 def SetAttribute(self, name, expression):
73 if name not in self.attributeDict:
74 return False
75 attr = self.attributeDict[name]
76
77 return attr.UpdateValue(expression)
78
79 def SetMask(self, name, expression):
80 if name not in self.fieldDict:

Callers 1

ForgeMethod · 0.80

Calls 1

UpdateValueMethod · 0.45

Tested by

no test coverage detected