summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-06-26 21:26:58 +0200
committerGitHub <noreply@github.com>2023-06-26 21:26:58 +0200
commitc7708bc6ef689f5744272a15a601a56a03890afa (patch)
tree9976ef9941ab314148ef019d389c6dd66721ab02
parent17ac65c52d6935a3974453c50f9fe6344df73f96 (diff)
parent52a5b09d46d469b386a87e14562a7cdf53f65fde (diff)
downloadvyatta-wanloadbalance-c7708bc6ef689f5744272a15a601a56a03890afa.tar.gz
vyatta-wanloadbalance-c7708bc6ef689f5744272a15a601a56a03890afa.zip
Merge pull request #19 from c-po/equuleus1.3.51.3.4
T5265: add missing interface completion helpers
-rw-r--r--templates/load-balancing/wan/interface-health/node.def1
-rw-r--r--templates/load-balancing/wan/rule/node.tag/inbound-interface/node.def1
-rw-r--r--templates/load-balancing/wan/rule/node.tag/interface/node.def1
3 files changed, 3 insertions, 0 deletions
diff --git a/templates/load-balancing/wan/interface-health/node.def b/templates/load-balancing/wan/interface-health/node.def
index 2c5a8a1..34786f1 100644
--- a/templates/load-balancing/wan/interface-health/node.def
+++ b/templates/load-balancing/wan/interface-health/node.def
@@ -1,3 +1,4 @@
tag:
type: txt
help: Interface name
+allowed: sh -c "${vyos_completion_dir}/list_interfaces.py"
diff --git a/templates/load-balancing/wan/rule/node.tag/inbound-interface/node.def b/templates/load-balancing/wan/rule/node.tag/inbound-interface/node.def
index b405032..7a372f9 100644
--- a/templates/load-balancing/wan/rule/node.tag/inbound-interface/node.def
+++ b/templates/load-balancing/wan/rule/node.tag/inbound-interface/node.def
@@ -1,2 +1,3 @@
type: txt
help: Inbound interface name (e.g., "eth0") [REQUIRED]
+allowed: sh -c "${vyos_completion_dir}/list_interfaces.py"
diff --git a/templates/load-balancing/wan/rule/node.tag/interface/node.def b/templates/load-balancing/wan/rule/node.tag/interface/node.def
index 1f8ca20..f1d65af 100644
--- a/templates/load-balancing/wan/rule/node.tag/interface/node.def
+++ b/templates/load-balancing/wan/rule/node.tag/interface/node.def
@@ -1,3 +1,4 @@
tag:
type: txt
help: Interface name [REQUIRED]
+allowed: sh -c "${vyos_completion_dir}/list_interfaces.py"