diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-09-24 10:08:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 10:08:55 +0100 |
commit | cf55d9db374cccb263d671a4e9c7ba8e2cd93df5 (patch) | |
tree | 1135752fb44b0c0c2e16d0baac50009d8c7dc831 /interface-definitions | |
parent | 644a91e970c96de01d2e17a7ea91502b8f7265e6 (diff) | |
parent | 917c658e37b619b1b2cd261ae43dd02f11eef720 (diff) | |
download | vyos-1x-cf55d9db374cccb263d671a4e9c7ba8e2cd93df5.tar.gz vyos-1x-cf55d9db374cccb263d671a4e9c7ba8e2cd93df5.zip |
Merge pull request #3966 from lucasec/t6630
T6630: ntp: support hardware timestamp offload and other mechanisms to improve accuracy
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/service_ntp.xml.in | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/interface-definitions/service_ntp.xml.in b/interface-definitions/service_ntp.xml.in index c057b62b5..5dc0cd295 100644 --- a/interface-definitions/service_ntp.xml.in +++ b/interface-definitions/service_ntp.xml.in @@ -13,6 +13,74 @@ #include <include/generic-interface.xml.i> #include <include/listen-address.xml.i> #include <include/interface/vrf.xml.i> + <node name="ptp"> + <properties> + <help>Enable Precision Time Protocol (PTP) transport</help> + </properties> + <children> + #include <include/port-number.xml.i> + <leafNode name="port"> + <defaultValue>319</defaultValue> + </leafNode> + <node name="timestamp"> + <properties> + <help>Enable timestamping of packets in the NIC hardware</help> + </properties> + <children> + <tagNode name="interface"> + <properties> + <help>Interface to enable timestamping on</help> + <completionHelp> + <script>${vyos_completion_dir}/list_interfaces</script> + <list>all</list> + </completionHelp> + <valueHelp> + <format>all</format> + <description>Select all interfaces</description> + </valueHelp> + <valueHelp> + <format>txt</format> + <description>Interface name</description> + </valueHelp> + <constraint> + #include <include/constraint/interface-name.xml.i> + <regex>all</regex> + </constraint> + </properties> + <children> + <leafNode name="receive-filter"> + <properties> + <help>Selects which inbound packets are timestamped by the NIC</help> + <completionHelp> + <list>all ntp ptp none</list> + </completionHelp> + <valueHelp> + <format>all</format> + <description>All packets are timestamped</description> + </valueHelp> + <valueHelp> + <format>ntp</format> + <description>Only NTP packets are timestamped</description> + </valueHelp> + <valueHelp> + <format>ptp</format> + <description>Only PTP or NTP packets using the PTP transport are timestamped</description> + </valueHelp> + <valueHelp> + <format>none</format> + <description>No packet is timestamped</description> + </valueHelp> + <constraint> + <regex>(all|ntp|ptp|none)</regex> + </constraint> + </properties> + </leafNode> + </children> + </tagNode> + </children> + </node> + </children> + </node> <leafNode name="leap-second"> <properties> <help>Leap second behavior</help> @@ -86,6 +154,18 @@ <valueless/> </properties> </leafNode> + <leafNode name="ptp"> + <properties> + <help>Use Precision Time Protocol (PTP) transport for the server</help> + <valueless/> + </properties> + </leafNode> + <leafNode name="interleave"> + <properties> + <help>Use the interleaved mode for the server</help> + <valueless/> + </properties> + </leafNode> </children> </tagNode> </children> |