summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2008-02-13 14:55:21 -0800
committerStig Thormodsrud <stig@vyatta.com>2008-02-13 14:55:21 -0800
commit026280d9c1dd53425fc43b8945700d92c6fc2f0c (patch)
tree7395e9123d967a561c484db1be656e0e3bf5182e /templates
parentbfc47df97acb41cd4c7acbd7a4b1c46f258acd36 (diff)
downloadvyatta-cfg-quagga-026280d9c1dd53425fc43b8945700d92c6fc2f0c.tar.gz
vyatta-cfg-quagga-026280d9c1dd53425fc43b8945700d92c6fc2f0c.zip
Add "set interface <type> ip ospf bandwidth" to OSPF cost calculation.
Diffstat (limited to 'templates')
-rw-r--r--templates/interfaces/ethernet/node.tag/ip/ospf/bandwidth/node.def16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/interfaces/ethernet/node.tag/ip/ospf/bandwidth/node.def b/templates/interfaces/ethernet/node.tag/ip/ospf/bandwidth/node.def
new file mode 100644
index 00000000..af429604
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/ip/ospf/bandwidth/node.def
@@ -0,0 +1,16 @@
+type: u32
+help: Bandwidth in kilobits/sec
+syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 10000000; \
+ "Must be between 1-10000000"
+update:expression: "${vyatta_sbindir}/vyatta-vtysh.pl \
+ -c \"configure terminal \" \
+ -c \"interface $VAR(../../../@) \" \
+ -c \"bandwidth $VAR(@) \"; "
+
+delete:expression: "${vyatta_sbindir}/vyatta-vtysh.pl \
+ -c \"configure terminal \" \
+ -c \"interface $VAR(../../../@) \" \
+ -c \"no bandwidth $VAR(@) \"; "
+
+comp_help: possible completions:
+ <1-10000000> Set bandwidth in kilobits/sec (for calculating OSPF cost)