summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2009-07-09 18:26:34 -0700
committerBob Gilligan <gilligan@vyatta.com>2009-07-09 18:26:34 -0700
commitd6b1cd76dbd2fd0abbf49546d155130d87b61896 (patch)
tree08e7882501320451b3305f2079a2fc7b89d3d862
parent793c7873e401e3920afda8ae8a7ab7611472f133 (diff)
downloadvyatta-cfg-quagga-d6b1cd76dbd2fd0abbf49546d155130d87b61896.tar.gz
vyatta-cfg-quagga-d6b1cd76dbd2fd0abbf49546d155130d87b61896.zip
Bugfix 4716: Need to perform different actions on "update" and "create".
-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