@@ -1814,10 +1814,13 @@ ovn_port_update_sbrec(const struct ovn_port *op,
op->nbsp->n_addresses);
struct smap ids = SMAP_INITIALIZER(&ids);
- const char *name = smap_get(&op->nbsp->external_ids,
- "neutron:port_name");
- if (name && name[0]) {
- smap_add(&ids, "name", name);
+ smap_clone(&ids, &op->nbsp->external_ids);
+ const char *name = smap_get(&ids, "neutron:port_name");
+ if (name) {
+ smap_remove(&ids, "neutron:port_name");
+ if (name[0]) {
+ smap_add(&ids, "name", name);
+ }
}
sbrec_port_binding_set_external_ids(op->sb, &ids);
}
@@ -848,7 +848,16 @@
<group title="Common Columns">
<column name="external_ids">
- See <em>External IDs</em> at the beginning of this document.
+ <p>
+ See <em>External IDs</em> at the beginning of this document.
+ </p>
+
+ <p>
+ The <code>ovn-northd</code> program copies all these pairs into the
+ <ref column="external_ids"/> column of the
+ <ref table="Port_Binding"/> table in <ref db="OVN_Southbound"/>
+ database.
+ </p>
</column>
</group>
</table>