+79
−0
+82
−0
Loading
Adds the TeraFlowSDN side of the four-controller German lab (Ryu, TFS,
TransportPCE, ONOS) and fixes the faults found while driving it from the
central orchestrator over MCP/REST.
Topology (src/tests/PMPv1/ofc26): 27 devices -- 5 edge ROADMs and 6
transceivers on NETCONF agents, 8 OLE and 2 OLA as open-line-system
devices, and 3 abstracted TransportPCE border ROADMs plus 3 emulated
far-end transponders. 34 optical links and 32 fibre links. The line
equipment is deliberately off the optical path: the optical controller
drops any device that is neither ROADM nor transponder from its RSA
graph, and every link touching it with it.
Descriptor loading:
- split_links_by_type routed every LINKTYPE_FIBER link to SetOpticalLink,
but OpticalLink has no link_type or attributes field, so an ordinary
fibre Link raised ValueError inside the loader's worker thread, before
any RPC, leaving nothing in the context log. Discriminate on the
payload (optical_details) and strip Link-only fields.
Optical controller:
- slot_selection had an unconditional first-fit block ahead of the
reservation and preferred-band logic; since every branch returned,
both were unreachable and a pinned service silently got first-fit.
Its own tests were failing on this.
- Realign the C band on the ITU 50 GHz grid. frequency_converter reports
a centre as a slot edge plus 6.25 GHz, so with Fc on the 12.5 GHz grid
every centre landed 6.25 GHz off the ITU grid and a peer domain's
196.00 THz could never be matched. Fc now sits 6.25 GHz below the grid
(plus a guard slot) and Nc/C_Slot.width cover the whole C band.
Service component:
- One update left the service ACTIVE holding only its optical band, with
no /settings and no lightpath; repeating it created a second band and
orphaned the first. Request the lightpath inside the new band instead
of returning early.
- DeleteService read config_rules[0] and expected flow_id there. Rule 0
is routinely a /settings-ob_ rule, which has none, so nothing was
released and the caller got a bare Empty(). Find /settings by key,
release every band the service holds, remove the record, and raise
when there is nothing to release.
- Refuse an unsupported line rate naming the supported ones, instead of
letting rsa_fs_computation fall off the end of its last if and return
a bare None, which surfaced as an unexplained HTTP 500.
WebUI: draw links that reach an emulated device dashed, so a peer
domain's boundary is not shown as ordinary fibre.
Co-Authored-By:
Claude Opus 5 <noreply@anthropic.com>