Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: zhangzujian <[email protected]>
  • Loading branch information
zhangzujian committed Nov 4, 2024
1 parent 1903765 commit 091b424
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions northd/northd.c
Original file line number Diff line number Diff line change
Expand Up @@ -13774,6 +13774,17 @@ build_gateway_redirect_flows_for_lrouter(
ovn_lflow_add_with_hint(lflows, od, S_ROUTER_IN_GW_REDIRECT, 50,
ds_cstr(match), ds_cstr(actions),
stage_hint, lflow_ref);

bool bfd_only = smap_get_bool(&od->l3dgw_ports[i]->nbrp->options,
"bfd-only", false);
if (bfd_only) {
ds_clear(match);
ds_put_format(match, "outport == %s && udp.dst == 3784",
od->l3dgw_ports[i]->cr_port->json_key);
ovn_lflow_add_with_hint(lflows, od, S_ROUTER_IN_GW_REDIRECT, 50,
ds_cstr(match), "handle_bfd_msg();",
stage_hint, lflow_ref);
}
}

/* Packets are allowed by default. */
Expand Down

0 comments on commit 091b424

Please sign in to comment.