diff options
author | Bob Gilligan <gilligan@vyatta.com> | 2009-07-09 18:26:34 -0700 |
---|---|---|
committer | Bob Gilligan <gilligan@vyatta.com> | 2009-07-09 18:28:34 -0700 |
commit | 33336fff1ce8845fdd39686342975b1349c59467 (patch) | |
tree | 6f13347be031a8c5bb652ac3a5709f0610478473 /interface-templates/ip/ospf | |
parent | b837d61663fb84d79e979ffe2b2e56646070647c (diff) | |
download | vyatta-cfg-quagga-33336fff1ce8845fdd39686342975b1349c59467.tar.gz vyatta-cfg-quagga-33336fff1ce8845fdd39686342975b1349c59467.zip |
Bugfix 4716: Need to perform different actions on "update" and "create".
Diffstat (limited to 'interface-templates/ip/ospf')
-rw-r--r-- | interface-templates/ip/ospf/authentication/md5/key-id/node.tag/md5-key/node.def | 8 |
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 |