Reported-at: https://bugzilla.redhat.com/2126400
Signed-off-by: Ales Musil <[email protected]>
---
This patch should be applied only to 22.03 and below,
because it was fixed as side effect of RFE on 22.06, 22.09
and main [0].

[0] 
https://github.com/ovn-org/ovn/commit/eaf9832be248daca6d96202d504cc789d6dfec6d
---
 northd/northd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/northd/northd.c b/northd/northd.c
index 294a59bd7..aeb2da436 100644
--- a/northd/northd.c
+++ b/northd/northd.c
@@ -3318,7 +3318,7 @@ ovn_port_update_sbrec(struct northd_input *input_data,
             bool reset_requested_chassis = false;
             requested_chassis = smap_get(&op->nbsp->options,
                                          "requested-chassis");
-            if (requested_chassis) {
+            if (requested_chassis && requested_chassis[0]) {
                 const struct sbrec_chassis *chassis; /* May be NULL. */
                 chassis = chassis_lookup_by_name(sbrec_chassis_by_name,
                                                  requested_chassis);
-- 
2.37.2

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to