mirror of
https://github.com/jsimonetti/rtnetlink.git
synced 2026-03-31 18:01:41 +02:00
This PR will add the ability to use functional args for route add/replace with rtnl. Currently, two functions are supported, `WithRouteSrc` and `WithRouteAttrs`. This allows the consolidation of the route methods, as well as adding the ability to BYO-Attributes for a given route. This layout can of course be extended to add other route-specific args, as well as a starting point for options and args for other parts of the rtnl package as time goes on. Note that this removes the `RouteAddSrc` and `RouteReplaceSrc` functions. Signed-off-by: Spencer Smith <robertspencersmith@gmail.com>