This is useful for debugging.

Signed-off-by: Dumitru Ceara <[email protected]>
---
 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
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to