Fixing RO Security Vulnerabilities
Jinja2 sets autoescape to False, disabling SSL certificate checks, use of unsafe yaml load,
Try-Except-Pass detected, use of assert detected.
Removing openmanoconfig.py.
Change-Id: I3353208e150ae6c2f91befa1a3bbed33ed0c528d
Signed-off-by: aticig <gulsum.atici@canonical.com>
diff --git a/RO-plugin/osm_ro_plugin/openflow_conn.py b/RO-plugin/osm_ro_plugin/openflow_conn.py
index f1869e8..afc0b82 100644
--- a/RO-plugin/osm_ro_plugin/openflow_conn.py
+++ b/RO-plugin/osm_ro_plugin/openflow_conn.py
@@ -369,7 +369,7 @@
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)