mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-08-27 20:40:13 +03:00
Previously apply_defs_to_new_link ran during finalize (after link._created=True), issuing one PUT /nio round-trip per link end for each inherited marker — 5000+ HTTP round-trips even for a single def. Move it into _prepare_link_from_topology (memory_only) so the inherited markers are already in _link_data when _prepare() constructs the NIO specs, and create_batch_nios carries them in the single batch dispatch. Finalize no longer calls apply_defs_to_new_link. Interactive link creation (dragging a cable in the UI) still goes through the per-link create() → apply_defs_to_new_link path — a single link is fast.