On Thu, Feb 25, 2021 at 4:57 AM Ben Pfaff <b...@ovn.org> wrote: > > The comments here point out that more than one IPv4 address is a > problem (versus more than 2 IPv6 addresses), but the code doesn't match. >
Oops. My mistake. Thanks for catching this. Looks like you have addressed fixing the logic in the ddlog patch itself and this patch is not required :). Thanks Numan > I didn't test this, it's just an observation from reading code and > comments. > > Signed-off-by: Ben Pfaff <b...@ovn.org> > CC: Numan Siddique <num...@ovn.org> > Fixes: c6e21a23bd8c ("northd: Provide the Gateway router option > 'lb_force_snat_ip' to take router port ips.") > --- > northd/ovn-northd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/northd/ovn-northd.c b/northd/ovn-northd.c > index 85022d36c6ae..ac872aadea3d 100644 > --- a/northd/ovn-northd.c > +++ b/northd/ovn-northd.c > @@ -9164,7 +9164,7 @@ build_lrouter_force_snat_flows_op(struct ovn_port *op, > op->lrp_networks.ipv4_addrs[0].addr_s); > ovn_lflow_add(lflows, op->od, S_ROUTER_OUT_SNAT, 110, > ds_cstr(match), ds_cstr(actions)); > - if (op->lrp_networks.n_ipv4_addrs > 2) { > + if (op->lrp_networks.n_ipv4_addrs > 1) { > static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5); > VLOG_WARN_RL(&rl, "Logical router port %s is configured with " > "multiple IPv4 addresses. Only the first " > -- > 2.29.2 > > _______________________________________________ > dev mailing list > d...@openvswitch.org > https://mail.openvswitch.org/mailman/listinfo/ovs-dev > _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev