config/puppet-manifests/src/modules/platform/templates/ptp4l.conf.erb
Alex Kozyrev 4afb5074c5 PTP: specify ethernet interfaces in the ptp4l.conf file.
The ptp4l process will fail in case there are no NICs specified.
We need to list all the NICs in the configuration file since
NIC specification has been removed from command line earlier.

Change-Id: Ib68406a2ed514830674627180c451d274b581f74
Story: 2002935
Task: 22923
Signed-off-by: Alex Kozyrev <alex.kozyrev@windriver.com>
2018-09-11 18:18:24 +00:00

110 lines
2.6 KiB
Plaintext

[global]
#
# Default Data Set
#
twoStepFlag 1
<%- if @slave_only == true -%>
slaveOnly 1
<%- else -%>
slaveOnly 0
<%- end -%>
priority1 128
priority2 128
domainNumber 0
#utc_offset 37
clockClass 248
clockAccuracy 0xFE
offsetScaledLogVariance 0xFFFF
free_running 0
freq_est_interval 1
dscp_event 0
dscp_general 0
#
# Port Data Set
#
logAnnounceInterval 1
logSyncInterval 0
logMinDelayReqInterval 0
logMinPdelayReqInterval 0
announceReceiptTimeout 3
syncReceiptTimeout 0
delayAsymmetry 0
fault_reset_interval 4
neighborPropDelayThresh 20000000
#
# Run time options
#
assume_two_step 0
logging_level 6
path_trace_enabled 0
follow_up_info 0
hybrid_e2e 0
tx_timestamp_timeout 1
use_syslog 1
verbose 0
summary_interval 6
kernel_leap 1
check_fup_sync 0
#
# Servo Options
#
pi_proportional_const 0.0
pi_integral_const 0.0
pi_proportional_scale 0.0
pi_proportional_exponent -0.3
pi_proportional_norm_max 0.7
pi_integral_scale 0.0
pi_integral_exponent 0.4
pi_integral_norm_max 0.3
step_threshold 0.0
first_step_threshold 0.00002
max_frequency 900000000
clock_servo linreg
sanity_freq_limit 200000000
ntpshm_segment 0
#
# Transport options
#
transportSpecific 0x0
ptp_dst_mac 01:1B:19:00:00:00
p2p_dst_mac 01:80:C2:00:00:0E
udp_ttl 1
udp6_scope 0x0E
uds_address /var/run/ptp4l
#
# Default interface options
#
network_transport L2
delay_mechanism <%= scope['platform::ptp::mechanism'].upcase %>
time_stamping <%= scope['platform::ptp::mode'].downcase %>
tsproc_mode filter
delay_filter moving_median
delay_filter_length 10
egressLatency 0
ingressLatency 0
<%- if @slave_only == true -%>
boundary_clock_jbod 0
<%- else -%>
boundary_clock_jbod 1
<%- end -%>
#
# Clock description
#
productDescription ;;
revisionData ;;
manufacturerIdentity 00:00:00
userDescription ;
timeSource 0xA0
[<%= @slave_interface %>]
<%- if scope['platform::ptp::transport'] == 'udp' -%>
network_transport UDPv<%= @slave_subnet %>
<%- end -%>
<%- if @slave_only == false -%>
[<%= @master_interface %>]
<%- if scope['platform::ptp::transport'] == 'udp' -%>
network_transport UDPv<%= @master_subnet %>
<%- end -%>
<%- end -%>