| commit | 3dcff2e821908afdc6625d0328c208d9b0b6f6e8 | [log] [tgz] |
|---|---|---|
| author | limon <alimonj@indra.es> | Mon Jul 24 15:53:41 2023 +0200 |
| committer | gatici <gulsum.atici@canonical.com> | Mon Jul 24 18:48:45 2023 +0300 |
| tree | 06e57b82a763d55e247969c975249ac291d4da04 | |
| parent | bc1cef067e5a07fb60d35c51234fc0a5f5c3ab3e [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 f8b1c5a..65ddb04 100644 --- a/RO-VIM-openstack/osm_rovim_openstack/vimconn_openstack.py +++ b/RO-VIM-openstack/osm_rovim_openstack/vimconn_openstack.py
@@ -2822,11 +2822,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))