diff options
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.def | 14 |
1 files changed, 4 insertions, 10 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 8f6d90ca..5ff617e6 100644 --- a/interface-templates/ip/ospf/authentication/md5/key-id/node.def +++ b/interface-templates/ip/ospf/authentication/md5/key-id/node.def @@ -1,19 +1,13 @@ 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(@)" -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 -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 |