From 67a64a925231ac24036bdad5916e175bf1bb5dbf Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Thu, 29 Nov 2007 11:51:22 -0800 Subject: Add cli for OSPF authentication. --- .../ospf/area/node.tag/authentication/node.def | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 templates/protocols/ospf/area/node.tag/authentication/node.def (limited to 'templates/protocols/ospf/area') 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 \" " -- cgit v1.2.3