summaryrefslogtreecommitdiff
path: root/interface-templates/ip/ospf/authentication/md5/key-id/node.def
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-27 15:49:29 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-27 16:52:15 -0700
commite179cfe208f3889164b4682a6cf6e938857bcca9 (patch)
treecfea60b46d3fde6483ddcb2e33cf96c3354ed368 /interface-templates/ip/ospf/authentication/md5/key-id/node.def
parent2c48c6ff54fb4b0d29dd37a70e7cfa861f39bedb (diff)
downloadvyatta-cfg-quagga-e179cfe208f3889164b4682a6cf6e938857bcca9.tar.gz
vyatta-cfg-quagga-e179cfe208f3889164b4682a6cf6e938857bcca9.zip
Cleanup indentation of authentication template
Fix problem with conversion from expression to non-expression format of template.
Diffstat (limited to 'interface-templates/ip/ospf/authentication/md5/key-id/node.def')
-rw-r--r--interface-templates/ip/ospf/authentication/md5/key-id/node.def19
1 files changed, 11 insertions, 8 deletions
diff --git a/interface-templates/ip/ospf/authentication/md5/key-id/node.def b/interface-templates/ip/ospf/authentication/md5/key-id/node.def
index 630bd3f0..8f6d90ca 100644
--- a/interface-templates/ip/ospf/authentication/md5/key-id/node.def
+++ b/interface-templates/ip/ospf/authentication/md5/key-id/node.def
@@ -2,15 +2,18 @@ tag:
type: u32
help: Set MD5 key id
syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 255; "ID must be between (1-255)"
-commit:expression: $VAR(md5-key/) != ""; "Must add the md5-key for key-id $VAR(@)"
+commit:expression: $VAR(md5-key/) != ""; \
+ "Must add the md5-key for key-id $VAR(@)"
+
delete:touch /tmp/ospf-md5.$PPID
-end: if [ -f /tmp/ospf-md5.$PPID ]
- then vyatta-vtysh -c "configure terminal" -c "interface $IFNAME" \
- -c "no ip ospf message-digest-key $VAR(@)"
- rm /tmp/ospf-md5.$PPID \
- else vyatta-vtysh -c "configure terminal" -c "interface $IFNAME" \
- -c "ip ospf message-digest-key $VAR(@) md5 $VAR(md5-key/@)"
- fi
+end: if [ -f /tmp/ospf-md5.$PPID ]; then
+ vyatta-vtysh -c "configure terminal" -c "interface $IFNAME" \
+ -c "no ip ospf message-digest-key $VAR(@)"
+ rm -f /tmp/ospf-md5.$PPID
+ else
+ vyatta-vtysh -c "configure terminal" -c "interface $IFNAME" \
+ -c "ip ospf message-digest-key $VAR(@) md5 $VAR(md5-key/@)"
+ fi
comp_help: possible completions:
<1-255> Set the key id