diff options
-rw-r--r-- | templates/interfaces/ethernet/node.tag/bond-group/node.def | 2 | ||||
-rw-r--r-- | templates/interfaces/ethernet/node.tag/bridge-group/bridge/node.def | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/templates/interfaces/ethernet/node.tag/bond-group/node.def b/templates/interfaces/ethernet/node.tag/bond-group/node.def index 3fe9ddbe..dff97395 100644 --- a/templates/interfaces/ethernet/node.tag/bond-group/node.def +++ b/templates/interfaces/ethernet/node.tag/bond-group/node.def @@ -3,7 +3,7 @@ type: txt help: Assign interface to bonding group allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show=bonding syntax:expression: pattern $VAR(@) "^bond[0-9]+$" \ - ; "bond-group $VAR(@): not a valid name" + ; "$VAR(@): not a valid name for a bonding interface" commit:expression: exec "${vyatta_sbindir}/vyatta-bonding.pl --dev=$VAR(@) --check=$VAR(../@)" diff --git a/templates/interfaces/ethernet/node.tag/bridge-group/bridge/node.def b/templates/interfaces/ethernet/node.tag/bridge-group/bridge/node.def index 930a5809..d58e8f07 100644 --- a/templates/interfaces/ethernet/node.tag/bridge-group/bridge/node.def +++ b/templates/interfaces/ethernet/node.tag/bridge-group/bridge/node.def @@ -2,6 +2,9 @@ type: txt help: Bridge group name +syntax:expression: pattern $VAR(@) "^br[0-9]+$" \ + ; "$VAR(@): not a valid name for a bridge" + commit:expression: exec \ "/opt/vyatta/sbin/vyatta-interfaces.pl --dev=$VAR(@) --check=bridge" |