+442
−69
File changed.
Preview size limit exceeded, changes collapsed.
Loading
Restores the layer that lets a P2MP optical service be created through
the standard TFS Service API, which the previous commit missed by
focusing on the alarm/telemetry pipeline and the OpticalController
service itself:
- service/service/tools/OpticalTools.py: adds refresh_opticalcontroller_pmp,
add_lightpath_pmp(_simple), adapt_reply_pmp(_simple) -- the functions that
actually call into OpticalController's P2MP endpoints from a Service
creation request.
- service/service/ServiceServiceServicerImpl.py: restores the oc_type==3/4
dispatch branches (PMP / simple PMP) in CreateService.
- service/service/service_handlers/oc/{OCServiceHandler,OCTools}.py: restores
the op_mode==9 (PMP) branches in SetEndpoint/DeleteEndpoint and the flow-
conversion helpers they call.
- service/service/task_scheduler/TaskExecutor.py: adds
configure_optical_device_pmp/deconfigure_optical_device_pmp.
- device/service/Tools.py: this file is entirely optical-device-configuration
logic (not shared with other drivers as it first appeared) -- adds the
frequency-tracking machinery (clear_frequency_tracking, get_slot_frequency,
frequency_converter) and the resource_keys-aware populate_config_rules that
DeviceServiceServicerImpl.py and OpenConfigServicer.py call.
- device/service/drivers/optical_tfs/{OpticalTfsDriver,TfsApiClient}.py:
makes context_uuid/topology_uuid configurable instead of always using the
defaults (backward compatible, generic improvement).
All of the above are self-contained within their own service packages --
confirmed no other service imports these modules -- so each was adopted
wholesale rather than hand-merged.
Verified: rebuilt and redeployed device + service on top of the already
end-to-end-tested stack; the full 4-cycle alarm lifecycle regression test
still passes cleanly, and all 13 cluster services remain healthy with zero
restarts.
Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com>
File changed.
Preview size limit exceeded, changes collapsed.