summaryrefslogtreecommitdiff
path: root/templates/protocols/static/route
diff options
context:
space:
mode:
Diffstat (limited to 'templates/protocols/static/route')
-rw-r--r--templates/protocols/static/route/node.def4
-rw-r--r--templates/protocols/static/route/node.tag/next-hop/node.def4
-rw-r--r--templates/protocols/static/route/node.tag/node.def1
3 files changed, 9 insertions, 0 deletions
diff --git a/templates/protocols/static/route/node.def b/templates/protocols/static/route/node.def
new file mode 100644
index 00000000..63e2c6c7
--- /dev/null
+++ b/templates/protocols/static/route/node.def
@@ -0,0 +1,4 @@
+tag:
+type: ipv4net
+help: "Configure a static route"
+syntax: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --check-prefix-boundry $(@)"
diff --git a/templates/protocols/static/route/node.tag/next-hop/node.def b/templates/protocols/static/route/node.tag/next-hop/node.def
new file mode 100644
index 00000000..0cb5e367
--- /dev/null
+++ b/templates/protocols/static/route/node.tag/next-hop/node.def
@@ -0,0 +1,4 @@
+type: ipv4
+help: "Configure the next-hop router"
+create: "/usr/bin/vtysh -c \"configure terminal\" -c \"ip route $(../@) $(@)\" "
+delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"no ip route $(../@) $(@)\" "
diff --git a/templates/protocols/static/route/node.tag/node.def b/templates/protocols/static/route/node.tag/node.def
new file mode 100644
index 00000000..e64fee84
--- /dev/null
+++ b/templates/protocols/static/route/node.tag/node.def
@@ -0,0 +1 @@
+help: "IP network"