summaryrefslogtreecommitdiff
path: root/interface-definitions/policy.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-02-16 22:17:48 +0100
committerChristian Poessinger <christian@poessinger.com>2022-02-16 22:18:04 +0100
commitf076f9f4cf6e6b7d89eada9f5d59bacea0f3af72 (patch)
tree30dc479a94784a34ca3dfb1716fc70038442f1d7 /interface-definitions/policy.xml.in
parent1ceaed55a629c92cf42baccdef4106e8d0e4914e (diff)
downloadvyos-1x-f076f9f4cf6e6b7d89eada9f5d59bacea0f3af72.tar.gz
vyos-1x-f076f9f4cf6e6b7d89eada9f5d59bacea0f3af72.zip
policy: T2425: add completion helper script when referencing IP addresses
Diffstat (limited to 'interface-definitions/policy.xml.in')
-rw-r--r--interface-definitions/policy.xml.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/interface-definitions/policy.xml.in b/interface-definitions/policy.xml.in
index 61c5ab90a..9767285dd 100644
--- a/interface-definitions/policy.xml.in
+++ b/interface-definitions/policy.xml.in
@@ -1113,6 +1113,9 @@
<leafNode name="ip-next-hop">
<properties>
<help>Nexthop IP address</help>
+ <completionHelp>
+ <script>${vyos_completion_dir}/list_local_ips.sh --ipv4</script>
+ </completionHelp>
<valueHelp>
<format>ipv4</format>
<description>IP address</description>
@@ -1130,6 +1133,9 @@
<leafNode name="global">
<properties>
<help>Nexthop IPv6 global address</help>
+ <completionHelp>
+ <script>${vyos_completion_dir}/list_local_ips.sh --ipv6</script>
+ </completionHelp>
<valueHelp>
<format>ipv6</format>
<description>IPv6 address and prefix length</description>
@@ -1142,6 +1148,9 @@
<leafNode name="local">
<properties>
<help>Nexthop IPv6 local address</help>
+ <completionHelp>
+ <script>${vyos_completion_dir}/list_local_ips.sh --ipv6</script>
+ </completionHelp>
<valueHelp>
<format>ipv6</format>
<description>IPv6 address and prefix length</description>
@@ -1268,6 +1277,9 @@
<leafNode name="src">
<properties>
<help>Source address for route</help>
+ <completionHelp>
+ <script>${vyos_completion_dir}/list_local_ips.sh --both</script>
+ </completionHelp>
<valueHelp>
<format>ipv4</format>
<description>IPv4 address</description>