summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/protocols/bgp/node.tag/neighbor/node.tag/password/node.def2
-rw-r--r--templates/protocols/ospf/area/node.tag/virtual-link/node.tag/authentication/md5/key-id/node.tag/md5-key/node.def2
-rw-r--r--templates/protocols/ospf/area/node.tag/virtual-link/node.tag/authentication/plaintext-password/node.def2
3 files changed, 3 insertions, 3 deletions
diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/password/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/password/node.def
index 922ff28a..8d83775a 100644
--- a/templates/protocols/bgp/node.tag/neighbor/node.tag/password/node.def
+++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/password/node.def
@@ -1,7 +1,7 @@
type: txt
help: Set BGP MD5 password
syntax:expression: exec " \
- if [ `echo $VAR(@) | wc -c` -gt 80 ]; then \
+ if [ `echo -n '$VAR(@)' | wc -c` -gt 80 ]; then \
echo Password must be 80 characters or less;\
exit 1 ; \
fi ; "
diff --git a/templates/protocols/ospf/area/node.tag/virtual-link/node.tag/authentication/md5/key-id/node.tag/md5-key/node.def b/templates/protocols/ospf/area/node.tag/virtual-link/node.tag/authentication/md5/key-id/node.tag/md5-key/node.def
index ef35f7da..c985099d 100644
--- a/templates/protocols/ospf/area/node.tag/virtual-link/node.tag/authentication/md5/key-id/node.tag/md5-key/node.def
+++ b/templates/protocols/ospf/area/node.tag/virtual-link/node.tag/authentication/md5/key-id/node.tag/md5-key/node.def
@@ -1,7 +1,7 @@
type: txt
help: Set MD5 key
syntax:expression: exec " \
- if [ `echo -n $VAR(@) | wc -c` -gt 16 ]; then \
+ if [ `echo -n '$VAR(@)' | wc -c` -gt 16 ]; then \
echo MD5 key must be 16 characters or less ; \
exit 1 ; \
fi ; "
diff --git a/templates/protocols/ospf/area/node.tag/virtual-link/node.tag/authentication/plaintext-password/node.def b/templates/protocols/ospf/area/node.tag/virtual-link/node.tag/authentication/plaintext-password/node.def
index 3d26dc01..ee36125b 100644
--- a/templates/protocols/ospf/area/node.tag/virtual-link/node.tag/authentication/plaintext-password/node.def
+++ b/templates/protocols/ospf/area/node.tag/virtual-link/node.tag/authentication/plaintext-password/node.def
@@ -1,7 +1,7 @@
type: txt
help: Set plain text password
syntax:expression: exec " \
- if [ `echo -n $VAR(@) | wc -c` -gt 8 ]; then \
+ if [ `echo -n '$VAR(@)' | wc -c` -gt 8 ]; then \
echo Password must be 8 characters or less ; \
exit 1 ; \
fi ; "