From a099f58116abab3b9b7575394b6d4e0ec755ae3f Mon Sep 17 00:00:00 2001 From: Xavier Simonart Date: Tue, 15 Oct 2024 15:35:43 +0200 Subject: [PATCH] controller: Do not bind container port if parent is not bound. Signed-off-by: Xavier Simonart Signed-off-by: Dumitru Ceara --- controller/binding.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controller/binding.c b/controller/binding.c index b5691f95eb..16302046e9 100644 --- a/controller/binding.c +++ b/controller/binding.c @@ -1754,8 +1754,10 @@ consider_container_lport(const struct sbrec_port_binding *pb, ovs_assert(parent_b_lport && parent_b_lport->pb); /* cannot bind to this chassis if the parent_port cannot be bounded. */ + /* Do not bind neither if parent is postponed */ bool can_bind = lport_can_bind_on_this_chassis(b_ctx_in->chassis_rec, parent_b_lport->pb) && + !is_postponed_port(parent_b_lport->pb->logical_port) && lport_can_bind_on_this_chassis(b_ctx_in->chassis_rec, pb); return consider_vif_lport_(pb, can_bind, b_ctx_in, b_ctx_out,