Skip to content

Commit

Permalink
controller: Do not bind container port if parent is not bound.
Browse files Browse the repository at this point in the history
Signed-off-by: Xavier Simonart <[email protected]>
Signed-off-by: Dumitru Ceara <[email protected]>
  • Loading branch information
simonartxavier authored and dceara committed Dec 6, 2024
1 parent 672584c commit a099f58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controller/binding.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a099f58

Please sign in to comment.