Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/aleph/vm/orchestrator/views/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,8 @@ async def recreate_network(request: web.Request):
execution = vm_info["execution"]
if execution.is_instance and str(vm_info["vm_hash"]) in recreated_vms:
try:
# Remove previous assigned ports as all forwarding port rules were deleted before
execution.mapped_ports = {}
await execution.fetch_port_redirect_config_and_setup()
logger.debug(f"Recreated port redirects for instance {vm_info['vm_hash']}")
except Exception as e:
Expand Down
Loading