fixed typo during cleanup pass

This commit is contained in:
Blake J. Harnden 2018-03-27 23:14:04 -07:00
parent b7327a5798
commit 2b2548a927

View file

@ -78,14 +78,14 @@ class EmaneRfPipeModel(EmaneModel):
emane_manager.xmlwrite(nem_document, nem_name)
names = list(self.getnames())
mac_name = names[:len(self._config_mac)]
mac_names = names[:len(self._config_mac)]
phy_names = names[len(self._config_mac):]
mac_document = emane_manager.xmldoc("mac")
mac_element = mac_document.getElementsByTagName("mac").pop()
mac_element.setAttribute("name", "RF-PIPE MAC")
mac_element.setAttribute("library", "rfpipemaclayer")
for name in mac_name:
for name in mac_names:
value = self.valueof(name, values)
param = emane_manager.xmlparam(mac_document, name, value)
mac_element.appendChild(param)