sonic-frr
sonic-frr copied to clipboard
Update static_zebra.c
Limit the number of next hops for static routes
Why I did it The declared array size( struct zapi_nexthop nexthops[MULTIPATH_NUM] ) is MULTIPATH_NUM. If the configuration exceeds MULTIPATH_NUM, the BGP container will crash
How I did it Limit the number of nexthops for static route
How to verify it Configure next hops over MULTIPATH_NUM for static route, and make sure nexthops are valid.
@ton31337 @donaldsharp help check and merge this, thanks!