On Wed, May 20, 2020 at 10:52 AM Daniel Alvarez <[email protected]> wrote:
> ovs-ctl started to add the hostname as external-id [0] at some point.
>
> However, this can be problematic as if it's already set by an external
> entity it will get overwritten. In RHEL systems, systemd will invoke
> ovs-ctl to start OVS and that will overwrite it to the hostname of the
> machine.
>
If the problem is just ovs-ctl *overwriting* an existing entity then can we
just change
- ovs_vsctl set Open_vSwitch . external-ids:hostname="$hn"
>
to ovs_vsctl add Open_vSwitch . external_ids:hostname="$hn"
since add doesn't overwrite existing values if the key is set[1].
[1] From man ovs-vsctl
[--if-exists] add table record column [key=]value...
Adds the specified value or key-value pair to column in
record in table. If column is a map, then key is required, otherwise it is
prohib‐
ited. If key already exists in a map column, then the
current value is not replaced (use the set command to replace an existing
value).
Without --if-exists, it is an error if record does not
exist. With --if-exists, this command does nothing if record does not
exist.
Terry
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev