Skip to content

Commit

Permalink
fix
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 dc74dbc commit ff50ea6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions northd/northd.c
Original file line number Diff line number Diff line change
Expand Up @@ -12407,6 +12407,7 @@ build_lrouter_bfd_flows(struct lflow_table *lflows, struct ovn_port *op,
struct ds ip_list = DS_EMPTY_INITIALIZER;
struct ds match = DS_EMPTY_INITIALIZER;
char *redirect_name = ovn_chassis_redirect_name(op->nbrp->name);
char *actions = xasprintf("outport = \"%s\"; output;", redirect_name);
bool bfd_only = smap_get_bool(&op->nbrp->options, "bfd-only", false);

if (op->lrp_networks.n_ipv4_addrs) {
Expand All @@ -12433,8 +12434,7 @@ build_lrouter_bfd_flows(struct lflow_table *lflows, struct ovn_port *op,
"!is_chassis_resident(\"%s\")",
ds_cstr(&ip_list), redirect_name);
ovn_lflow_add_with_hint__(lflows, op->od, S_ROUTER_IN_IP_INPUT,
115, ds_cstr(&match),
"outport = \"%s\"; output;", NULL,
115, ds_cstr(&match), actions, NULL,
copp_meter_get(COPP_BFD,
op->od->nbr->copp,
meter_groups),
Expand Down Expand Up @@ -12469,8 +12469,7 @@ build_lrouter_bfd_flows(struct lflow_table *lflows, struct ovn_port *op,
"!is_chassis_resident(\"%s\")",
ds_cstr(&ip_list), redirect_name);
ovn_lflow_add_with_hint__(lflows, op->od, S_ROUTER_IN_IP_INPUT,
115, ds_cstr(&match),
"outport = \"%s\"; output;", NULL,
115, ds_cstr(&match), actions, NULL,
copp_meter_get(COPP_BFD,
op->od->nbr->copp,
meter_groups),
Expand All @@ -12482,6 +12481,7 @@ build_lrouter_bfd_flows(struct lflow_table *lflows, struct ovn_port *op,
ds_destroy(&ip_list);
ds_destroy(&match);
free(redirect_name);
free(actions);
}

/* Logical router ingress Table 0: L2 Admission Control
Expand Down

0 comments on commit ff50ea6

Please sign in to comment.