On 9/20/21 3:20 PM, [email protected] wrote:
> From: Mohammad Heib <[email protected]>
>
> currently ovn-northd only handle virtual ports with VIP IPv4 and ignores
> virtual ports with VIP IPv6.
>
> This patch adds support for virtual ports with VIP IPv6 by adding
> lflows to the lsp_in_arp_rsp logical switch pipeline.
> Those lflows handle Neighbor Solicitations and Neighbor Advertisement requests
> that target the virtual port VIPs and bind the virtual port to the desired
> VIF.
>
> Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=2003091
> Fixes: 054f4c85c413 ("Add a new logical switch port type - 'virtual'")
> Signed-off-by: Mohammad Heib <[email protected]>
> ---
Hi Mohammad,
Thanks for the patch!
This is not a full review yet, just some stuff I noticed while glancing
over the patch.
It would be great if you could add a test case in ovn-northd.at to make
sure the logical flows are generated as expected. This would also
ensure that we don't miss adding the northd-ddlog part (which is not
present in this patch).
> northd/northd.c | 52 +++++++++++++++++++++++++++++++++++++++----------
> 1 file changed, 42 insertions(+), 10 deletions(-)
>
> diff --git a/northd/northd.c b/northd/northd.c
> index d1b87891c..d85036dcc 100644
> --- a/northd/northd.c
> +++ b/northd/northd.c
> @@ -7386,16 +7386,30 @@ build_lswitch_arp_nd_responder_known_ips(struct
> ovn_port *op,
> * - ARP reply from the virtual ip which belongs to a logical
> * port of type 'virtual' and bind that port.
> * */
> - ovs_be32 ip;
> +
> + union ip {
> + ovs_be32 ip;
> + ovs_u128 ipv6;
> + }ip;
> +
I think we should probably use in6_add and in6_addr_mapped_ipv4 instead
of coming up with a new type.
Regards,
Dumitru
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev