summaryrefslogtreecommitdiff
path: root/interface-definitions/include/listen-address.xml.i
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-12-28 16:13:03 +0100
committerChristian Poessinger <christian@poessinger.com>2020-12-28 16:20:51 +0100
commitbbc2a15795bfbe11febe8c00d2a592ba5cf8daf5 (patch)
tree47054ffca1f9c3e3f507356d38f3b3bbc9571340 /interface-definitions/include/listen-address.xml.i
parent9f459cb1185af7dd7fe3104b2fb047add69938cd (diff)
downloadvyos-1x-bbc2a15795bfbe11febe8c00d2a592ba5cf8daf5.tar.gz
vyos-1x-bbc2a15795bfbe11febe8c00d2a592ba5cf8daf5.zip
xml: completion-help: add helper for all local assigned IP addresses
This replaces the Python script by a bash variant which is much faster as the Python interpreter does not need to be launched on invocation.
Diffstat (limited to 'interface-definitions/include/listen-address.xml.i')
-rw-r--r--interface-definitions/include/listen-address.xml.i3
1 files changed, 3 insertions, 0 deletions
diff --git a/interface-definitions/include/listen-address.xml.i b/interface-definitions/include/listen-address.xml.i
index e474344e4..5bfb7eb38 100644
--- a/interface-definitions/include/listen-address.xml.i
+++ b/interface-definitions/include/listen-address.xml.i
@@ -2,6 +2,9 @@
<leafNode name="listen-address">
<properties>
<help>Local IP addresses for service to listen on</help>
+ <completionHelp>
+ <script>${vyos_completion_dir}/list_local_ips.sh --both</script>
+ </completionHelp>
<valueHelp>
<format>ipv4</format>
<description>IP address to listen for incoming connections</description>