Skip to content

Support OTN attenuator and amplifier#5

Merged
jjin62 merged 2 commits into
sonic-otn:otn_prfrom
sonic-molex:otn_pr
Jul 9, 2026
Merged

Support OTN attenuator and amplifier#5
jjin62 merged 2 commits into
sonic-otn:otn_prfrom
sonic-molex:otn_pr

Conversation

@jjin62

@jjin62 jjin62 commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Add support for OTN attenuator and amplifier based on OCP SAI PR #2217.

Add support for OTN attenuator and amplifier based on OCP SAI PR #2217.
@qiluo-msft

Copy link
Copy Markdown

Would you like to raise a PR to https://github.com/sonic-net/sonic-swss-common?
I do not see special reason to use a fork.

@jjin62

jjin62 commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator Author

Yes. After team review, I will merge it into sonic-otn otn_pr branch, then submit a pr to sonic-net.

Comment thread common/schema.h Outdated
#define CHASSIS_APP_LAG_TABLE_NAME "SYSTEM_LAG_TABLE"
#define CHASSIS_APP_LAG_MEMBER_TABLE_NAME "SYSTEM_LAG_MEMBER_TABLE"

#define CFG_OTN_ATTENUATOR_TABLE_NAME "OTN_ATTENUATOR"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as mentioned in comment in line 351 in this file, should we add CFG_* tables here? We don't have plans to add sonic native yang for OTN?

(sorry if i missed this context in any community meeting)

@jjin62 jjin62 Jun 30, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For OTN, we use openconfig yang, not sonic yang. This is good point. Seems this won't pass the CI pipe line prevent-cfg.yml. looks like we have to add sonic yang on yang-models folder.

@jjin62 jjin62 Jul 8, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added sonic yang to auto generate config DB tables name OTN_OA and OTN_ATTENUATOR.
sonic-otn/sonic-buildimage#29
And removed them from schema.h

@ImAmanTanwar @accelinkotn @sonic-otn @iknownothing13, can you approve it, if it is ok with you?

@accelinkotn accelinkotn left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Co-authored-by: Cursor <cursoragent@cursor.com>

@iknownothing13 iknownothing13 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jjin62
jjin62 merged commit 8e40c11 into sonic-otn:otn_pr Jul 9, 2026
1 check passed
@jjin62

jjin62 commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator Author

@qiluo-msft FYI, The PR submitted to the upstream. sonic-net#1223

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.

6 participants