if wim_account_name and self.vim.config["wim_external_ports"]:
# add external port to connect WIM. Try with compute node __WIM:wim_name and __WIM
action_text = "attaching external port to ovim network"
if wim_account_name and self.vim.config["wim_external_ports"]:
# add external port to connect WIM. Try with compute node __WIM:wim_name and __WIM
action_text = "attaching external port to ovim network"
if sdn_net_id:
# Delete any attached port to this sdn network. There can be ports associated to this network in case
# it was manually done using 'openmano vim-net-sdn-attach'
if sdn_net_id:
# Delete any attached port to this sdn network. There can be ports associated to this network in case
# it was manually done using 'openmano vim-net-sdn-attach'
for port in port_list:
self.ovim.delete_port(port['uuid'], idempotent=True)
self.ovim.delete_network(sdn_net_id, idempotent=True)
for port in port_list:
self.ovim.delete_port(port['uuid'], idempotent=True)
self.ovim.delete_network(sdn_net_id, idempotent=True)