From 026280d9c1dd53425fc43b8945700d92c6fc2f0c Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Wed, 13 Feb 2008 14:55:21 -0800 Subject: Add "set interface ip ospf bandwidth" to OSPF cost calculation. --- .../ethernet/node.tag/ip/ospf/bandwidth/node.def | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 templates/interfaces/ethernet/node.tag/ip/ospf/bandwidth/node.def (limited to 'templates') 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) -- cgit v1.2.3