X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=RO%2Fosm_ro%2Fwim%2Fopenflow_conn.py;h=655860e4fe48e447c371d7dfcadaa696010f6902;hb=4126d05e24ada55226bb13a9d556655811cedadc;hp=7d029f7f9161f5a13972609a16c623f2373bfdea;hpb=1d2f2609c00490a2b25ffedfc01ff97bc3ed571d;p=osm%2FRO.git diff --git a/RO/osm_ro/wim/openflow_conn.py b/RO/osm_ro/wim/openflow_conn.py index 7d029f7f..655860e4 100644 --- a/RO/osm_ro/wim/openflow_conn.py +++ b/RO/osm_ro/wim/openflow_conn.py @@ -308,7 +308,7 @@ class SdnConnectorOpenFlow(SdnConnectorBase): except OpenflowConnNotFoundException: pass except OpenflowConnException as e: - error_text = "Cannot remove rule '{}': {}".format(flow['name'], e) + error_text = "Cannot remove rule '{}': {}".format(flow_id, e) error_list.append(error_text) self.logger.error(error_text) created_items["installed_rules_ids"] = new_installed_rules_ids @@ -322,8 +322,9 @@ class SdnConnectorOpenFlow(SdnConnectorBase): except (SdnConnectorError, OpenflowConnException) as e: raise SdnConnectorError("Error while {}: {}".format(step, e)) from e except Exception as e: + error_text = "Error while {}: {}".format(step, e) self.logger.critical(error_text, exc_info=True) - raise SdnConnectorError("Error while {}: {}".format(step, e)) + raise SdnConnectorError(error_text) def _compute_net_flows(self, net_id, ports): new_flows = []