A saved lab reopens with an empty flow table: serialize() never writes flows, fromJSON() never reads them #1435
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge#1435
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The flow table lives on the topology (runtime state of the board), but
Topology.serialize()never wrote it andTopology.fromJSON()never read it. Measured live: builda -- sw -- r1, open an established TCP flow, save, reload —while the document the user saved said a conversation existed. One more surface that had the fact and one that did not.
What should be true
serialize()writesflows(id, state, hops, counters) with the board;fromJSON()restores them — same id, same state, same hops, so a later removal still knows the path;flow-N;loadIssues(E_FLOW_GHOST_ENDPOINT), and the board still opens;flows: [], not a missing key.