X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Flibraries%2FSwitchManager.py;h=aa43e45051008fd0b59dc04cdec7ace4877ef7b4;hb=d93ceab2af991b4377c521361cd359ab4a16c1b1;hp=d0cab65006a97ceedd1a6428441113350f1d3f75;hpb=59e81c38620fa1b61e15771191e35771450b9499;p=integration%2Ftest.git diff --git a/csit/libraries/SwitchManager.py b/csit/libraries/SwitchManager.py index d0cab65006..aa43e45051 100644 --- a/csit/libraries/SwitchManager.py +++ b/csit/libraries/SwitchManager.py @@ -14,9 +14,9 @@ class SwitchManager(object): """ Return all nodes. """ - if isinstance(content, dict) and 'nodeProperties' in content: + if isinstance(content, dict) and "nodeProperties" in content: self.builtin.log("18") - return [e.get('node') for e in content['nodeProperties']] + return [e.get("node") for e in content["nodeProperties"]] else: self.builtin.log("21") return None @@ -24,9 +24,9 @@ class SwitchManager(object): def extract_all_properties(self, content, property_type): if isinstance(content, dict) and property_type in content: self.builtin.log("26") - list1 = [e.get('properties') for e in content[property_type]] + list1 = [e.get("properties") for e in content[property_type]] self.builtin.log(list1) - return [e.get('properties') for e in content[property_type]] + return [e.get("properties") for e in content[property_type]] else: self.builtin.log("29") return None @@ -36,13 +36,13 @@ class SwitchManager(object): return [e.get(property) for e in res] def extract_all_node_properties(self, content): - return self.extract_all_properties(content, 'nodeProperties') + return self.extract_all_properties(content, "nodeProperties") def extract_node_property_values(self, content, property): - return self.extract_property_value(content, property, 'nodeProperties') + return self.extract_property_value(content, property, "nodeProperties") def extract_all_nodeconnector_properties(self, content): - return self.extract_all_properties(content, 'nodeConnectorProperties') + return self.extract_all_properties(content, "nodeConnectorProperties") def extract_nodeconnector_property_values(self, content, property): - return self.extract_property_value(content, property, 'nodeConnectorProperties') + return self.extract_property_value(content, property, "nodeConnectorProperties")