diff options
author | Lucas Christian <lucas@lucasec.com> | 2024-08-08 23:39:00 -0700 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2024-09-21 08:51:28 +0200 |
commit | a5a6e57b3f7ba7d76bffcfb8dcb086d79f51202a (patch) | |
tree | a5c399d95be3f3846aff2b541e0a96f552cbb60f /data/templates/chrony | |
parent | bf5805c52b7133ec76edeebac33f3c30b56b169f (diff) | |
download | vyos-1x-a5a6e57b3f7ba7d76bffcfb8dcb086d79f51202a.tar.gz vyos-1x-a5a6e57b3f7ba7d76bffcfb8dcb086d79f51202a.zip |
T6630: ntp: add chrony "ntp over ptp" transport
Diffstat (limited to 'data/templates/chrony')
-rw-r--r-- | data/templates/chrony/chrony.conf.j2 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/data/templates/chrony/chrony.conf.j2 b/data/templates/chrony/chrony.conf.j2 index 838813866..1fc488d24 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 }} +{{ 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 }} {% endfor %} {% endif %} @@ -77,3 +77,8 @@ hwtimestamp {{ interface }} {{- ' rxfilter ' ~ config.receive_filter if config.r # Enable hardware timestamping on all supported interfaces not otherwise configured hwtimestamp * {% endif %} + +{% if ptp_transport is vyos_defined %} +# Enable sending and receiving NTP over PTP packets (PTP transport) +ptpport 319 +{% endif %} |