|
13 | 13 | #include <include/generic-interface.xml.i>
|
14 | 14 | #include <include/listen-address.xml.i>
|
15 | 15 | #include <include/interface/vrf.xml.i>
|
16 |
| - <node name="ptp"> |
| 16 | + <node name="timestamp"> |
17 | 17 | <properties>
|
18 |
| - <help>Enable Precision Time Protocol (PTP) transport</help> |
| 18 | + <help>Enable timestamping of packets in the NIC hardware</help> |
19 | 19 | </properties>
|
20 | 20 | <children>
|
21 |
| - #include <include/port-number.xml.i> |
22 |
| - <leafNode name="port"> |
23 |
| - <defaultValue>319</defaultValue> |
24 |
| - </leafNode> |
25 |
| - <node name="timestamp"> |
| 21 | + <tagNode name="interface"> |
26 | 22 | <properties>
|
27 |
| - <help>Enable timestamping of packets in the NIC hardware</help> |
| 23 | + <help>Interface to enable timestamping on</help> |
| 24 | + <completionHelp> |
| 25 | + <script>${vyos_completion_dir}/list_interfaces</script> |
| 26 | + <list>all</list> |
| 27 | + </completionHelp> |
| 28 | + <valueHelp> |
| 29 | + <format>all</format> |
| 30 | + <description>Select all interfaces</description> |
| 31 | + </valueHelp> |
| 32 | + <valueHelp> |
| 33 | + <format>txt</format> |
| 34 | + <description>Interface name</description> |
| 35 | + </valueHelp> |
| 36 | + <constraint> |
| 37 | + #include <include/constraint/interface-name.xml.i> |
| 38 | + <regex>all</regex> |
| 39 | + </constraint> |
28 | 40 | </properties>
|
29 | 41 | <children>
|
30 |
| - <tagNode name="interface"> |
| 42 | + <leafNode name="receive-filter"> |
31 | 43 | <properties>
|
32 |
| - <help>Interface to enable timestamping on</help> |
| 44 | + <help>Selects which inbound packets are timestamped by the NIC</help> |
33 | 45 | <completionHelp>
|
34 |
| - <script>${vyos_completion_dir}/list_interfaces</script> |
35 |
| - <list>all</list> |
| 46 | + <list>all ntp ptp none</list> |
36 | 47 | </completionHelp>
|
37 | 48 | <valueHelp>
|
38 | 49 | <format>all</format>
|
39 |
| - <description>Select all interfaces</description> |
| 50 | + <description>All packets are timestamped</description> |
40 | 51 | </valueHelp>
|
41 | 52 | <valueHelp>
|
42 |
| - <format>txt</format> |
43 |
| - <description>Interface name</description> |
| 53 | + <format>ntp</format> |
| 54 | + <description>Only NTP packets are timestamped</description> |
| 55 | + </valueHelp> |
| 56 | + <valueHelp> |
| 57 | + <format>ptp</format> |
| 58 | + <description>Only PTP or NTP packets using the PTP transport are timestamped</description> |
| 59 | + </valueHelp> |
| 60 | + <valueHelp> |
| 61 | + <format>none</format> |
| 62 | + <description>No packet is timestamped</description> |
44 | 63 | </valueHelp>
|
45 | 64 | <constraint>
|
46 |
| - #include <include/constraint/interface-name.xml.i> |
47 |
| - <regex>all</regex> |
| 65 | + <regex>(all|ntp|ptp|none)</regex> |
48 | 66 | </constraint>
|
49 | 67 | </properties>
|
50 |
| - <children> |
51 |
| - <leafNode name="receive-filter"> |
52 |
| - <properties> |
53 |
| - <help>Selects which inbound packets are timestamped by the NIC</help> |
54 |
| - <completionHelp> |
55 |
| - <list>all ntp ptp none</list> |
56 |
| - </completionHelp> |
57 |
| - <valueHelp> |
58 |
| - <format>all</format> |
59 |
| - <description>All packets are timestamped</description> |
60 |
| - </valueHelp> |
61 |
| - <valueHelp> |
62 |
| - <format>ntp</format> |
63 |
| - <description>Only NTP packets are timestamped</description> |
64 |
| - </valueHelp> |
65 |
| - <valueHelp> |
66 |
| - <format>ptp</format> |
67 |
| - <description>Only PTP or NTP packets using the PTP transport are timestamped</description> |
68 |
| - </valueHelp> |
69 |
| - <valueHelp> |
70 |
| - <format>none</format> |
71 |
| - <description>No packet is timestamped</description> |
72 |
| - </valueHelp> |
73 |
| - <constraint> |
74 |
| - <regex>(all|ntp|ptp|none)</regex> |
75 |
| - </constraint> |
76 |
| - </properties> |
77 |
| - </leafNode> |
78 |
| - </children> |
79 |
| - </tagNode> |
| 68 | + </leafNode> |
80 | 69 | </children>
|
81 |
| - </node> |
| 70 | + </tagNode> |
| 71 | + </children> |
| 72 | + </node> |
| 73 | + <node name="ptp"> |
| 74 | + <properties> |
| 75 | + <help>Enable Precision Time Protocol (PTP) transport</help> |
| 76 | + </properties> |
| 77 | + <children> |
| 78 | + #include <include/port-number.xml.i> |
| 79 | + <leafNode name="port"> |
| 80 | + <defaultValue>319</defaultValue> |
| 81 | + </leafNode> |
82 | 82 | </children>
|
83 | 83 | </node>
|
84 | 84 | <leafNode name="leap-second">
|
|
0 commit comments