@@ -95,10 +95,8 @@ create_br_int(struct controller_ctx *ctx,
bridge = ovsrec_bridge_insert(ctx->ovs_idl_txn);
ovsrec_bridge_set_name(bridge, bridge_name);
ovsrec_bridge_set_fail_mode(bridge, "secure");
- struct smap other_config = SMAP_INITIALIZER(&other_config);
- smap_add(&other_config, "disable-in-band", "true");
- ovsrec_bridge_set_other_config(bridge, &other_config);
- smap_destroy(&other_config);
+ const struct smap oc = SMAP_CONST1(&oc, "disable-in-band", "true");
+ ovsrec_bridge_set_other_config(bridge, &oc);
ovsrec_bridge_set_ports(bridge, &port, 1);
struct ovsrec_bridge **bridges;