mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-19 04:35:14 +02:00
A server killed before close() leaves the switch's kernel bridge behind with its ports still enslaved: a peer's persistent anchor TAP and cascade veth ends outlive uBridge. uBridge's brctl delete refuses a bridge that still has ports (EBUSY), so the best-effort recovery delete in _ensure_bridge() failed silently and brctl create hit EEXIST: the switch, and the project holding it, could no longer be opened (HTTP 409 "Could not create bridge gns3xxxxxx: File exists"). List the leftover bridge's ports from /sys/class/net/<bridge>/brif and release each with brctl delif before the delete. uBridge's brctl show reports no ports, and the switch already reads sysfs on the same host. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>