summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-09-20 08:45:31 +0200
committerChristian Breunig <christian@breunig.cc>2024-09-21 08:51:28 +0200
commit90ab441a55b2ec769e7a6fea1dd57bef89b8857c (patch)
tree8a2fbc7682728a4205af088e471f1111a5cc02d9 /data
parenta5a6e57b3f7ba7d76bffcfb8dcb086d79f51202a (diff)
downloadvyos-1x-90ab441a55b2ec769e7a6fea1dd57bef89b8857c.tar.gz
vyos-1x-90ab441a55b2ec769e7a6fea1dd57bef89b8857c.zip
T6630: ntp: rename ptp-transport to ptp and use defaultValue for port
Diffstat (limited to 'data')
-rw-r--r--data/templates/chrony/chrony.conf.j26
1 files changed, 3 insertions, 3 deletions
diff --git a/data/templates/chrony/chrony.conf.j2 b/data/templates/chrony/chrony.conf.j2
index 1fc488d24..79fa5e3a0 100644
--- a/data/templates/chrony/chrony.conf.j2
+++ b/data/templates/chrony/chrony.conf.j2
@@ -42,7 +42,7 @@ user {{ user }}
{% if config.pool is vyos_defined %}
{% set association = 'pool' %}
{% endif %}
-{{ association }} {{ server | replace('_', '-') }} iburst {{- ' nts' if config.nts is vyos_defined }} {{- ' noselect' if config.noselect is vyos_defined }} {{- ' prefer' if config.prefer is vyos_defined }} {{- ' xleave' if config.interleave is vyos_defined }} {{- ' port 319' if config.ptp_transport is vyos_defined }}
+{{ association }} {{ server | replace('_', '-') }} iburst {{- ' nts' if config.nts is vyos_defined }} {{- ' noselect' if config.noselect is vyos_defined }} {{- ' prefer' if config.prefer is vyos_defined }} {{- ' xleave' if config.interleave is vyos_defined }} {{- ' port ' ~ ptp.port if ptp.port is vyos_defined and config.ptp is vyos_defined }}
{% endfor %}
{% endif %}
@@ -78,7 +78,7 @@ hwtimestamp {{ interface }} {{- ' rxfilter ' ~ config.receive_filter if config.r
hwtimestamp *
{% endif %}
-{% if ptp_transport is vyos_defined %}
+{% if ptp.port is vyos_defined %}
# Enable sending and receiving NTP over PTP packets (PTP transport)
-ptpport 319
+ptpport {{ ptp.port }}
{% endif %}