diff options
Diffstat (limited to 'interface-templates/ip/ospf/authentication/plaintext-password/node.def')
-rw-r--r-- | interface-templates/ip/ospf/authentication/plaintext-password/node.def | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/interface-templates/ip/ospf/authentication/plaintext-password/node.def b/interface-templates/ip/ospf/authentication/plaintext-password/node.def new file mode 100644 index 00000000..4b31f0d8 --- /dev/null +++ b/interface-templates/ip/ospf/authentication/plaintext-password/node.def @@ -0,0 +1,10 @@ +type: txt +help: Configure plain text password +syntax:expression: pattern $VAR(@) "^[^[:space:]]{1,8}$" ; "Password must be 8 characters or less" +update:vyatta-vtysh -c "configure terminal" -c "interface $IFNAME" \ + -c "no ip ospf authentication " -c "ip ospf authentication " \ + -c "ip ospf authentication-key $VAR(@)" +delete:vyatta-vtysh -c "configure terminal" -c "interface $IFNAME" \ + -c "no ip ospf authentication " -c "no ip ospf authentication-key" +comp_help: possible completions: + <text> Plain text password (8 characters or less) |