worked through a couple todos, removed usage of eval within parsing xml files

This commit is contained in:
Blake J. Harnden 2017-08-07 13:02:25 -07:00
parent e4b280196b
commit 8612c73d49
8 changed files with 76 additions and 58 deletions

View file

@ -151,7 +151,7 @@ class CoreDocumentParser1(object):
return nodeutils.get_node_class(NodeTypes.EMANE)
else:
logger.warn('unknown network type: \'%s\'', coretype)
return xmlutils.xml_type_to_node_class(self.session, coretype)
return xmlutils.xml_type_to_node_class(coretype)
return nodeutils.get_node_class(NodeTypes.WIRELESS_LAN)
logger.warn('unknown network type: \'%s\'', network_type)
return None