ovs: perform the initial cleanup only on first start

Beniamino Galvani requested to merge bg/rh1861296-pt2 into master

When NM is restarted, devices can be "assumed": NM tracks what was the connection active before the restart and after the restart bypasses most of the setup phases, bringing the device into the activate state.

When an OVS system interface is assumed after a daemon restart, it can reach the activated state even before NM connects to the ovsdb. Later, upon connection to ovsdb, the cleanup of initial OVS interfaces wrongly deletes the interface record.

Perform the initial ovsdb cleanup only during the first start.

Fixes: e5113a7f ('ovs: clean up interfaces from ovsdb at startup') https://bugzilla.redhat.com/show_bug.cgi?id=1861296

Merge request reports