summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2018-06-01 06:53:14 +0200
committerChristian Poessinger <christian@poessinger.com>2018-06-01 06:53:45 +0200
commit69577e72a7a88de96d44dcc30ae1822d92309361 (patch)
tree07c84b02967313ab7804c89007c742b9b2491c7a /interface-definitions
parent984725f4e6a616bf23661cf510dfc99e1c9254a1 (diff)
downloadvyos-1x-69577e72a7a88de96d44dcc30ae1822d92309361.tar.gz
vyos-1x-69577e72a7a88de96d44dcc30ae1822d92309361.zip
T599: Bind NTP service to specific interface
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/ntp.xml20
1 files changed, 18 insertions, 2 deletions
diff --git a/interface-definitions/ntp.xml b/interface-definitions/ntp.xml
index 4688454c3..d324404da 100644
--- a/interface-definitions/ntp.xml
+++ b/interface-definitions/ntp.xml
@@ -1,7 +1,5 @@
<?xml version="1.0"?>
-
<!-- NTP configuration -->
-
<interfaceDefinition>
<node name="system">
<children>
@@ -66,6 +64,24 @@
</leafNode>
</children>
</node>
+ <leafNode name="listen-address">
+ <properties>
+ <help>Addresses to listen for NTP queries</help>
+ <valueHelp>
+ <format>ipv4</format>
+ <description>Network Time Protocol (NTP) IPv4 address</description>
+ </valueHelp>
+ <valueHelp>
+ <format>ipv6</format>
+ <description>Network Time Protocol (NTP) IPv6 address</description>
+ </valueHelp>
+ <multi/>
+ <constraint>
+ <validator name="ipv4-address"/>
+ <validator name="ipv6-address"/>
+ </constraint>
+ </properties>
+ </leafNode>
</children>
</node>
</children>