[ovs-dev] [PATCH ovn] binding: Log iface-id-ver mismatch.

Numan Siddique numans at ovn.org
Tue Nov 23 02:31:53 UTC 2021


On Fri, Nov 19, 2021 at 6:58 AM Dumitru Ceara <dceara at redhat.com> wrote:
>
> This is useful for debugging.
>
> Signed-off-by: Dumitru Ceara <dceara at redhat.com>

Thanks.  I applied this patch to the main branch.

Numan

> ---
>  controller/binding.c | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/controller/binding.c b/controller/binding.c
> index fcd319e6d..4d62b0858 100644
> --- a/controller/binding.c
> +++ b/controller/binding.c
> @@ -2843,6 +2843,11 @@ ovs_iface_matches_lport_iface_id_ver(const struct ovsrec_interface *iface,
>          const char *iface_id_ver = smap_get(&iface->external_ids,
>                                              "iface-id-ver");
>          if (!iface_id_ver || strcmp(pb_iface_id_ver, iface_id_ver)) {
> +            static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(5, 1);
> +            VLOG_INFO_RL(&rl, "Mismatch iface-id-ver for lport %s, "
> +                         "expected %s, found %s", pb->logical_port,
> +                         pb_iface_id_ver,
> +                         iface_id_ver ? iface_id_ver : "<empty>");
>              return false;
>          }
>      }
> --
> 2.27.0
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
>


More information about the dev mailing list