| commit | 878f869cb0e0f7b175f396959364781429fbea37 | [log] [tgz] |
|---|---|---|
| author | limon <alimonj@indra.es> | Mon Jul 24 15:53:41 2023 +0200 |
| committer | aticig <gulsum.atici@canonical.com> | Tue Jul 25 21:08:04 2023 +0200 |
| tree | d7b898b38dcc34467e3fc66caa7911696c828cfd | |
| parent | 92e1cc0e4396787c13293f3a5090f57a40377fd9 [diff] [blame] |
Fix bug 2275 Change-Id: I2de80100a8b2efcd9d9beca67224ab46714e0afc Signed-off-by: limon <alimonj@indra.es>
diff --git a/RO-VIM-openstack/osm_rovim_openstack/vimconn_openstack.py b/RO-VIM-openstack/osm_rovim_openstack/vimconn_openstack.py index 70b3f21..f225be4 100644 --- a/RO-VIM-openstack/osm_rovim_openstack/vimconn_openstack.py +++ b/RO-VIM-openstack/osm_rovim_openstack/vimconn_openstack.py
@@ -2988,11 +2988,7 @@ k_id (str): Port id in the VIM """ try: - port_dict = self.neutron.list_ports() - existing_ports = [port["id"] for port in port_dict["ports"] if port_dict] - - if k_id in existing_ports: - self.neutron.delete_port(k_id) + self.neutron.delete_port(k_id) except Exception as e: self.logger.error("Error deleting port: {}: {}".format(type(e).__name__, e))