summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2007-11-27 17:49:04 -0800
committerStig Thormodsrud <stig@vyatta.com>2007-11-27 17:49:04 -0800
commit1ebc228032b2306518da7a07ca07ef39544eaea2 (patch)
treecbc968eb5897ad7d8b6cdaaa8f560eed986c57d6 /templates
parenta20d25171360ec0252880fb6a1f02e970dec4d07 (diff)
downloadvyatta-cfg-quagga-1ebc228032b2306518da7a07ca07ef39544eaea2.tar.gz
vyatta-cfg-quagga-1ebc228032b2306518da7a07ca07ef39544eaea2.zip
Add OSPF interface commands for ethernet and loopback.
Diffstat (limited to 'templates')
-rw-r--r--templates/interfaces/ethernet/node.tag/ip/node.def1
-rw-r--r--templates/interfaces/ethernet/node.tag/ip/ospf/cost/node.def9
-rw-r--r--templates/interfaces/ethernet/node.tag/ip/ospf/dead-interval/node.def9
-rw-r--r--templates/interfaces/ethernet/node.tag/ip/ospf/hello-interval/node.def8
-rw-r--r--templates/interfaces/ethernet/node.tag/ip/ospf/mtu-ignore/node.def5
-rw-r--r--templates/interfaces/ethernet/node.tag/ip/ospf/network/node.def8
-rw-r--r--templates/interfaces/ethernet/node.tag/ip/ospf/node.def1
-rw-r--r--templates/interfaces/ethernet/node.tag/ip/ospf/priority/node.def8
-rw-r--r--templates/interfaces/ethernet/node.tag/ip/ospf/retransmit-interval/node.def8
-rw-r--r--templates/interfaces/ethernet/node.tag/ip/ospf/transmit-delay/node.def8
-rw-r--r--templates/interfaces/loopback/node.tag/ip/node.def1
-rw-r--r--templates/interfaces/loopback/node.tag/ip/ospf/cost/node.def9
-rw-r--r--templates/interfaces/loopback/node.tag/ip/ospf/dead-interval/node.def9
-rw-r--r--templates/interfaces/loopback/node.tag/ip/ospf/hello-interval/node.def8
-rw-r--r--templates/interfaces/loopback/node.tag/ip/ospf/mtu-ignore/node.def5
-rw-r--r--templates/interfaces/loopback/node.tag/ip/ospf/network/node.def8
-rw-r--r--templates/interfaces/loopback/node.tag/ip/ospf/node.def1
-rw-r--r--templates/interfaces/loopback/node.tag/ip/ospf/priority/node.def8
-rw-r--r--templates/interfaces/loopback/node.tag/ip/ospf/retransmit-interval/node.def8
-rw-r--r--templates/interfaces/loopback/node.tag/ip/ospf/transmit-delay/node.def8
-rw-r--r--templates/protocols/ospf/area/node.tag/virtual-link/node.tag/dead-interval/node.def1
-rw-r--r--templates/protocols/ospf/area/node.tag/virtual-link/node.tag/hello-interval/node.def1
-rw-r--r--templates/protocols/ospf/area/node.tag/virtual-link/node.tag/retransmit-interval/node.def1
-rw-r--r--templates/protocols/ospf/area/node.tag/virtual-link/node.tag/transmit-delay/node.def1
-rw-r--r--templates/protocols/static/route/node.tag/next-hop/node.def1
25 files changed, 135 insertions, 0 deletions
diff --git a/templates/interfaces/ethernet/node.tag/ip/node.def b/templates/interfaces/ethernet/node.tag/ip/node.def
new file mode 100644
index 00000000..a25158f6
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/ip/node.def
@@ -0,0 +1 @@
+help: "Interface IPv4 configuration commands"
diff --git a/templates/interfaces/ethernet/node.tag/ip/ospf/cost/node.def b/templates/interfaces/ethernet/node.tag/ip/ospf/cost/node.def
new file mode 100644
index 00000000..8d7f7dd7
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/ip/ospf/cost/node.def
@@ -0,0 +1,9 @@
+type: u32
+help: "Interface cost"
+syntax: $(@) >= 1 && $(@) <= 65535; "Must be between 1-65535"
+update: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@)\" \
+ -c \"ip ospf cost $(@) \"; "
+delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@)\" \
+ -c \"no ip ospf cost \"; "
+#comp_help: <1-65535> Cost
+
diff --git a/templates/interfaces/ethernet/node.tag/ip/ospf/dead-interval/node.def b/templates/interfaces/ethernet/node.tag/ip/ospf/dead-interval/node.def
new file mode 100644
index 00000000..c27284e1
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/ip/ospf/dead-interval/node.def
@@ -0,0 +1,9 @@
+type: u32
+help: "Interval after which a neighbor is declared dead"
+syntax: $(@) >= 1 && $(@) <= 65535; "Must be between 1-65535"
+update: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@)\" \
+ -c \"ip ospf dead-interval $(@)\"; "
+delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@)\" \
+ -c \"no ip ospf dead-interval \"; "
+#comp_help: <1-65535> Seconds
+
diff --git a/templates/interfaces/ethernet/node.tag/ip/ospf/hello-interval/node.def b/templates/interfaces/ethernet/node.tag/ip/ospf/hello-interval/node.def
new file mode 100644
index 00000000..d9f7512d
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/ip/ospf/hello-interval/node.def
@@ -0,0 +1,8 @@
+type: u32
+help: "Interval between HELLO packets"
+syntax: $(@) >= 1 && $(@) <= 65535; "Must be between 1-65535"
+update: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@) \" \
+ -c \"ip ospf hello-interval $(@)\"; "
+delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@) \" \
+ -c \"no ip ospf hello-interval \"; "
+#comp_help: <1-65535> Seconds
diff --git a/templates/interfaces/ethernet/node.tag/ip/ospf/mtu-ignore/node.def b/templates/interfaces/ethernet/node.tag/ip/ospf/mtu-ignore/node.def
new file mode 100644
index 00000000..b976efa0
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/ip/ospf/mtu-ignore/node.def
@@ -0,0 +1,5 @@
+help: "Disable mtu mismatch detection"
+create: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@)\" \
+ -c \"ip ospf mtu-ignore\"; "
+delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@)\" \
+ -c \"no ip ospf mtu-ignore\"; "
diff --git a/templates/interfaces/ethernet/node.tag/ip/ospf/network/node.def b/templates/interfaces/ethernet/node.tag/ip/ospf/network/node.def
new file mode 100644
index 00000000..31116253
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/ip/ospf/network/node.def
@@ -0,0 +1,8 @@
+type: txt
+help: "Network type"
+syntax: $(@) in "broadcast", "non-broadcast", "point-to-multipoint", "point-to-point"; "Must be (broadcast|non-broadcast|point-to-multipoint|point-to-point)"
+update: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@)\" \
+ -c \"ip ospf network $(@)\"; "
+delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@)\" \
+ -c \"no ip ospf network \"; "
+#comp_help: Enter the network type (broadcast|non-broadcast|point-to-multipoint|point-to-point)
diff --git a/templates/interfaces/ethernet/node.tag/ip/ospf/node.def b/templates/interfaces/ethernet/node.tag/ip/ospf/node.def
new file mode 100644
index 00000000..af28ce3d
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/ip/ospf/node.def
@@ -0,0 +1 @@
+help: "OSPF interface commands"
diff --git a/templates/interfaces/ethernet/node.tag/ip/ospf/priority/node.def b/templates/interfaces/ethernet/node.tag/ip/ospf/priority/node.def
new file mode 100644
index 00000000..4b654ab8
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/ip/ospf/priority/node.def
@@ -0,0 +1,8 @@
+type: u32
+help: "Router priority"
+syntax: $(@) >= 0 && $(@) <= 255; "Must be between 0-255"
+update: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@)\" \
+ -c \"ip ospf priority $(@)\"; "
+delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@)\" \
+ -c \"no ip ospf priority \"; "
+#comp_help: <0-255> Priority
diff --git a/templates/interfaces/ethernet/node.tag/ip/ospf/retransmit-interval/node.def b/templates/interfaces/ethernet/node.tag/ip/ospf/retransmit-interval/node.def
new file mode 100644
index 00000000..b428e2e8
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/ip/ospf/retransmit-interval/node.def
@@ -0,0 +1,8 @@
+type: u32
+help: "Interval between retransmitting lost link state advertisements"
+syntax: $(@) >= 3 && $(@) <= 65535; "Must be between 3-65535"
+update: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@)\" \
+ -c \"ip ospf retransmit-interval $(@)\"; "
+delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@)\" \
+ -c \"no ip ospf retransmit-interval \"; "
+#comp_help: <3-65535> Seconds
diff --git a/templates/interfaces/ethernet/node.tag/ip/ospf/transmit-delay/node.def b/templates/interfaces/ethernet/node.tag/ip/ospf/transmit-delay/node.def
new file mode 100644
index 00000000..6f27e1e0
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/ip/ospf/transmit-delay/node.def
@@ -0,0 +1,8 @@
+type: u32
+help: "Link state transmit delay"
+syntax: $(@) >= 1 && $(@) <= 65535; "Must be between 1-65535"
+update: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@)\" \
+ -c \"ip ospf transmit-delay $(@)\"; "
+delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@)\" \
+ -c \"no ip ospf transmit-delay \"; "
+#comp_help: <1-65535> Seconds
diff --git a/templates/interfaces/loopback/node.tag/ip/node.def b/templates/interfaces/loopback/node.tag/ip/node.def
new file mode 100644
index 00000000..a25158f6
--- /dev/null
+++ b/templates/interfaces/loopback/node.tag/ip/node.def
@@ -0,0 +1 @@
+help: "Interface IPv4 configuration commands"
diff --git a/templates/interfaces/loopback/node.tag/ip/ospf/cost/node.def b/templates/interfaces/loopback/node.tag/ip/ospf/cost/node.def
new file mode 100644
index 00000000..8d7f7dd7
--- /dev/null
+++ b/templates/interfaces/loopback/node.tag/ip/ospf/cost/node.def
@@ -0,0 +1,9 @@
+type: u32
+help: "Interface cost"
+syntax: $(@) >= 1 && $(@) <= 65535; "Must be between 1-65535"
+update: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@)\" \
+ -c \"ip ospf cost $(@) \"; "
+delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@)\" \
+ -c \"no ip ospf cost \"; "
+#comp_help: <1-65535> Cost
+
diff --git a/templates/interfaces/loopback/node.tag/ip/ospf/dead-interval/node.def b/templates/interfaces/loopback/node.tag/ip/ospf/dead-interval/node.def
new file mode 100644
index 00000000..c27284e1
--- /dev/null
+++ b/templates/interfaces/loopback/node.tag/ip/ospf/dead-interval/node.def
@@ -0,0 +1,9 @@
+type: u32
+help: "Interval after which a neighbor is declared dead"
+syntax: $(@) >= 1 && $(@) <= 65535; "Must be between 1-65535"
+update: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@)\" \
+ -c \"ip ospf dead-interval $(@)\"; "
+delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@)\" \
+ -c \"no ip ospf dead-interval \"; "
+#comp_help: <1-65535> Seconds
+
diff --git a/templates/interfaces/loopback/node.tag/ip/ospf/hello-interval/node.def b/templates/interfaces/loopback/node.tag/ip/ospf/hello-interval/node.def
new file mode 100644
index 00000000..d9f7512d
--- /dev/null
+++ b/templates/interfaces/loopback/node.tag/ip/ospf/hello-interval/node.def
@@ -0,0 +1,8 @@
+type: u32
+help: "Interval between HELLO packets"
+syntax: $(@) >= 1 && $(@) <= 65535; "Must be between 1-65535"
+update: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@) \" \
+ -c \"ip ospf hello-interval $(@)\"; "
+delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@) \" \
+ -c \"no ip ospf hello-interval \"; "
+#comp_help: <1-65535> Seconds
diff --git a/templates/interfaces/loopback/node.tag/ip/ospf/mtu-ignore/node.def b/templates/interfaces/loopback/node.tag/ip/ospf/mtu-ignore/node.def
new file mode 100644
index 00000000..b976efa0
--- /dev/null
+++ b/templates/interfaces/loopback/node.tag/ip/ospf/mtu-ignore/node.def
@@ -0,0 +1,5 @@
+help: "Disable mtu mismatch detection"
+create: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@)\" \
+ -c \"ip ospf mtu-ignore\"; "
+delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@)\" \
+ -c \"no ip ospf mtu-ignore\"; "
diff --git a/templates/interfaces/loopback/node.tag/ip/ospf/network/node.def b/templates/interfaces/loopback/node.tag/ip/ospf/network/node.def
new file mode 100644
index 00000000..31116253
--- /dev/null
+++ b/templates/interfaces/loopback/node.tag/ip/ospf/network/node.def
@@ -0,0 +1,8 @@
+type: txt
+help: "Network type"
+syntax: $(@) in "broadcast", "non-broadcast", "point-to-multipoint", "point-to-point"; "Must be (broadcast|non-broadcast|point-to-multipoint|point-to-point)"
+update: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@)\" \
+ -c \"ip ospf network $(@)\"; "
+delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@)\" \
+ -c \"no ip ospf network \"; "
+#comp_help: Enter the network type (broadcast|non-broadcast|point-to-multipoint|point-to-point)
diff --git a/templates/interfaces/loopback/node.tag/ip/ospf/node.def b/templates/interfaces/loopback/node.tag/ip/ospf/node.def
new file mode 100644
index 00000000..af28ce3d
--- /dev/null
+++ b/templates/interfaces/loopback/node.tag/ip/ospf/node.def
@@ -0,0 +1 @@
+help: "OSPF interface commands"
diff --git a/templates/interfaces/loopback/node.tag/ip/ospf/priority/node.def b/templates/interfaces/loopback/node.tag/ip/ospf/priority/node.def
new file mode 100644
index 00000000..4b654ab8
--- /dev/null
+++ b/templates/interfaces/loopback/node.tag/ip/ospf/priority/node.def
@@ -0,0 +1,8 @@
+type: u32
+help: "Router priority"
+syntax: $(@) >= 0 && $(@) <= 255; "Must be between 0-255"
+update: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@)\" \
+ -c \"ip ospf priority $(@)\"; "
+delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@)\" \
+ -c \"no ip ospf priority \"; "
+#comp_help: <0-255> Priority
diff --git a/templates/interfaces/loopback/node.tag/ip/ospf/retransmit-interval/node.def b/templates/interfaces/loopback/node.tag/ip/ospf/retransmit-interval/node.def
new file mode 100644
index 00000000..b428e2e8
--- /dev/null
+++ b/templates/interfaces/loopback/node.tag/ip/ospf/retransmit-interval/node.def
@@ -0,0 +1,8 @@
+type: u32
+help: "Interval between retransmitting lost link state advertisements"
+syntax: $(@) >= 3 && $(@) <= 65535; "Must be between 3-65535"
+update: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@)\" \
+ -c \"ip ospf retransmit-interval $(@)\"; "
+delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@)\" \
+ -c \"no ip ospf retransmit-interval \"; "
+#comp_help: <3-65535> Seconds
diff --git a/templates/interfaces/loopback/node.tag/ip/ospf/transmit-delay/node.def b/templates/interfaces/loopback/node.tag/ip/ospf/transmit-delay/node.def
new file mode 100644
index 00000000..6f27e1e0
--- /dev/null
+++ b/templates/interfaces/loopback/node.tag/ip/ospf/transmit-delay/node.def
@@ -0,0 +1,8 @@
+type: u32
+help: "Link state transmit delay"
+syntax: $(@) >= 1 && $(@) <= 65535; "Must be between 1-65535"
+update: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@)\" \
+ -c \"ip ospf transmit-delay $(@)\"; "
+delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../@)\" \
+ -c \"no ip ospf transmit-delay \"; "
+#comp_help: <1-65535> Seconds
diff --git a/templates/protocols/ospf/area/node.tag/virtual-link/node.tag/dead-interval/node.def b/templates/protocols/ospf/area/node.tag/virtual-link/node.tag/dead-interval/node.def
index bb8b8de4..c3f04081 100644
--- a/templates/protocols/ospf/area/node.tag/virtual-link/node.tag/dead-interval/node.def
+++ b/templates/protocols/ospf/area/node.tag/virtual-link/node.tag/dead-interval/node.def
@@ -5,3 +5,4 @@ update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router ospf\" \
-c \"area $(../../@) virtual-link $(../@) dead-interval $(@)\"; "
delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router ospf\" \
-c \"no area $(../../@) virtual-link $(../@) dead-interval \"; "
+#comp_help: <1-65535> Seconds
diff --git a/templates/protocols/ospf/area/node.tag/virtual-link/node.tag/hello-interval/node.def b/templates/protocols/ospf/area/node.tag/virtual-link/node.tag/hello-interval/node.def
index c449e3e5..3c28b6f7 100644
--- a/templates/protocols/ospf/area/node.tag/virtual-link/node.tag/hello-interval/node.def
+++ b/templates/protocols/ospf/area/node.tag/virtual-link/node.tag/hello-interval/node.def
@@ -5,3 +5,4 @@ update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router ospf\" \
-c \"area $(../../@) virtual-link $(../@) hello-interval $(@)\"; "
delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router ospf\" \
-c \"no area $(../../@) virtual-link $(../@) hello-interval \"; "
+#comp_help: <1-65535> Seconds
diff --git a/templates/protocols/ospf/area/node.tag/virtual-link/node.tag/retransmit-interval/node.def b/templates/protocols/ospf/area/node.tag/virtual-link/node.tag/retransmit-interval/node.def
index 9f2c8e1a..67b453d4 100644
--- a/templates/protocols/ospf/area/node.tag/virtual-link/node.tag/retransmit-interval/node.def
+++ b/templates/protocols/ospf/area/node.tag/virtual-link/node.tag/retransmit-interval/node.def
@@ -5,3 +5,4 @@ update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router ospf\" \
-c \"area $(../../@) virtual-link $(../@) retransmit-interval $(@)\"; "
delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router ospf\" \
-c \"no area $(../../@) virtual-link $(../@) retransmit-interval \"; "
+#comp_help: <1-65535> Seconds
diff --git a/templates/protocols/ospf/area/node.tag/virtual-link/node.tag/transmit-delay/node.def b/templates/protocols/ospf/area/node.tag/virtual-link/node.tag/transmit-delay/node.def
index 14163250..dc16966a 100644
--- a/templates/protocols/ospf/area/node.tag/virtual-link/node.tag/transmit-delay/node.def
+++ b/templates/protocols/ospf/area/node.tag/virtual-link/node.tag/transmit-delay/node.def
@@ -5,3 +5,4 @@ update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router ospf\" \
-c \"area $(../../@) virtual-link $(../@) transmit-delay $(@)\"; "
delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router ospf\" \
-c \"no area $(../../@) virtual-link $(../@) transmit-delay \"; "
+#comp_help: <1-65535> Seconds
diff --git a/templates/protocols/static/route/node.tag/next-hop/node.def b/templates/protocols/static/route/node.tag/next-hop/node.def
index 0cb5e367..53de6dc7 100644
--- a/templates/protocols/static/route/node.tag/next-hop/node.def
+++ b/templates/protocols/static/route/node.tag/next-hop/node.def
@@ -1,4 +1,5 @@
type: ipv4
help: "Configure the next-hop router"
create: "/usr/bin/vtysh -c \"configure terminal\" -c \"ip route $(../@) $(@)\" "
+update: "/usr/bin/vtysh -c \"configure terminal\" -c \"ip route $(../@) $(@)\" "
delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"no ip route $(../@) $(@)\" "