If the chassis doesn't configure the 'external-ids:ovn-bridge-mappings' in
the OVSDB, the 'add_bridge_mappings' should return directly.

Signed-off-by: nickcooper-zhangtonghao <nickcooper-zhangtong...@opencloud.tech>
---
 ovn/controller/patch.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ovn/controller/patch.c b/ovn/controller/patch.c
index 012e6ba..4116944 100644
--- a/ovn/controller/patch.c
+++ b/ovn/controller/patch.c
@@ -152,7 +152,9 @@ add_bridge_mappings(struct controller_ctx *ctx,
     if (cfg) {
         mappings_cfg = smap_get(&cfg->external_ids, "ovn-bridge-mappings");
         if (!mappings_cfg) {
-            mappings_cfg = "";
+            /* This chassis doesn't configure the 'bridge-mappings'.
+             * Return directly*/
+            return;
         }
     }
 
-- 
1.8.3.1




_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to