
Update the logic in set_utc_offset() to handle the case where ha_phc2sys is in use and there are multiple ptp4l instances using different domain numbers. The process is to check for a user configured ha_domainNumber parameter in the phc2sys config, if present use that for applicable pmc queries. If a ha_domainNumber is not defined, check for a global domainNumber in the phc2sys config and use that. If neither are specified, use the default domainNumber 0. Add the 'valid sources' check to ptp-notification v1 for when ha_phc2sys is in use. Log a warning if ha_phc2sys has no valid sources to select. Test plan: Pass: Verify image build and deploy images Pass: Verify set_utc_offset functionality with ha phc2sys - Global domainNumber - Per interface domainNumber - No domainNumber defined Pass: Verify set_utc_offset functionality without ha phc2sys Pass: Verify that v1 ptp-notification logs a warning when ha_phc2sys is enabled and there are no valid sources. Story: 2010723 Task: 49010 Signed-off-by: Cole Walker <cole.walker@windriver.com> Change-Id: Ia8cd15c3711bed45e6d082e322af83f2e4d5cac3
Description
StarlingX PTP Notification App
Languages
Python
97%
Makefile
1.2%
Dockerfile
0.6%
Shell
0.4%
Smarty
0.3%
Other
0.4%