Skip to content

Commit b12af41

Browse files
authored
[fpmsyncd] don't manipulate route weight (sonic-net#2320)
Return the next hop weight obtained from kernel as-is. Sample next hop weight: admin@svcstr-7050-acs-4:~$ ip route show 193.11.248.128/25 193.11.248.128/25 nhid 1452 proto bgp src 10.1.0.33 metric 20 nexthop via 10.0.1.61 dev PortChannel103 weight 1 nexthop via 10.0.1.63 dev PortChannel104 weight 1 nexthop via 10.0.1.59 dev PortChannel102 weight 1 nexthop via 10.0.1.57 dev PortChannel101 weight 1 Signed-off-by: Ying Xie <[email protected]>
1 parent a3f4fbb commit b12af41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fpmsyncd/routesync.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ string RouteSync::getNextHopWt(struct rtnl_route *route_obj)
12081208
uint8_t weight = rtnl_route_nh_get_weight(nexthop);
12091209
if (weight)
12101210
{
1211-
result += to_string(weight + 1);
1211+
result += to_string(weight);
12121212
}
12131213
else
12141214
{

0 commit comments

Comments
 (0)