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 Yang model for XCVRD_LOG|Y_CABLE #20496

Merged
merged 5 commits into from
Oct 29, 2024

Conversation

vdahiya12
Copy link
Contributor

@vdahiya12 vdahiya12 commented Oct 14, 2024

Why I did it

Adding yang model for CONFIG_DB table XCVRD_LOG|Y_CABLE.
Introduced by
https://github.com/sonic-net/sonic-utilities/blob/master/config/muxcable.py#L1230-L1235

sign-off: Vaibhav Dahiya [[email protected]]

Work item tracking
  • Microsoft ADO (number only):
  • 30044479

How I did it

Added the changes in sonic-yang-models

How to verify it

UT test

==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.9.2, pytest-6.0.2, py-1.10.0, pluggy-0.13.0
rootdir: /sonic/src/sonic-yang-models
plugins: pyfakefs-5.2.3, cov-2.10.1
collected 3 items                                                                                                                                                                           

tests/test_sonic_yang_models.py ..                                                                                                                                                    [ 66%]
tests/yang_model_tests/test_yang_model.py .                                                                                                                                           [100%]

===================================================================================== 3 passed in 2.06s =====================================================================================

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)

@vdahiya12 vdahiya12 requested a review from qiluo-msft as a code owner October 14, 2024 18:16
Signed-off-by: Vaibhav Dahiya <[email protected]>
@qiluo-msft qiluo-msft requested review from wen587 and ganglyu October 14, 2024 19:03
prgeor
prgeor previously approved these changes Oct 14, 2024
@ganglyu
Copy link
Contributor

ganglyu commented Oct 14, 2024

sonic-yang-mgmt unit test is broken

"Y_CABLE": {
"log_verbosity": "notice"
}
},
Copy link
Contributor

Choose a reason for hiding this comment

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

This table should be at the same level as BANNER_MESSAGE.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

Signed-off-by: Vaibhav Dahiya <[email protected]>
Copy link
Contributor

@wen587 wen587 left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -2723,6 +2728,7 @@
}
}
},

Copy link
Contributor

Choose a reason for hiding this comment

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

extra space

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed

Signed-off-by: Vaibhav Dahiya <[email protected]>
Signed-off-by: Vaibhav Dahiya <[email protected]>
@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link

Commenter does not have sufficient privileges for PR 20496 in repo sonic-net/sonic-buildimage

@vdahiya12
Copy link
Contributor Author

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vdahiya12
Copy link
Contributor Author

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vdahiya12
Copy link
Contributor Author

vdahiya12 commented Oct 25, 2024

@yxieca @lguohan please help merge

@wen587
Copy link
Contributor

wen587 commented Oct 29, 2024

@qiluo-msft , please help merge

@qiluo-msft qiluo-msft merged commit d6d8c57 into sonic-net:master Oct 29, 2024
21 of 22 checks passed
@wen587
Copy link
Contributor

wen587 commented Oct 31, 2024

Hi @vdahiya12 , please help contact branch owner and backport to previous branch

rkavitha-hcl pushed a commit to rkavitha-hcl/sonic-buildimage that referenced this pull request Nov 15, 2024
#### Why I did it


Adding yang model for CONFIG_DB table XCVRD_LOG|Y_CABLE.
Introduced by 
https://github.com/sonic-net/sonic-utilities/blob/master/config/muxcable.py#L1230-L1235

#### How I did it
Added the changes in sonic-yang-models
#### How to verify it
UT test 

```
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.9.2, pytest-6.0.2, py-1.10.0, pluggy-0.13.0
rootdir: /sonic/src/sonic-yang-models
plugins: pyfakefs-5.2.3, cov-2.10.1
collected 3 items                                                                                                                                                                           

tests/test_sonic_yang_models.py ..                                                                                                                                                    [ 66%]
tests/yang_model_tests/test_yang_model.py .                                                                                                                                           [100%]

===================================================================================== 3 passed in 2.06s =====================================================================================
```
aidan-gallagher pushed a commit to aidan-gallagher/sonic-buildimage that referenced this pull request Nov 16, 2024
#### Why I did it


Adding yang model for CONFIG_DB table XCVRD_LOG|Y_CABLE.
Introduced by 
https://github.com/sonic-net/sonic-utilities/blob/master/config/muxcable.py#L1230-L1235

#### How I did it
Added the changes in sonic-yang-models
#### How to verify it
UT test 

```
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.9.2, pytest-6.0.2, py-1.10.0, pluggy-0.13.0
rootdir: /sonic/src/sonic-yang-models
plugins: pyfakefs-5.2.3, cov-2.10.1
collected 3 items                                                                                                                                                                           

tests/test_sonic_yang_models.py ..                                                                                                                                                    [ 66%]
tests/yang_model_tests/test_yang_model.py .                                                                                                                                           [100%]

===================================================================================== 3 passed in 2.06s =====================================================================================
```
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