summaryrefslogtreecommitdiff
path: root/interface-templates/ip/ospf/authentication
diff options
context:
space:
mode:
Diffstat (limited to 'interface-templates/ip/ospf/authentication')
-rw-r--r--interface-templates/ip/ospf/authentication/md5/key-id/node.tag/md5-key/node.def6
-rw-r--r--interface-templates/ip/ospf/authentication/md5/node.def8
-rw-r--r--interface-templates/ip/ospf/authentication/plaintext-password/node.def4
3 files changed, 7 insertions, 11 deletions
diff --git a/interface-templates/ip/ospf/authentication/md5/key-id/node.tag/md5-key/node.def b/interface-templates/ip/ospf/authentication/md5/key-id/node.tag/md5-key/node.def
index 2cae238a..97d1f693 100644
--- a/interface-templates/ip/ospf/authentication/md5/key-id/node.tag/md5-key/node.def
+++ b/interface-templates/ip/ospf/authentication/md5/key-id/node.tag/md5-key/node.def
@@ -9,16 +9,16 @@ comp_help: possible completions:
# If this node is created
create:
- vyatta-vtysh -c "configure terminal" -c "interface $IFNAME" \
+ vtysh -c "configure terminal" -c "interface $IFNAME" \
-c "ip ospf message-digest-key $VAR(../@) md5 $VAR(@)"
# If the value of this node is changed
update:
- vyatta-vtysh -c "configure terminal" -c "interface $IFNAME" \
+ vtysh -c "configure terminal" -c "interface $IFNAME" \
-c "no ip ospf message-digest-key $VAR(../@)" \
-c "ip ospf message-digest-key $VAR(../@) md5 $VAR(@)"
# If this node is deleted
delete:
- vyatta-vtysh -c "configure terminal" -c "interface $IFNAME" \
+ vtysh -c "configure terminal" -c "interface $IFNAME" \
-c "no ip ospf message-digest-key $VAR(../@)"
diff --git a/interface-templates/ip/ospf/authentication/md5/node.def b/interface-templates/ip/ospf/authentication/md5/node.def
index 1fcf3e64..1f3c8519 100644
--- a/interface-templates/ip/ospf/authentication/md5/node.def
+++ b/interface-templates/ip/ospf/authentication/md5/node.def
@@ -1,14 +1,10 @@
help: Set MD5 key id
-create:
- vyatta-vtysh \
- -c "configure terminal" \
+create: vtysh -c "configure terminal" \
-c "interface $IFNAME" \
-c "no ip ospf authentication" \
-c "ip ospf authentication message-digest"
-delete:
- vyatta-vtysh \
- -c "configure terminal" \
+delete: vtysh -c "configure terminal" \
-c "interface $IFNAME" \
-c "no ip ospf authentication"
diff --git a/interface-templates/ip/ospf/authentication/plaintext-password/node.def b/interface-templates/ip/ospf/authentication/plaintext-password/node.def
index 4b31f0d8..41ead9f0 100644
--- a/interface-templates/ip/ospf/authentication/plaintext-password/node.def
+++ b/interface-templates/ip/ospf/authentication/plaintext-password/node.def
@@ -1,10 +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" \
+update: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" \
+delete: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)