Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit b0208b1e authored by ramdsc's avatar ramdsc Committed by Millian Poquet
Browse files

Secured XML parsing

parent e265153e
......@@ -36,7 +36,11 @@ Fundamental architecture approach:
- **Memory**: amount of storage shared by all processors in the node.
Energy and computational power are expressed per core for fine grain analysis. Cores are SimGrid *hosts*, so they are considered as individual resources.
Network types apply to both the node up / down links, the cluster backbones and the global links in the main zone.
Network types apply to both the node up / down links, the cluster backbones and the global links in the main zone.
## Requirements
- [LXML](https://pypi.org/project/lxml/) Python package
## Usage
......
#!/usr/bin/env python3
import argparse
import json
import xml.dom.minidom as xml_format
import xml.etree.ElementTree as xml
import defusedxml.minidom as xml_format
from defusedxml.lxml import _etree as xml
def main():
"""
......@@ -141,7 +141,7 @@ def main():
xml.SubElement(cluster_xml, "host_link",
attrib={"id": core_id, "up": udlink_id, "down": udlink_id})
for core_idx in range(int(proc_template["nb_cores"])):
core_id = "cor_{}_{}".format(core_idx, proc_id)
_core_attrs = {"id": core_id}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment