diff options
Diffstat (limited to 'templates/interfaces/tunnel')
-rw-r--r-- | templates/interfaces/tunnel/node.tag/ip/ospf/authentication/plaintext-password/node.def (renamed from templates/interfaces/tunnel/node.tag/ip/ospf/authentication/simple/node.def) | 7 | ||||
-rw-r--r-- | templates/interfaces/tunnel/node.tag/ip/ospf/network/node.def | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/templates/interfaces/tunnel/node.tag/ip/ospf/authentication/simple/node.def b/templates/interfaces/tunnel/node.tag/ip/ospf/authentication/plaintext-password/node.def index a2a1ef7a..a55e38b0 100644 --- a/templates/interfaces/tunnel/node.tag/ip/ospf/authentication/simple/node.def +++ b/templates/interfaces/tunnel/node.tag/ip/ospf/authentication/plaintext-password/node.def @@ -1,20 +1,23 @@ type: txt -help: Configure simple password +help: Configure plain text password syntax:expression: exec " \ if [ `echo -n $VAR(@) | wc -c` -gt 8 ]; then \ echo Password must be 8 characters or less ; \ exit 1 ; \ fi ; " + update:expression: "${vyatta_sbindir}/vyatta-vtysh.pl \ -c \"configure terminal\" \ -c \"interface $VAR(../../../../@) \" \ -c \"no ip ospf authentication \" \ -c \"ip ospf authentication \" \ -c \"ip ospf authentication-key $VAR(@) \"; " + delete:expression: "${vyatta_sbindir}/vyatta-vtysh.pl \ -c \"configure terminal\" \ -c \"interface $VAR(../../../../@) \" \ -c \"no ip ospf authentication \" \ -c \"no ip ospf authentication-key \"; " + comp_help: possible completions: - <text> Simple password (8 characters or less) + <text> Plain text password (8 characters or less) diff --git a/templates/interfaces/tunnel/node.tag/ip/ospf/network/node.def b/templates/interfaces/tunnel/node.tag/ip/ospf/network/node.def index cff270e2..5664aa46 100644 --- a/templates/interfaces/tunnel/node.tag/ip/ospf/network/node.def +++ b/templates/interfaces/tunnel/node.tag/ip/ospf/network/node.def @@ -4,7 +4,7 @@ syntax:expression: $VAR(@) in "broadcast", "non-broadcast", "point-to-multipoint "Must be (broadcast|non-broadcast|point-to-multipoint|point-to-point)" update:expression: "${vyatta_sbindir}/vyatta-vtysh.pl \ - -c \"configure terminal\" \ + -c \"configure terminal\" \ -c \"interface $VAR(../../../@) \" \ -c \"ip ospf network $VAR(@) \"; " |