Skip to content

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

Merged
lguohan merged 4 commits intosonic-net:masterfrom
BYGX-wcr:add_srv6_yang_in_setup
Jan 30, 2025
Merged

[YANG] Add missing entry for sonic-srv6.yang in sonic-yang-models/setup.py#21560
lguohan merged 4 commits intosonic-net:masterfrom
BYGX-wcr:add_srv6_yang_in_setup

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
@azure-pipelines
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

@azure-pipelines
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.

'./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

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@lguohan lguohan merged commit f363258 into sonic-net:master Jan 30, 2025
20 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