diff options
author | Christian Breunig <christian@breunig.cc> | 2024-09-20 22:28:13 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2024-09-21 08:51:28 +0200 |
commit | 917c658e37b619b1b2cd261ae43dd02f11eef720 (patch) | |
tree | f4e88762fc20a264c34103dd282b0b188f3a0beb /data/templates/chrony/chrony.conf.j2 | |
parent | 90ab441a55b2ec769e7a6fea1dd57bef89b8857c (diff) | |
download | vyos-1x-917c658e37b619b1b2cd261ae43dd02f11eef720.tar.gz vyos-1x-917c658e37b619b1b2cd261ae43dd02f11eef720.zip |
T6630: ntp: move interface timestamping configuration under ptp node
Diffstat (limited to 'data/templates/chrony/chrony.conf.j2')
-rw-r--r-- | data/templates/chrony/chrony.conf.j2 | 13 |
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) |