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

[nhg]: Add support for weight in nexthop group member. #1853

Merged
merged 3 commits into from
Aug 11, 2021

Conversation

caizhenghui-juniper
Copy link
Contributor

@caizhenghui-juniper caizhenghui-juniper commented Aug 4, 2021

What I did

  1. In fpmsyncd, parse weight field in netlink message, set APP_DB if weight is set.
  2. In routeorch, collect weight and pass weight attribute to next hop group member object.
  3. Added swss test for weighted ECMP.

Why I did it
In order to set weight for next hop group members. To support weighted ECMP.
How I verified it

  1. With cRPD as routing stack, configure bgp weight policy to different next hops.
  2. Bring up routes on both next hops. And send traffic to the BGP routes.
  3. Verify traffic is distributed with the portion set by weight policy.

Details if related
This has all the fixes for PR #1752 and added negative testing for checking weight if the database entry is not complete.

1. In fpmsyncd, parse weight field in nlmsg, set APP_DB if weight is set.
2. In routeorch, collect weight and pass weight attribute to next hop group memeber object.

Signed-off-by: Zhenghui Cai <zcai@juniper.net>
@lgtm-com
Copy link

lgtm-com bot commented Aug 4, 2021

This pull request introduces 3 alerts when merging 775f2db into 7aca82d - view on LGTM.com

new alerts:

  • 2 for Testing equality to None
  • 1 for Unused local variable

@prsunny
Copy link
Collaborator

prsunny commented Aug 6, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prsunny
Copy link
Collaborator

prsunny commented Aug 6, 2021

Can you please give a reference to original PR which was reverted?

@caizhenghui-juniper
Copy link
Contributor Author

caizhenghui-juniper commented Aug 6, 2021 via email

@TACappleman
Copy link
Contributor

Original PR here: #1752

@prsunny prsunny merged commit 0217b66 into sonic-net:master Aug 11, 2021
raphaelt-nvidia pushed a commit to raphaelt-nvidia/sonic-swss that referenced this pull request Oct 5, 2021
* * Add support for weight in nexthop group member.
1. In fpmsyncd, parse weight field in nlmsg, set APP_DB if weight is set.
2. In routeorch, collect weight and pass weight attribute to next hop group memeber object.

Signed-off-by: Zhenghui Cai <zcai@juniper.net>
EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
What I did
Added the PortChannel and PortChannel_Member Modules to the Debug Dump Utility
Added the Corresponding UT's
Note: Portchannel member accepts the keys of PORTCHANNEL_MEMBER table as the Identifier and since the key contains this character ("|"), this should be escaped using single quotes while using the utility i.e.

dump state portchannel_member 'PortChannel001|Ethernet4,PortChannel001|Ethernet8'
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