From 4b3cc0aa4e8359b68341fb02d74e2c834e85ebcb Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sat, 10 Sep 2022 21:58:44 +0200 Subject: Improve platform parsing --- esds/helpers/platform.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'esds/helpers') 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"]: -- cgit v1.2.3