Spencer Smith 7cf95b6356
[rtnl] support functional args for routes (#86)
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>
2020-10-22 10:05:59 +02:00
..
2020-01-17 13:13:10 +01:00
2020-01-17 13:13:10 +01:00
2020-01-17 13:37:17 +01:00