(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@gmail.com 2013-09-04 17:01:01 +00:00
parent e772d5146a
commit cbda2f753b

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)