diff options
Diffstat (limited to 'templates')
2 files changed, 26 insertions, 21 deletions
diff --git a/templates/protocols/ospf/area/node.tag/virtual-link/node.tag/authentication/md5/node.def b/templates/protocols/ospf/area/node.tag/virtual-link/node.tag/authentication/md5/node.def index c2af0dd3..e81d00be 100644 --- a/templates/protocols/ospf/area/node.tag/virtual-link/node.tag/authentication/md5/node.def +++ b/templates/protocols/ospf/area/node.tag/virtual-link/node.tag/authentication/md5/node.def @@ -1,14 +1,16 @@ help: Configure MD5 key id -create:expression: "${vyatta_sbindir}/vyatta-vtysh.pl \ - -c \"configure terminal\" \ - -c \"router ospf\" \ - -c \"no area $VAR(../../../@) virtual-link $VAR(../../@) \ - authentication-key\" \ - -c \"area $VAR(../../../@) virtual-link $VAR(../../@) \ - authentication message-digest\"; " +commit:expression: $VAR(../plaintext-password/) == "" ; "plaintext-password already set" -delete:expression: "${vyatta_sbindir}/vyatta-vtysh.pl \ - -c \"configure terminal\" \ - -c \"router ospf\" \ - -c \"area $VAR(../../../@) virtual-link $VAR(../../@) \ - authentication null\"; " +create: ${vyatta_sbindir}/vyatta-vtysh.pl \ + -c "configure terminal" \ + -c "router ospf" \ + -c "no area $VAR(../../../@) virtual-link $VAR(../../@) \ + authentication-key" \ + -c "area $VAR(../../../@) virtual-link $VAR(../../@) \ + authentication message-digest"; + +delete: ${vyatta_sbindir}/vyatta-vtysh.pl \ + -c "configure terminal" \ + -c "router ospf" \ + -c "area $VAR(../../../@) virtual-link $VAR(../../@) \ + authentication null"; 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 ab268f98..6b024a35 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,20 +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 \"router ospf\" \ - -c \"area $VAR(../../../@) virtual-link $VAR(../../@) \ - authentication authentication-key $VAR(@) \"; " +commit:expression: $VAR(../md5/) == "" ; "md5 password already set" + +update: ${vyatta_sbindir}/vyatta-vtysh.pl \ + -c "configure terminal" -c "router ospf" \ + -c "area $VAR(../../../@) virtual-link $VAR(../../@) \ + authentication authentication-key $VAR(@) " -delete:expression: "${vyatta_sbindir}/vyatta-vtysh.pl \ - -c \"configure terminal\" -c \"router ospf\" \ - -c \"no area $VAR(../../../@) virtual-link $VAR(../../@) \ - authentication authentication-key \"; " +delete: ${vyatta_sbindir}/vyatta-vtysh.pl \ + -c "configure terminal" -c "router ospf" \ + -c "no area $VAR(../../../@) virtual-link $VAR(../../@) \ + authentication authentication-key"; comp_help: possible completions: - <text> Plain text password (8 characters or less) + <text> Plain text password (8 characters or less) |