Add support for checking the ha_phc2sys 'valid sources' query so that
collectd can properly raise an alarm when none of the configured clock
sources meet the quality requirements for selection by ha_phc2sys.
Add support for selecting the correct domainNumber value for pmc queries
when ha_phc2sys is using multiple ptp4l sources with different domains
numbers.
Bonus fix:
Adds special handling to ptp4l config parsing to ignore the
'unicast_master_table' section if present. This section may be included
in certain ptp4l deployments where users want to use unicast
transmission instead of the default multicast behaviour. There is
currently no need to handle this section in collectd.
Test plan:
Pass: Verify alarm is raised when ha_phc2sys has no valid
sources to select, and cleared when a valid source becomes available
Pass: Verify pmc commands succeed when ha_phc2sys has
- Global domainNumber
- Per interface domainNumber
- No domainNumber defined
Pass: Verify that ptp4l configs with and without 'unicast_master_table'
are parsed correctly
Story: 2010723
Task: 49012
Signed-off-by: Cole Walker <cole.walker@windriver.com>
Change-Id: I3a2d106cfa5d01b9538a7d315d3565b06050a8ce