fix to EMANE TDMA XML generation

This commit is contained in:
adamson 2016-09-06 10:16:31 -04:00 committed by Tom Goff
parent e5e75756ea
commit f8da9334d8

View file

@ -85,6 +85,7 @@ class EmaneTdmaModel(EmaneModel):
nemdoc = e.xmldoc("nem") nemdoc = e.xmldoc("nem")
nem = nemdoc.getElementsByTagName("nem").pop() nem = nemdoc.getElementsByTagName("nem").pop()
nem.setAttribute("name", "TDMA NEM") nem.setAttribute("name", "TDMA NEM")
e.appendtransporttonem(nemdoc, nem, self.objid, ifc)
mactag = nemdoc.createElement("mac") mactag = nemdoc.createElement("mac")
mactag.setAttribute("definition", self.macxmlname(ifc)) mactag.setAttribute("definition", self.macxmlname(ifc))
nem.appendChild(mactag) nem.appendChild(mactag)