diff options
author | Christian Breunig <christian@breunig.cc> | 2023-06-07 20:32:57 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-06-07 20:32:57 +0200 |
commit | 52a5b09d46d469b386a87e14562a7cdf53f65fde (patch) | |
tree | 9976ef9941ab314148ef019d389c6dd66721ab02 | |
parent | 17ac65c52d6935a3974453c50f9fe6344df73f96 (diff) | |
download | vyatta-wanloadbalance-52a5b09d46d469b386a87e14562a7cdf53f65fde.tar.gz vyatta-wanloadbalance-52a5b09d46d469b386a87e14562a7cdf53f65fde.zip |
T5265: add missing interface completion helpers
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" |