Skip to content

libyang: upgrade to v3 step 3 -- port sonic-yang-mgmt#21716

Closed
bradh352 wants to merge 9 commits intosonic-net:masterfrom
bradh352:bradh352/libyang3-pr2
Closed

libyang: upgrade to v3 step 3 -- port sonic-yang-mgmt#21716
bradh352 wants to merge 9 commits intosonic-net:masterfrom
bradh352:bradh352/libyang3-pr2

Conversation

@bradh352
Copy link
Copy Markdown
Collaborator

@bradh352 bradh352 commented Feb 12, 2025

Why I did it

libyang3 porting. See master tracking ticket #22385

Port of sonic-yang-mgmt

NOTE: this PR actually includes (as a squashed commits) PR #21679, #21719. Please review the individual commits (skipping the squashed commit) otherwise this may seem too large/confusing.

Depends PR #21679, #21719
Fixes #22385

Work item tracking

How I did it

How to verify it

All PRs listed on #22385 must be merged into a local build tree in order to test due to cross-repository dependencies.

It is expected the CI/CD system to FAIL with this PR due to cross dependencies, so do not treat such failures as a reason to not review these changes.

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

None

Tested branch (Please provide the tested image version)

master as of 20250212

Description for the changelog

libyang: upgrade to v3 step 2 -- port sonic-yang-mgmt

Link to config_db schema for YANG module changes

N/A

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

Signed-off-by: Brad House (@bradh352)

@bradh352 bradh352 marked this pull request as draft February 12, 2025 14:07
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@bradh352
Copy link
Copy Markdown
Collaborator Author

@qiluo-msft @ganglyu this is the next PR in the series of libyang3 porting...

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@bradh352 bradh352 changed the title libyang: upgrade to v3 step 2 -- port sonic-yang-mgmt libyang: upgrade to v3 step 3 -- port sonic-yang-mgmt Feb 12, 2025
@bradh352 bradh352 force-pushed the bradh352/libyang3-pr2 branch from cb482c1 to cf56243 Compare February 12, 2025 18:37
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@bradh352 bradh352 force-pushed the bradh352/libyang3-pr2 branch from 491a041 to ef2790d Compare February 13, 2025 16:16
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@bradh352 bradh352 force-pushed the bradh352/libyang3-pr2 branch from ef2790d to 5f82fd2 Compare February 13, 2025 17:56
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@bradh352 bradh352 force-pushed the bradh352/libyang3-pr2 branch from 5f82fd2 to 2a4d521 Compare February 13, 2025 18:05
@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

bradh352 added a commit to bradh352/sonic-buildimage that referenced this pull request Mar 7, 2025
@bradh352 bradh352 force-pushed the bradh352/libyang3-pr2 branch from fb12c4e to 14dcadd Compare March 7, 2025 02:22
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@bradh352 bradh352 force-pushed the bradh352/libyang3-pr2 branch from 14dcadd to 4bafb2b Compare March 7, 2025 02:34
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@bradh352 bradh352 force-pushed the bradh352/libyang3-pr2 branch from 4bafb2b to a329bb4 Compare March 7, 2025 02:39
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

GCU calls this over and over.  We don't want a whole tree reversal
each time, cache!
@bradh352 bradh352 force-pushed the bradh352/libyang3-pr2 branch from a329bb4 to df14eb9 Compare March 7, 2025 03:07
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@bradh352 bradh352 force-pushed the bradh352/libyang3-pr2 branch from ce4f096 to eb02b43 Compare March 7, 2025 21:22
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@github-project-automation github-project-automation bot moved this to To be reviewed in yang Jun 12, 2025
@zhangyanzhao zhangyanzhao moved this from To be reviewed to Review in progress in yang Jun 12, 2025
@zhangyanzhao zhangyanzhao requested a review from vaibhavhd June 12, 2025 16:22
Comment thread rules/libyang3.mk
$(LIBYANG3)_SRC_PATH = $(SRC_PATH)/libyang3
SONIC_MAKE_DEBS += $(LIBYANG3)

LIBYANG3_DEV = libyang-dev_$(LIBYANG3_FULLVERSION)_$(CONFIGURED_ARCH).deb
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please rename to libyang3-dev_... to stick to existing naming convention

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.

The various versions of libyang's dev libraries conflict with eachother, this is likely why upstream debian named them the same. They cannot be installed simultaneously. Again, this is the upstream naming. It wouldn't be wise to change this and have to maintain patches for this purpose.

@bradh352
Copy link
Copy Markdown
Collaborator Author

bradh352 commented Apr 6, 2026

closing in favor of #26584

@bradh352 bradh352 closed this Apr 6, 2026
@github-project-automation github-project-automation bot moved this from Review in progress to Done in yang Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Enhancement: Upgrade to libyang3

5 participants