summaryrefslogtreecommitdiff
path: root/templates/protocols/ospf/area
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2007-11-29 11:51:22 -0800
committerStig Thormodsrud <stig@vyatta.com>2007-11-29 11:51:22 -0800
commit67a64a925231ac24036bdad5916e175bf1bb5dbf (patch)
treed610299f576ff427bff078ec042ab2ee37df885d /templates/protocols/ospf/area
parentbf8fe41f2d976e8cd10f258110fe7ec98e39fee4 (diff)
downloadvyatta-cfg-quagga-67a64a925231ac24036bdad5916e175bf1bb5dbf.tar.gz
vyatta-cfg-quagga-67a64a925231ac24036bdad5916e175bf1bb5dbf.zip
Add cli for OSPF authentication.
Diffstat (limited to 'templates/protocols/ospf/area')
-rw-r--r--templates/protocols/ospf/area/node.tag/authentication/node.def17
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 \" "