Skip to content

[fpmsyncd]: add libnexthopgroup in Makefile.am to support rib/fib - #4394

Merged
prsunny merged 2 commits into
sonic-net:masterfrom
LARLSN:dev-ribfib-libnexthopgroup
May 21, 2026
Merged

[fpmsyncd]: add libnexthopgroup in Makefile.am to support rib/fib#4394
prsunny merged 2 commits into
sonic-net:masterfrom
LARLSN:dev-ribfib-libnexthopgroup

Conversation

@LARLSN

@LARLSN LARLSN commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

What I did

Add libnexthopgroup in fpmsyncd Makefile.am to support RIB/FIB

Why I did it

In the RIB/FIB design, we need the libnexthopgroup compiled from sonic-fib to communicate with Zebra.
More details please refer the documents following:

RIB/FIB HLD: sonic-net/SONiC#2060
nhg mgr LLD: sonic-net/SONiC#2270
sonic-fib PR: sonic-net/SONiC#2270
RIB/FIB nhg mgr code: #4395

How I verified it

  1. Unit tests for libnexthopgroup.
  2. Unit tests for nhg mgr.
  3. Daily vsonic tests.

Details if related

@LARLSN
LARLSN requested a review from prsunny as a code owner March 26, 2026 04:30
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

…ture

Signed-off-by: linsongnan <linsongnan.lsn@alibaba-inc.com>
@LARLSN
LARLSN force-pushed the dev-ribfib-libnexthopgroup branch from fac9c4c to d0d61c4 Compare May 21, 2026 08:36
@linux-foundation-easycla

linux-foundation-easycla Bot commented May 21, 2026

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

Add libnexthopgroup deb package from sonic-buildimage common_libs
as both a compile-time and runtime dependency for VS test docker.

Signed-off-by: linsongnan <linsongnan.lsn@alibaba-inc.com>
@LARLSN
LARLSN force-pushed the dev-ribfib-libnexthopgroup branch from 4d0d749 to 40cbaf1 Compare May 21, 2026 11:23
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

prsunny pushed a commit that referenced this pull request Jun 10, 2026
…/fib (#4394)" (#4657)

This reverts #4394.

What I did
Remove build dependency on libnexthopgroup to unblock CI failures. This lib is not actively used in SWSS at the moment.

Why I did it
sonic-net/sonic-buildimage#27629 is part of the libyang1 to libyang3 migration and causes libnexthopgroup to not be built as part of the common-libs pipeline. Previously when the migration was in progress, both libyang1 and 3 were being built. All packages which were dependent on libyang3 (including libnexthopgroup transitively via FRR) were built as part of common-libs due to some serialization logic to prevent libyang1 and 3 from conflicting in sonic-buildimage at build time. Now that libyang1 is completely removed, this serialization logic doesn't exist anymore and libnexthopgroup is not built as part of common-libs, which causes the SWSS build to fail since libnexthopgroup is missing.
yxieca-admin pushed a commit that referenced this pull request Jun 13, 2026
…/fib" (#4668)

This reverts #4394.

<!--
Please make sure you have read and understood the contribution guildlines:
https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md

1. Make sure your commit includes a signature generted with `git commit -s`
2. Make sure your commit title follows the correct format: [component]: description
3. Make sure your commit message contains enough details about the change and related tests
4. Make sure your pull request adds related reviewers, asignees, labels

Please also provide the following information in this pull request:
-->

**What I did**
Remove build dependency on libnexthopgroup to unblock CI failures. This lib is not actively used in SWSS at the moment.

**Why I did it**
sonic-net/sonic-buildimage#27629 is part of the libyang1 to libyang3 migration and causes libnexthopgroup to not be built as part of the common-libs pipeline. Previously when the migration was in progress, both libyang1 and 3 were being built. All packages which were dependent on libyang3 (including libnexthopgroup transitively via FRR)  were built as part of common-libs due to some serialization logic to prevent libyang1 and 3 from conflicting in sonic-buildimage at build time. Now that libyang1 is completely removed, this serialization logic doesn't exist anymore and libnexthopgroup is not built as part of common-libs, which causes the SWSS build to fail since libnexthopgroup is missing.

**How I verified it**

**Details if related**

Signed-off-by: Sonic Build Admin <sonicbld@microsoft.com>
Yogapriya-cisco pushed a commit to prhoskot/sonic-swss that referenced this pull request Jul 13, 2026
…nic-net#4394)

* [fpmsyncd]: add libnexthopgroup in Makefile.am to support rib/fib feature
What I did

Add libnexthopgroup in fpmsyncd Makefile.am to support RIB/FIB

Why I did it

In the RIB/FIB design, we need the libnexthopgroup compiled from sonic-fib to communicate with Zebra.
More details please refer the documents following:

RIB/FIB HLD: sonic-net/SONiC#2060
nhg mgr LLD: sonic-net/SONiC#2270
sonic-fib PR: sonic-net/SONiC#2270
RIB/FIB nhg mgr code: sonic-net#4395

Signed-off-by: Yogapriya Mohankumar <ymohanku@cisco.com>
Yogapriya-cisco pushed a commit to prhoskot/sonic-swss that referenced this pull request Jul 13, 2026
…/fib (sonic-net#4394)" (sonic-net#4657)

This reverts sonic-net#4394.

What I did
Remove build dependency on libnexthopgroup to unblock CI failures. This lib is not actively used in SWSS at the moment.

Why I did it
sonic-net/sonic-buildimage#27629 is part of the libyang1 to libyang3 migration and causes libnexthopgroup to not be built as part of the common-libs pipeline. Previously when the migration was in progress, both libyang1 and 3 were being built. All packages which were dependent on libyang3 (including libnexthopgroup transitively via FRR) were built as part of common-libs due to some serialization logic to prevent libyang1 and 3 from conflicting in sonic-buildimage at build time. Now that libyang1 is completely removed, this serialization logic doesn't exist anymore and libnexthopgroup is not built as part of common-libs, which causes the SWSS build to fail since libnexthopgroup is missing.

Signed-off-by: Yogapriya Mohankumar <ymohanku@cisco.com>
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.

4 participants