From fb6e3055481b462808179449debecfd7546bdedf Mon Sep 17 00:00:00 2001 From: zhangzujian Date: Mon, 4 Nov 2024 09:53:37 +0000 Subject: [PATCH] debug Signed-off-by: zhangzujian --- northd/northd.c | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/northd/northd.c b/northd/northd.c index 62381cbf7d..9339a20767 100644 --- a/northd/northd.c +++ b/northd/northd.c @@ -12406,9 +12406,6 @@ 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) { op_put_v4_networks(&ip_list, op, false); @@ -12427,20 +12424,6 @@ build_lrouter_bfd_flows(struct lflow_table *lflows, struct ovn_port *op, meter_groups), &op->nbrp->header_, lflow_ref); - if ((op->nbrp->ha_chassis_group || op->nbrp->n_gateway_chassis) && - bfd_only) { - ds_clear(&match); - ds_put_format(&match, "ip4.dst == %s && udp.dst == 3784 && " - "!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), actions, NULL, - copp_meter_get(COPP_BFD, - op->od->nbr->copp, - meter_groups), - &op->nbrp->header_, - lflow_ref); - } } if (op->lrp_networks.n_ipv6_addrs) { ds_clear(&ip_list); @@ -12462,26 +12445,10 @@ build_lrouter_bfd_flows(struct lflow_table *lflows, struct ovn_port *op, meter_groups), &op->nbrp->header_, lflow_ref); - if ((op->nbrp->ha_chassis_group || op->nbrp->n_gateway_chassis) && - bfd_only) { - ds_clear(&match); - ds_put_format(&match, "ip6.dst == %s && udp.dst == 3784 && " - "!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), actions, NULL, - copp_meter_get(COPP_BFD, - op->od->nbr->copp, - meter_groups), - &op->nbrp->header_, - lflow_ref); - } } ds_destroy(&ip_list); ds_destroy(&match); - free(redirect_name); - free(actions); } /* Logical router ingress Table 0: L2 Admission Control