summaryrefslogtreecommitdiff
path: root/templates/protocols/ospf/area
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@uffda.(none)>2007-10-18 18:49:14 -0700
committerStig Thormodsrud <stig@uffda.(none)>2007-10-18 18:49:14 -0700
commiteb27e2fffae49b0d8fa636bee611d9ad3c1e0999 (patch)
tree9c5ab6ea0511bc9ff98dc0480a583c530a639624 /templates/protocols/ospf/area
parent70ad82f7cd762ddfd34534197ca1a4c1d7ee5b6c (diff)
downloadvyatta-cfg-quagga-eb27e2fffae49b0d8fa636bee611d9ad3c1e0999.tar.gz
vyatta-cfg-quagga-eb27e2fffae49b0d8fa636bee611d9ad3c1e0999.zip
Add minimal ospf config.
- still need to add validation and rest of functionality.
Diffstat (limited to 'templates/protocols/ospf/area')
-rw-r--r--templates/protocols/ospf/area/node.def4
-rw-r--r--templates/protocols/ospf/area/node.tag/network/node.def7
-rw-r--r--templates/protocols/ospf/area/node.tag/node.def3
3 files changed, 14 insertions, 0 deletions
diff --git a/templates/protocols/ospf/area/node.def b/templates/protocols/ospf/area/node.def
new file mode 100644
index 00000000..d06ef605
--- /dev/null
+++ b/templates/protocols/ospf/area/node.def
@@ -0,0 +1,4 @@
+tag:
+type: txt
+help: "Area"
+
diff --git a/templates/protocols/ospf/area/node.tag/network/node.def b/templates/protocols/ospf/area/node.tag/network/node.def
new file mode 100644
index 00000000..b6480f54
--- /dev/null
+++ b/templates/protocols/ospf/area/node.tag/network/node.def
@@ -0,0 +1,7 @@
+type: ipv4net
+help: "OSPF network"
+syntax: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --check-prefix-boundry $(@)"
+update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router ospf\" \
+ -c \"network $(@) area $(../@)\"; "
+delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router ospf\" \
+ -c \"no network $(@) area $(../@)\"; "
diff --git a/templates/protocols/ospf/area/node.tag/node.def b/templates/protocols/ospf/area/node.tag/node.def
new file mode 100644
index 00000000..391ddf6b
--- /dev/null
+++ b/templates/protocols/ospf/area/node.tag/node.def
@@ -0,0 +1,3 @@
+help: "IPv4 network"
+
+