summaryrefslogtreecommitdiff
path: root/esds/helpers
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-09-10 21:58:44 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2022-09-10 21:58:44 +0200
commit4b3cc0aa4e8359b68341fb02d74e2c834e85ebcb (patch)
treeb01a12c449187a2c95a65fb93f27ffbcaaa8efce /esds/helpers
parent5264b28126ed66a4236103f99d55f2eb425b0e6c (diff)
Improve platform parsing
Diffstat (limited to 'esds/helpers')
-rw-r--r--esds/helpers/platform.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/esds/helpers/platform.py b/esds/helpers/platform.py
index 119537a..bafd493 100644
--- a/esds/helpers/platform.py
+++ b/esds/helpers/platform.py
@@ -94,7 +94,9 @@ class YAMLPlatformFile:
interfaces=self.platform["interfaces"]
node_count=self.default["node_count"]
for i in interfaces:
- is_wired=not interfaces[i]["wireless"]
+ if interfaces[i]["type"] not in ["wireless","wired"]:
+ self.parsing_error("Invalid interface type \""+interfaces[i]["type"]+"\"")
+ is_wired=interfaces[i]["type"] == "wired"
links=list()
if type(interfaces[i]["links"]) == list:
for link in interfaces[i]["links"]: