(Boeing r1763)

include server TLV when generating node messages

useful for Python scripts that generate messages for feeding into the broker
This commit is contained in:
ahrenholz 2013-09-04 17:01:01 +00:00
parent 0694a20793
commit 83d238c691

View file

@ -128,6 +128,10 @@ class PyCoreObj(object):
if hasattr(self, "type") and self.type is not None:
tlvdata += coreapi.CoreNodeTlv.pack(coreapi.CORE_TLV_NODE_MODEL,
self.type)
if hasattr(self, "server") and self.server is not None:
tlvdata += coreapi.CoreNodeTlv.pack(coreapi.CORE_TLV_NODE_EMUSRV,
self.server)
if x is not None:
tlvdata += coreapi.CoreNodeTlv.pack(coreapi.CORE_TLV_NODE_XPOS, x)