summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-06-07 20:32:57 +0200
committerChristian Breunig <christian@breunig.cc>2023-06-07 20:32:57 +0200
commit52a5b09d46d469b386a87e14562a7cdf53f65fde (patch)
tree9976ef9941ab314148ef019d389c6dd66721ab02
parent17ac65c52d6935a3974453c50f9fe6344df73f96 (diff)
downloadvyatta-wanloadbalance-52a5b09d46d469b386a87e14562a7cdf53f65fde.tar.gz
vyatta-wanloadbalance-52a5b09d46d469b386a87e14562a7cdf53f65fde.zip
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"