config/controllerconfig
Douglas Henrique Koerich 7d341604b7 [PTP dual NIC config] Avoid late old-PTP update
With the previous logic, the legacy PTP instances could get created much
after update/upgrade procedure ran if the host was configured with
clock_synchronization=ntp during those procedures, but then changed to
ptp later on.

This change introduces a flag in the file system telling the
update/upgrade procedure actually ran and shouldn't run a second time
even the legacy instances were not created and host changed to be
ptp-synced.

Test Plan:

PASS: Upgrade from r/stx6.0 to r/stx7.0 (master), w/o configured PTP;
PASS: Upgrade from r/stx6.0 to r/stx7.0 (master), w/ configured PTP;
PASS: Patch apply then removal on r/stx6.0, w/o configured PTP;
PASS: Patch apply then removal on r/stx6.0, w/ configured PTP;
PASS: Upgrade from PATCHED r/stx6.0 to r/stx7.0 (master).

Task: 44606
Story: 2009248
Signed-off-by: Douglas Henrique Koerich <douglashenrique.koerich@windriver.com>
Change-Id: I04c9cf69a61cdfe21619f419a6d2be7d17467359
2022-02-25 13:37:26 -03:00
..
2020-04-20 15:20:19 -04:00
2018-05-31 07:35:52 -07:00