91b4ee01ae

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>
Description
StarlingX system monitoring and repoting tools
Languages
Python
83.5%
Perl
15.7%
Makefile
0.7%
Shell
0.1%