summaryrefslogtreecommitdiff
path: root/templates/protocols/ospf/auto-cost
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@uffda.(none)>2007-11-13 20:45:58 -0800
committerStig Thormodsrud <stig@uffda.(none)>2007-11-13 20:45:58 -0800
commit1a9535e68042f67087cd400523dc42103292c2fe (patch)
treea3650a1c5a90def61a7b1e49ed830727d757cbcb /templates/protocols/ospf/auto-cost
parent34441a9917ce16db0e48fc8d44ecd0ee4debaa34 (diff)
downloadvyatta-cfg-quagga-1a9535e68042f67087cd400523dc42103292c2fe.tar.gz
vyatta-cfg-quagga-1a9535e68042f67087cd400523dc42103292c2fe.zip
Add yet more OSPF configuration.
Diffstat (limited to 'templates/protocols/ospf/auto-cost')
-rw-r--r--templates/protocols/ospf/auto-cost/node.def1
-rw-r--r--templates/protocols/ospf/auto-cost/reference-bandwidth/node.def5
2 files changed, 6 insertions, 0 deletions
diff --git a/templates/protocols/ospf/auto-cost/node.def b/templates/protocols/ospf/auto-cost/node.def
new file mode 100644
index 00000000..54a3e80c
--- /dev/null
+++ b/templates/protocols/ospf/auto-cost/node.def
@@ -0,0 +1 @@
+help: "Calculate OSPF interface cost according to bandwidth"
diff --git a/templates/protocols/ospf/auto-cost/reference-bandwidth/node.def b/templates/protocols/ospf/auto-cost/reference-bandwidth/node.def
new file mode 100644
index 00000000..6fc9076f
--- /dev/null
+++ b/templates/protocols/ospf/auto-cost/reference-bandwidth/node.def
@@ -0,0 +1,5 @@
+type: u32
+help: "Use reference bandwidth method to assign OSPF cost in Mbits/sec"
+syntax: $(@) >= 1 && $(@) <= 4294967; "Must be between 1-4294967"
+update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router ospf\" -c \"auto-cost reference-bandwidth $(@) \"; "
+delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router ospf\" -c \"no auto-cost reference-bandwidth \"; "