def _analyze_entity_node(self, node, entity):
interface = node.get("interface")
if interface is not None:
mac_address = self.mac_addr_helper.get_interface_mac_addr(interface)
entity.set_interface(interface, mac_address)
for child in node.getchildren():
if child.tag == "packet":
# pre processing "include" node
# TODO: Possible to be deleted
#self.__add_include_to_packet_node(child)
# analyze packet node!
self._set_packet_node(child, entity)
if self.print_tc_preprocessing is True:
self.__indent(node)
ET.dump(node)
评论列表
文章目录