From 82335ed71c664d4b6225d1e81e7b6f17fb701663 Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Wed, 13 Feb 2008 18:16:19 -0800 Subject: Fix 2819 Plain-text authentication should be identified as such --- .../authentication/plaintext-password/node.def | 23 ++++++++++++++++++++++ .../ip/ospf/authentication/simple/node.def | 20 ------------------- .../tunnel/node.tag/ip/ospf/network/node.def | 2 +- 3 files changed, 24 insertions(+), 21 deletions(-) create mode 100644 templates/interfaces/tunnel/node.tag/ip/ospf/authentication/plaintext-password/node.def delete mode 100644 templates/interfaces/tunnel/node.tag/ip/ospf/authentication/simple/node.def (limited to 'templates/interfaces/tunnel') diff --git a/templates/interfaces/tunnel/node.tag/ip/ospf/authentication/plaintext-password/node.def b/templates/interfaces/tunnel/node.tag/ip/ospf/authentication/plaintext-password/node.def new file mode 100644 index 00000000..a55e38b0 --- /dev/null +++ b/templates/interfaces/tunnel/node.tag/ip/ospf/authentication/plaintext-password/node.def @@ -0,0 +1,23 @@ +type: txt +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: + Plain text password (8 characters or less) diff --git a/templates/interfaces/tunnel/node.tag/ip/ospf/authentication/simple/node.def b/templates/interfaces/tunnel/node.tag/ip/ospf/authentication/simple/node.def deleted file mode 100644 index a2a1ef7a..00000000 --- a/templates/interfaces/tunnel/node.tag/ip/ospf/authentication/simple/node.def +++ /dev/null @@ -1,20 +0,0 @@ -type: txt -help: Configure simple 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: - Simple 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(@) \"; " -- cgit v1.2.3