-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[fpmsyncd] Fpmsyncd Next Hop Table Enhancement #16762
Conversation
@@ -7,8 +7,13 @@ | |||
{% endblock banner %} | |||
! | |||
{% block fpm %} | |||
{% if ( ('nexthop_group' in FEATURE) and ('state' in FEATURE['nexthop_group']) and | |||
(FEATURE['nexthop_group']['state'] == 'enabled') ) %} | |||
fpm use-next-hop-groups |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you follow example here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lguohan Moved under device metadata following the example.
/AzurePipelines run |
Commenter does not have sufficient privileges for PR 16762 in repo sonic-net/sonic-buildimage |
/AzurePipelines run Azure.sonic-buildimage |
Commenter does not have sufficient privileges for PR 16762 in repo sonic-net/sonic-buildimage |
@lguohan |
/AzurePipelines run Azure.sonic-buildimage |
Commenter does not have sufficient privileges for PR 16762 in repo sonic-net/sonic-buildimage |
/azpw run Azure.sonic-buildimage |
@nakano-omw you need to repush your code. |
@ridahanif96 Thanks for the comment. Fix conflicts and repush. |
/azpw run Azure.sonic-buildimage |
@ridahanif96 @zhangyanzhao It has been reviewed in Routing WG. Could we approve and merge the PR ? |
@lguohan can you please merge this PR if you have no more comments? Thanks. |
@lguohan can you please merge this PR. Thanks. |
f1ed3fc
to
07cd4ff
Compare
cd0a5de
to
035a3c6
Compare
Signed-off-by: nakano.kanji <[email protected]>
7aaece3
to
cef3946
Compare
Signed-off-by: nakano.kanji <[email protected]>
@@ -254,6 +254,16 @@ module sonic-device_metadata { | |||
type inet:ipv4-address; | |||
description "BGP Router identifier"; | |||
} | |||
|
|||
leaf nexthop_group { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For yang, you need to add unit tests as well update sample_config_db, add update configuration schema. Please refer to this for example #14045
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the sample_config_db. Thanks.
Signed-off-by: Kanji Nakano <[email protected]>
Signed-off-by: Kanji Nakano <[email protected]>
Signed-off-by: nakano.kanji <[email protected]>
Cherry picked into phoenixwing folk.http://phoenixwing.com.cn/codes |
@ntt-omw please update the branch and resolve the conflicts. |
@kperumalbfn @eddieruan-alibaba @qiluo-msft Branch updated and conflicts resolved. Please approve and merge. |
Thanks @nakano-omw I have reviewed it again. My approval is still there. |
@qiluo-msft It is marked as needing review by qiluo-msft. This PR has been reviewed by the Routing WG. Please approve. |
(DEVICE_METADATA['localhost']['nexthop_group'] == 'enabled') ) %} | ||
! enable next hop group support | ||
fpm use-next-hop-groups | ||
{% else %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ebiken Do we have sonic-mgmt tests for FPM nexthop_group? If not, could you please add it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review. But I'm away from this project now. Hi @nakano-omw , could you please follow up with @kperumalbfn ? Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kperumalbfn Thanks for the review. The sonic-mgmt tests are being created in the Phoenixwing .
sonic-net/sonic-mgmt#13785
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @nakano-omw Will review sonic-mgmt tests as well.
[fpmsyncd] Fpmsyncd Next Hop Table Enhancement (sonic-net#16762) Signed-off-by: nakano.kanji <[email protected]>
Why I did it
Implementing code changes for sonic-net/SONiC#1425
How I did it
Added RTA_NH_ID attribute patch to libnl3 to add nexthop group feature to fpmsyncd.
How to verify it
enable/disable nexthop group feature
feature next-hop-group enable
.FEATURE|nexthop_group
will be created inCONFIG_DB
zebra.conf.j2
will generatezebra.conf
withfpm use-next-hop-groups
ifFEATURE|nexthop_group
exists inCONFIG_DB
. Else, it will generatezebra.conf
withno fpm use-next-hop-groups
(default behavior)config save
comman and write to/etc/sonic/config_db.json
virsh reboot sonic-nhg
/etc/frr/zebra.conf
hasfpm use-next-hop-groups
instead ofno fpm use-next-hop-groups
Klish CLI for feature nexthop_group
sonic(config)# feature next-hop-group enable
sonic(config)# no feature next-hop-group
Enable
Disable
Which release branch to backport (provide reason below if selected)
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)