From ff50ea6ae26ac15d27f5fcb6ea30c4b6c31fc257 Mon Sep 17 00:00:00 2001 From: zhangzujian Date: Mon, 4 Nov 2024 02:54:33 +0000 Subject: [PATCH] fix Signed-off-by: zhangzujian --- northd/northd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/northd/northd.c b/northd/northd.c index 75e7447f25..62381cbf7d 100644 --- a/northd/northd.c +++ b/northd/northd.c @@ -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) { @@ -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), @@ -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), @@ -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