Skip to content

Add OTN alarm and notification support - #1

Closed
jjin62 wants to merge 2 commits into
otn-devfrom
feature-otn-notification
Closed

Add OTN alarm and notification support#1
jjin62 wants to merge 2 commits into
otn-devfrom
feature-otn-notification

Conversation

@jjin62

@jjin62 jjin62 commented Feb 28, 2026

Copy link
Copy Markdown
Collaborator

This PR implements the OtnDeviceOrch and associated configuration management within sonic-swss to support OTN alarm event notifications.

By adding a specialized orchestrator for OTN devices, this change allows the system to register for SAI notifications and handle the lifecycle of OTN device objects. This is a key part of the sonic-buildimage issue #18 implementation.

Dependencies
This PR has a multi-layer dependency chain:

Key Changes

  • OtnDeviceOrch: Introduced a new orchestrator class in orchagent/otn/otndeviceorch.cpp that:

    • Registers for SAI_SWITCH_ATTR_OTN_ALARM_EVENT_NOTIFY.
    • Handles OnOtnDeviceAlarmNotification callbacks.
    • Manages OTN device object creation and attribute updates.
  • Config Management: Updated OtnMgr in cfgmgr/otnmgr.cpp to support writing OTN device configurations from ConfigDB to AppDB.

  • Daemon Integration: Updated otnorchdaemon and otnmgrd to initialize and include the new OTN device tables and orchestrators.

  • Refactoring: Standardized ObjectOrch constructors to better support varied SAI object types.

1. Support attenuator, oa, ocm, osc OTN objects.
2. Improve OTN flex counter feature.
3. Support OTN config manager.

Signed-off-by: oplklum <lu.mao@molex.com>
@jjin62
jjin62 changed the base branch from 202411_otn to master April 1, 2026 02:17
@jjin62
jjin62 changed the base branch from master to otn-dev April 1, 2026 02:22
@jjin62
jjin62 changed the base branch from otn-dev to 202411_otn April 1, 2026 02:22
@jjin62
jjin62 force-pushed the feature-otn-notification branch from 13d356a to d5b9bdc Compare April 1, 2026 02:25
@jjin62
jjin62 changed the base branch from 202411_otn to otn-dev April 1, 2026 02:25
@jjin62
jjin62 force-pushed the otn-dev branch 4 times, most recently from 848d810 to 5d57f40 Compare June 11, 2026 17:50
@jjin62 jjin62 closed this Jun 19, 2026
@jjin62

jjin62 commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator Author

do it later.

@jjin62
jjin62 deleted the feature-otn-notification branch June 19, 2026 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants