-
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
[FRR Patch] Added patch in FRR to send tag value associated with route via Netlink to fpmsyncd #20692
base: master
Are you sure you want to change the base?
Conversation
via NETLINK RTA_PRIORITY field which can be used as attribute/metadata in fpmsyncd for different use-cases. Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
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.
lgtm
@StormLiangMS for viz |
ri->rtm_type = RTN_UNICAST; | ||
- ri->metric = &re->metric; | ||
+ // Patch to send tag value via NETLINK Priority field (RTA_PRIORITY). The Tag vale can be used as metadata/attribute in fpmsyncd for further processing | ||
+ ri->metric = &re->tag; |
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.
Given now we migrated to dplane_fpm_sonic, does it require any changes over there?
|
||
ri->rtm_protocol = netlink_proto_from_route_type(re->type); | ||
ri->rtm_type = RTN_UNICAST; | ||
- ri->metric = &re->metric; |
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.
We are overriding the current meaning of metric by default. Would it impact any existing usecases/ scenarios?
What I did:
Added patch in FRR to send tag value associated with route via NETLINK RTA_PRIORITY field which can be used as attribute/metadata in fpmsyncd for different use-cases.
Why I did:
Some of use cases:
How I verify:
Manual Verification.