diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-01-31 07:59:02 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-01-31 07:59:02 -0800 |
commit | 622bbf801bd435a3848c669ff2c0e9090cd2bb4e (patch) | |
tree | 328d04410e8fed64e6a8b25abdf58f199d916c2d /templates/system/login/radius-server | |
parent | c2c002021eab0adff7e4d268535170658a1b0c6c (diff) | |
download | vyatta-cfg-system-622bbf801bd435a3848c669ff2c0e9090cd2bb4e.tar.gz vyatta-cfg-system-622bbf801bd435a3848c669ff2c0e9090cd2bb4e.zip |
convert templates to new syntax
Diffstat (limited to 'templates/system/login/radius-server')
4 files changed, 10 insertions, 10 deletions
diff --git a/templates/system/login/radius-server/node.def b/templates/system/login/radius-server/node.def index 0f4ffbfe..6d87890c 100644 --- a/templates/system/login/radius-server/node.def +++ b/templates/system/login/radius-server/node.def @@ -1,10 +1,10 @@ tag: type: ipv4 -help: "Radius server authentication configuration" +help: Radius server authentication configuration # need mandatory secret. also need port & timeout (default values?) -update: "sudo sh -c \"touch /etc/raddb/server && \ -sed -i '/$(@)/d' /etc/raddb/server && \ -echo \\\"$(@):$(port/@)\t$(secret/@)\t$(timeout/@)\\\" \ +update:expression: "sudo sh -c \"touch /etc/raddb/server && \ +sed -i '/$VAR(@)/d' /etc/raddb/server && \ +echo \\\"$VAR(@):$VAR(port/@)\t$VAR(secret/@)\t$VAR(timeout/@)\\\" \ >> /etc/raddb/server\" " -delete: "sudo sh -c \"touch /etc/raddb/server && \ -sed -i '/$(@)/d' /etc/raddb/server\" " +delete:expression: "sudo sh -c \"touch /etc/raddb/server && \ +sed -i '/$VAR(@)/d' /etc/raddb/server\" " diff --git a/templates/system/login/radius-server/node.tag/port/node.def b/templates/system/login/radius-server/node.tag/port/node.def index 8c856e78..002bc8a0 100644 --- a/templates/system/login/radius-server/node.tag/port/node.def +++ b/templates/system/login/radius-server/node.tag/port/node.def @@ -1,4 +1,4 @@ type: u32 -help: "Configure radius port" -syntax: ($(@) > 0 && $(@) < 65536) ; "port must be between 1 and 65535" +help: Configure radius port +syntax:expression: ($VAR(@) > 0 && $VAR(@) < 65536) ; "port must be between 1 and 65535" default: 1812 diff --git a/templates/system/login/radius-server/node.tag/secret/node.def b/templates/system/login/radius-server/node.tag/secret/node.def index eb08eca3..71176843 100644 --- a/templates/system/login/radius-server/node.tag/secret/node.def +++ b/templates/system/login/radius-server/node.tag/secret/node.def @@ -1,2 +1,2 @@ type: txt -help: "Secret for radius access" +help: Secret for radius access diff --git a/templates/system/login/radius-server/node.tag/timeout/node.def b/templates/system/login/radius-server/node.tag/timeout/node.def index 84bb4424..23a964a6 100644 --- a/templates/system/login/radius-server/node.tag/timeout/node.def +++ b/templates/system/login/radius-server/node.tag/timeout/node.def @@ -1,3 +1,3 @@ type: u32 -help: "Timeout for radius session" +help: Timeout for radius session default: 2 |