diff options
Diffstat (limited to 'templates/interfaces')
4 files changed, 8 insertions, 20 deletions
diff --git a/templates/interfaces/bonding/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def b/templates/interfaces/bonding/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def index 07a4efbd..072a2148 100644 --- a/templates/interfaces/bonding/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def +++ b/templates/interfaces/bonding/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def @@ -1,8 +1,5 @@ type: txt help: Password -syntax:expression: exec " \ - if [ `echo -n $VAR(@) | wc -c` -gt 8 ]; then \ - echo Password must be 8 characters or less ; \ - exit 1 ; \ - fi ; " +syntax:expression: pattern $VAR(@) "^[^[:space:]]{1,8}$"; + "Password must be 8 characters or less" val_help: Password (8 characters or less) diff --git a/templates/interfaces/bonding/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def b/templates/interfaces/bonding/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def index 07a4efbd..072a2148 100644 --- a/templates/interfaces/bonding/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def +++ b/templates/interfaces/bonding/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def @@ -1,8 +1,5 @@ type: txt help: Password -syntax:expression: exec " \ - if [ `echo -n $VAR(@) | wc -c` -gt 8 ]; then \ - echo Password must be 8 characters or less ; \ - exit 1 ; \ - fi ; " +syntax:expression: pattern $VAR(@) "^[^[:space:]]{1,8}$"; + "Password must be 8 characters or less" val_help: Password (8 characters or less) diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def index 07a4efbd..072a2148 100644 --- a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def +++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def @@ -1,8 +1,5 @@ type: txt help: Password -syntax:expression: exec " \ - if [ `echo -n $VAR(@) | wc -c` -gt 8 ]; then \ - echo Password must be 8 characters or less ; \ - exit 1 ; \ - fi ; " +syntax:expression: pattern $VAR(@) "^[^[:space:]]{1,8}$"; + "Password must be 8 characters or less" val_help: Password (8 characters or less) diff --git a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def index 07a4efbd..072a2148 100644 --- a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def +++ b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def @@ -1,8 +1,5 @@ type: txt help: Password -syntax:expression: exec " \ - if [ `echo -n $VAR(@) | wc -c` -gt 8 ]; then \ - echo Password must be 8 characters or less ; \ - exit 1 ; \ - fi ; " +syntax:expression: pattern $VAR(@) "^[^[:space:]]{1,8}$"; + "Password must be 8 characters or less" val_help: Password (8 characters or less) |