diff options
Diffstat (limited to 'templates/protocols/ospf')
-rw-r--r-- | templates/protocols/ospf/area/node.tag/authentication/node.def | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/templates/protocols/ospf/area/node.tag/authentication/node.def b/templates/protocols/ospf/area/node.tag/authentication/node.def new file mode 100644 index 00000000..2a55767d --- /dev/null +++ b/templates/protocols/ospf/area/node.tag/authentication/node.def @@ -0,0 +1,17 @@ +type: txt +help: "Configure OSPF area authentication type" +syntax: $(@) in "simple", "md5"; "Must be either simple or md5" +update: "if [ x$(@) == xsimple ]; then \ + /usr/bin/vtysh -c \"configure terminal\" \ + -c \"router ospf \" \ + -c \"no area $(../@) authentication \" \ + -c \"area $(../@) authentication \" ; \ + else \ + /usr/bin/vtysh -c \"configure terminal\" \ + -c \"router ospf \" \ + -c \"no area $(../@) authentication \" \ + -c \"area $(../@) authentication message-digest\" ; \ + fi; " +delete: "/usr/bin/vtysh -c \"configure terminal\" \ + -c \"router ospf \" \ + -c \"no area $(../@) authentication \" " |