summaryrefslogtreecommitdiff
path: root/interface-definitions/interfaces-bonding.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-11-07 16:44:53 +0100
committerChristian Poessinger <christian@poessinger.com>2021-11-07 16:46:24 +0100
commita9e8e45dff3c37b8cfbbc52629329d78488e114d (patch)
tree17945bdab141de0e0c02c637e7fc021315dbf55d /interface-definitions/interfaces-bonding.xml.in
parentcc78c3c41035842063aea7a863cdc8e56a96b48a (diff)
downloadvyos-1x-a9e8e45dff3c37b8cfbbc52629329d78488e114d.tar.gz
vyos-1x-a9e8e45dff3c37b8cfbbc52629329d78488e114d.zip
bonding: T1614: add constraint on member interface names to be used
(cherry picked from commit a4cf71912d52de4398273405b5682d8da5e1dbe3)
Diffstat (limited to 'interface-definitions/interfaces-bonding.xml.in')
-rw-r--r--interface-definitions/interfaces-bonding.xml.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/interface-definitions/interfaces-bonding.xml.in b/interface-definitions/interfaces-bonding.xml.in
index c63453588..5a4f08bef 100644
--- a/interface-definitions/interfaces-bonding.xml.in
+++ b/interface-definitions/interfaces-bonding.xml.in
@@ -177,6 +177,13 @@
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces.py --bondable</script>
</completionHelp>
+ <valueHelp>
+ <format>txt</format>
+ <description>Interface name</description>
+ </valueHelp>
+ <constraint>
+ <validator name="interface-name"/>
+ </constraint>
<multi/>
</properties>
</leafNode>
@@ -189,6 +196,13 @@
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces.py --bondable</script>
</completionHelp>
+ <valueHelp>
+ <format>txt</format>
+ <description>Interface name</description>
+ </valueHelp>
+ <constraint>
+ <validator name="interface-name"/>
+ </constraint>
</properties>
</leafNode>
#include <include/interface/vif-s.xml.i>