summaryrefslogtreecommitdiff
path: root/templates/interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'templates/interfaces')
-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)