summaryrefslogtreecommitdiff
path: root/data/templates/chrony/chrony.conf.j2
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/chrony/chrony.conf.j2')
-rw-r--r--data/templates/chrony/chrony.conf.j213
1 files changed, 6 insertions, 7 deletions
diff --git a/data/templates/chrony/chrony.conf.j2 b/data/templates/chrony/chrony.conf.j2
index 79fa5e3a0..2838f5524 100644
--- a/data/templates/chrony/chrony.conf.j2
+++ b/data/templates/chrony/chrony.conf.j2
@@ -67,16 +67,15 @@ binddevice {{ interface }}
{% endif %}
{% endif %}
-{% if offload.timestamp.interface is vyos_defined %}
+{% if ptp.timestamp.interface is vyos_defined %}
# Enable hardware timestamping on the specified interfaces
-{% for interface, config in offload.timestamp.interface.items() %}
-hwtimestamp {{ interface }} {{- ' rxfilter ' ~ config.receive_filter if config.receive_filter is vyos_defined }}
+{% for iface, iface_config in ptp.timestamp.interface.items() %}
+{% if iface == "all" %}
+{% set iface = "*" %}
+{% endif %}
+hwtimestamp {{ iface }} {{- ' rxfilter ' ~ iface_config.receive_filter if iface_config.receive_filter is vyos_defined }}
{% endfor %}
{% endif %}
-{% if offload.timestamp.default_enable is vyos_defined %}
-# Enable hardware timestamping on all supported interfaces not otherwise configured
-hwtimestamp *
-{% endif %}
{% if ptp.port is vyos_defined %}
# Enable sending and receiving NTP over PTP packets (PTP transport)