summaryrefslogtreecommitdiff
path: root/interface-templates/ip/ospf/authentication/md5/key-id/node.def
blob: 630bd3f00b9cf1b039f72f361a3e201b0638ac72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 /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