From d6b1cd76dbd2fd0abbf49546d155130d87b61896 Mon Sep 17 00:00:00 2001 From: Bob Gilligan Date: Thu, 9 Jul 2009 18:26:34 -0700 Subject: Bugfix 4716: Need to perform different actions on "update" and "create". --- .../ip/ospf/authentication/md5/key-id/node.tag/md5-key/node.def | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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: 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 -- cgit v1.2.3