Cole Walker 91b4ee01ae Add support for additional G.8275.x Announce fields
Add additional logic to set the appropriate PTP Announce message fields
to conform with the G.8275.1 spec.

This change ensures that a PTP node operating as a GM sets values for
these fields when G.8275.x profile is enabled in ptp4l:
clockAccuracy
offsetScaledLogVariance
timeSource
timeTraceable
frequencyTraceable
currentUtcOffsetValid

This is handled by the addition of two new functions:

intitialize_ptp4l_state_fields() determines initial/static values after
the ptp4l config file is read

and

handle_ptp4l_g8275_fields() updates the dynamic values based on the
state of the Primary Reference Time Clock

An additional fix was implemented to remove the dependency on the
hardcoded leapsecond value and instead read it dynamically from the
running ptp4l instances.

Test Plan:
PASS: Identify PRTC presence and type
PASS: GM node sets correct Announce field values based on PRTC lock
state
PASS: Verify BC nodes receive and pass on Announce message values from a
configured GM
PASS: Ensure that BC nodes report a clockClass of 165 when connection to
GM is lost

Depends-on: https://review.opendev.org/c/starlingx/config/+/895547
Closes-bug: 2036431

Change-Id: I1f62b4081aedb654d80876f041afd2e274b1eb16
Signed-off-by: Cole Walker <cole.walker@windriver.com>
2023-10-04 17:29:51 -04:00
2021-07-15 12:02:38 -03:00
2021-07-15 12:02:38 -03:00
2019-09-09 14:37:23 -05:00
2019-09-09 14:37:23 -05:00
2019-09-09 14:37:23 -05:00
2022-12-27 01:20:28 +00:00
Description
StarlingX system monitoring and repoting tools
3.5 MiB
Languages
Python 83.5%
Perl 15.7%
Makefile 0.7%
Shell 0.1%