summaryrefslogtreecommitdiff
path: root/interface-templates/ip
diff options
context:
space:
mode:
Diffstat (limited to 'interface-templates/ip')
-rw-r--r--interface-templates/ip/ospf/authentication/md5/key-id/node.tag/md5-key/node.def8
1 files changed, 7 insertions, 1 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 24f96906..2cae238a 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
@@ -7,9 +7,15 @@ syntax:expression: pattern $VAR(@) "^[^[:space:]]{1,16}$"; "MD5 key must be 16 c
comp_help: possible completions:
<text> MD5 Key (16 characters or less)
-# If this node is created or its value changed
+# If this node is created
+create:
+ vyatta-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" \
+ -c "no ip ospf message-digest-key $VAR(../@)" \
-c "ip ospf message-digest-key $VAR(../@) md5 $VAR(@)"
# If this node is deleted