Fixing RO Security Vulnerabilities
[osm/RO.git] / RO-plugin / osm_ro_plugin / openflow_conn.py
index 17351b0..afc0b82 100644 (file)
 # under the License.
 #
 ##
-import logging
+
 from http import HTTPStatus
-from osm_ro_plugin.sdnconn import SdnConnectorBase, SdnConnectorError
+import logging
 from uuid import uuid4
 
+from osm_ro_plugin.sdnconn import SdnConnectorBase, SdnConnectorError
+
+
 """
 Implement an Abstract class 'OpenflowConn' and an engine 'SdnConnectorOpenFlow' used for base class for SDN plugings
 that implements a pro-active opeflow rules.
@@ -366,7 +369,7 @@ class SdnConnectorOpenFlow(SdnConnectorBase):
                 try:
                     self.of_connector.del_flow(flow_id)
                 except OpenflowConnNotFoundException:
-                    pass
+                    self.logger.exception("OpenflowConnNotFoundException occured.")
                 except OpenflowConnException as e:
                     error_text = "Cannot remove rule '{}': {}".format(flow_id, e)
                     error_list.append(error_text)