summaryrefslogtreecommitdiff
path: root/interface-definitions/include/source-address-ipv4-ipv6.xml.i
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-12-30 16:30:05 +0100
committerChristian Poessinger <christian@poessinger.com>2020-12-30 16:31:21 +0100
commit37b33e3cedc2734c1339bbf4851703e7b5ff360c (patch)
treedb36c1838147a85cfac1db8778988d9b89e5b6e9 /interface-definitions/include/source-address-ipv4-ipv6.xml.i
parent5a19563a2938f3a4626637bb1c6b9164bb2a410d (diff)
downloadvyos-1x-37b33e3cedc2734c1339bbf4851703e7b5ff360c.tar.gz
vyos-1x-37b33e3cedc2734c1339bbf4851703e7b5ff360c.zip
xml: completion-help: add source-address completion helper
Commit bbc2a157 ("xml: completion-help: add helper for all local assigned IP addresses") added a completionHelper script listing all local assigned IPv4/IPv6 addresses. This commit extends the system to also list the available addresses for the source-address CLI nodes.
Diffstat (limited to 'interface-definitions/include/source-address-ipv4-ipv6.xml.i')
-rw-r--r--interface-definitions/include/source-address-ipv4-ipv6.xml.i9
1 files changed, 6 insertions, 3 deletions
diff --git a/interface-definitions/include/source-address-ipv4-ipv6.xml.i b/interface-definitions/include/source-address-ipv4-ipv6.xml.i
index 6716e0ae4..004e04f7b 100644
--- a/interface-definitions/include/source-address-ipv4-ipv6.xml.i
+++ b/interface-definitions/include/source-address-ipv4-ipv6.xml.i
@@ -1,14 +1,17 @@
<!-- included start from source-address-ipv4-ipv6.xml.i -->
<leafNode name="source-address">
<properties>
- <help>IPv4/IPv6 source address</help>
+ <help>Source IP address used to initiate connection</help>
+ <completionHelp>
+ <script>${vyos_completion_dir}/list_local_ips.sh --both</script>
+ </completionHelp>
<valueHelp>
<format>ipv4</format>
- <description>IPv4 source-address</description>
+ <description>IPv4 source address</description>
</valueHelp>
<valueHelp>
<format>ipv6</format>
- <description>IPv6 source-address</description>
+ <description>IPv6 source address</description>
</valueHelp>
<constraint>
<validator name="ipv4-address"/>