[ovs-dev] [PATCH ovn] northd: do not insert remote FIP entries in S_ROUTER_IN_ARP_RESOLVE stage

Lorenzo Bianconi lorenzo.bianconi at redhat.com
Thu Mar 12 14:12:53 UTC 2020


Do not insert FIP entries in S_ROUTER_IN_ARP_RESOLVE stage if the
destination is not resident on the local chassis since the the L2
address will be resolved by the arp action

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi at redhat.com>
---
 northd/ovn-northd.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/northd/ovn-northd.c b/northd/ovn-northd.c
index 921fe1865..16710c6cd 100644
--- a/northd/ovn-northd.c
+++ b/northd/ovn-northd.c
@@ -8847,6 +8847,11 @@ build_lrouter_flows(struct hmap *datapaths, struct hmap *ports,
                         &match, "outport == %s && %s == %s",
                         od->l3dgw_port->json_key,
                         is_v6 ? "xxreg0" : "reg0", nat->external_ip);
+                    if (distributed) {
+                        ds_put_format(&match,
+                                      " && is_chassis_resident(\"%s\")",
+                                      nat->logical_port);
+                    }
                     ds_clear(&actions);
                     ds_put_format(
                         &actions, "eth.dst = %s; next;",
-- 
2.24.1



More information about the dev mailing list