summaryrefslogtreecommitdiff
path: root/interface-definitions/include/generic-interface-multi.xml.i
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-07-04 20:23:27 +0200
committerChristian Poessinger <christian@poessinger.com>2022-07-04 20:36:35 +0200
commit2aab1a726a2083e943df1f6c4200e1ba30b50f33 (patch)
tree4074cfb6bcd8fe1ba99fc4bdf9982b16c9a68516 /interface-definitions/include/generic-interface-multi.xml.i
parentf315714d0c680ad80a79dcdac21576407794dcd1 (diff)
downloadvyos-1x-2aab1a726a2083e943df1f6c4200e1ba30b50f33.tar.gz
vyos-1x-2aab1a726a2083e943df1f6c4200e1ba30b50f33.zip
ntp: T4456: support listening on specified interface
When clients only use DHCP for interface addressing we can not bind NTPd to an address - as it will fail if the address changes. This commit adds support to bind ntpd to a given interface in addition to a given address. set system ntp interface <name> (cherry picked from commit 6732df1edd632b56d3d02970939f51d05d4262e9)
Diffstat (limited to 'interface-definitions/include/generic-interface-multi.xml.i')
-rw-r--r--interface-definitions/include/generic-interface-multi.xml.i18
1 files changed, 18 insertions, 0 deletions
diff --git a/interface-definitions/include/generic-interface-multi.xml.i b/interface-definitions/include/generic-interface-multi.xml.i
new file mode 100644
index 000000000..65aae28ae
--- /dev/null
+++ b/interface-definitions/include/generic-interface-multi.xml.i
@@ -0,0 +1,18 @@
+<!-- include start from generic-interface-multi.xml.i -->
+<leafNode name="interface">
+ <properties>
+ <help>Interface to use</help>
+ <completionHelp>
+ <script>${vyos_completion_dir}/list_interfaces.py</script>
+ </completionHelp>
+ <valueHelp>
+ <format>txt</format>
+ <description>Interface name</description>
+ </valueHelp>
+ <constraint>
+ <validator name="interface-name"/>
+ </constraint>
+ <multi/>
+ </properties>
+</leafNode>
+<!-- include end -->