Conversation
|
Ephemeral COPR build failed. @containers/packit-build please check. |
Luap99
left a comment
There was a problem hiding this comment.
I don't think that is a great design choice, there are many different route types that could be used in the same spot, i.e. unreachable or prohibit.
I think it would be smarter to add an explicit type field and then let users request blackhole explicitly, that type field should then accept the same names like ip route basically.
9b96f9a to
55660cc
Compare
|
@Luap99 Is the current version of the PR something what you had in mind? ip route additionally supports |
Add an explicit route_type field to the Route type that accepts the same values as ip route: unicast, blackhole, unreachable, prohibit. Defaults to unicast when not specified. The gateway field is now optional: it is required for unicast routes and must not be set for blackhole/unreachable/prohibit routes. Closes containers#930 Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
|
This feature has been exposed in podman via containers/podman#28230 |
|
@Luap99 Just a friendly ping :) |
|
Note I am super busy, in particular I like to get #1394 merged first then this PR can add the network creation validation logic for this option here as well. Of course we still need the type changes in container-libs and podman but when we port the creating logic we should not add even more features in parallel to not complicated that work so this may be a bit stalled for a few weeks. I try to ensure we still get this into netavark v2/podman v6 |
|
Thanks for explaining, I just wanted to make sure the PR is not forgotten for no reason :-) |
When the gateway field is omitted from a route definition, a blackhole route is created instead of a unicast route. Blackhole routes silently discard packets destined for the specified network.
The gateway field in the Route type is now Optional.
Closes #930