Skip to content

[202211] cherry-pick from master#724

Merged
StormLiangMS merged 3 commits intosonic-net:202211from
StormLiangMS:cherry-pick-202211
Dec 11, 2022
Merged

[202211] cherry-pick from master#724
StormLiangMS merged 3 commits intosonic-net:202211from
StormLiangMS:cherry-pick-202211

Conversation

@StormLiangMS
Copy link
Contributor

Cherry-pick from master branch

liuh-80 and others added 3 commits December 11, 2022 10:33
#### Why I did it
Support sonic-swss-common read Yang model defaut value.

#### How I did it
Add decorator for Yang default value.

#### How to verify it
Add new UT to cover new decorate code.
Pass all UT and E2E test cases.

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

<!--
- Note we only backport fixes to a release branch, *not* features!
- Please also provide a reason for the backporting below.
- e.g.
- [x] 202006
-->

- [ ] 201811
- [ ] 201911
- [ ] 202006
- [ ] 202012
- [ ] 202106
- [ ] 202111

#### Description for the changelog
Add decorator for Yang default value.

#### Link to config_db schema for YANG module changes
<!--
Provide a link to config_db schema for the table for which YANG model
is defined
Link should point to correct section on https://github.com/Azure/SONiC/wiki/Configuration.
-->

#### A picture of a cute animal (not mandatory but encouraged)
Why I did it
Use SWIG to generate GO wrapper for sonic-swss-common, and SWIG report syntax error for "%pythoncode%".
Related lines are only used for python wrapper, so we should use "#ifdef SWIGPYTHON".

How I did it
Use SWIGPYTHON to improve SWIG for python wrapper.

How to verify it
Build succeed and pass all UT.
Why I did it
sonic-gnmi needs to reuse swsscommon.i

How I did it
Install swsscommon.i with libswsscommon-dev

How to verify it
Install libswsscommon-dev and check /usr/share/swss
@StormLiangMS
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StormLiangMS StormLiangMS merged commit cfe41e4 into sonic-net:202211 Dec 11, 2022
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.

3 participants