Loading
opticalcontroller: honour persisted slot occupancy in P2MP spectrum assignment
consecutives_pmp built its candidate list from the slot map's keys alone, so every slot looked free regardless of its recorded value. That was harmless while link slots were re-initialised as a fully free band on every topology load, but develop persists spectrum state: a slot already carrying a service is stored with value 0, and the P2MP engine both re-offered those slots and failed to find a usable run, leaving assigned_slots and subcarriers empty and so configuring nothing. It now selects only slots recorded as free, which is what the point-to-point path already does in consecutives(). This keeps develop's spectrum persistence intact -- RSA.py is unchanged -- rather than restoring the old behaviour of resetting every band to free, which would have discarded it. Relates to #316