Parse_network: fix for omitted `domains` element

This commit is contained in:
Théophile Bastian 2020-03-12 11:57:38 +01:00
parent 7cae5e1f22
commit c58bf6798a
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ class YamlTopology:
dom_descr[dom] = {"links": []} dom_descr[dom] = {"links": []}
dom_descr[dom]["links"].append(cur_link) dom_descr[dom]["links"].append(cur_link)
for dom_conf_name in topology.get("domains", None): for dom_conf_name in topology.get("domains", {}):
if dom_conf_name not in dom_descr: if dom_conf_name not in dom_descr:
# Domain does not participate in any link: warn and ignore # Domain does not participate in any link: warn and ignore
print( print(