On 20 Feb 2024, at 23:35, Ilya Maximets wrote:

> From: Ihar Hrachyshka <ihrac...@redhat.com>
>
> To mimic what kernel routing subsystem does [1], add a local route
> entry for every dummy IP address. This helps with OVN testing multiple
> chassis on a single host and allows to run better unit tests for
> userspace tunnels without adding route entries manually.  This is also
> the only way to add 'local' route entries that are required for testing
> 'local_ip' functionality with native tunnels in userspace datapath
> because route lookup will reject non-local source IPs.
>
> There seems to be no way to explicitly remove an IP address from
> netdev-dummy, hence no code path to handle route entry cleanup.
> The port itself can be removed, but our tests do not normally do that.
> Removal can be implemented later if necessary.
>
> [1]: http://linux-ip.net/html/routing-tables.html#routing-table-local
>
> "If the machine has several IP addresses on one Ethernet interface,
> there will be a route to each locally hosted IP in the local routing
> table. This is a normal side effect of bringing up an IP address on
> an interface under linux."
>
> Signed-off-by: Ihar Hrachyshka <ihrac...@redhat.com>
> Co-authored-by: Ilya Maximets <i.maxim...@ovn.org>
> Signed-of-by: Ilya Maximets <i.maxim...@ovn.org>

Thanks for the patch, the changes look good to me and the tests are passing.

Acked-by: Eelco Chaudron <echau...@redhat.com>

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to