Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[YANG] Add missing entry for sonic-srv6.yang in sonic-yang-models/setup.py #21560

Merged
merged 4 commits into from
Jan 30, 2025

Conversation

BYGX-wcr
Copy link
Contributor

Why I did it

Previously, I did not add an entry in setup.py to install the srv6 yang model

Work item tracking
  • Microsoft ADO (number only):

How I did it

Add the missing entry for sonic-srv6.yang in sonic-yang-models/setup.py

How to verify it

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@BYGX-wcr BYGX-wcr requested a review from qiluo-msft as a code owner January 29, 2025 18:57
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@BYGX-wcr BYGX-wcr requested a review from abdosi January 29, 2025 18:58
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@BYGX-wcr BYGX-wcr requested a review from dgsudharsan January 29, 2025 18:58
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

},
"SRV6_MY_LOCATORS": {
"loc1": {
"prefix": "fcbb:bbbb:1::"
Copy link
Contributor

Choose a reason for hiding this comment

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

do we not need here mask ?

Copy link
Contributor Author

@BYGX-wcr BYGX-wcr Jan 29, 2025

Choose a reason for hiding this comment

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

No. The prefix length should block_len+node_len.

@@ -210,7 +210,8 @@ def run(self):
'./yang-models/sonic-xcvrd-log.yang',
'./yang-models/sonic-grpcclient.yang',
'./yang-models/sonic-serial-console.yang',
'./yang-models/sonic-smart-switch.yang',]),
'./yang-models/sonic-smart-switch.yang',
'./yang-models/sonic-srv6.yang']),
('cvlyang-models', ['./cvlyang-models/sonic-acl.yang',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need to define the file in cvlyang-models as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What is cvlyang-models? We didn't add any yang model under cylyang-models directory

Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like it is related to management framework feature. In such case I don' think its required.

@dgsudharsan dgsudharsan added the YANG YANG model related changes label Jan 30, 2025
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@lguohan lguohan merged commit f363258 into sonic-net:master Jan 30, 2025
21 checks passed
stepanblyschak pushed a commit to stepanblyschak/sonic-buildimage that referenced this pull request Jan 31, 2025
…up.py (sonic-net#21560)

Previously, I did not add an entry in setup.py to install the srv6 yang model
Now, adding the missing entry for sonic-srv6.yang in sonic-yang-models/setup.py
stepanblyschak pushed a commit to stepanblyschak/sonic-buildimage that referenced this pull request Jan 31, 2025
[Cherry-pick][YANG] Add missing entry for sonic-srv6.yang in sonic-yang-models/setup.py (sonic-net#21560)
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to msft-202412: Azure/sonic-buildimage-msft#571

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants