summaryrefslogtreecommitdiff
path: root/templates-cfg/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'templates-cfg/protocols')
-rw-r--r--templates-cfg/protocols/nhrp/node.def5
-rw-r--r--templates-cfg/protocols/nhrp/tunnel/node.def9
-rw-r--r--templates-cfg/protocols/nhrp/tunnel/node.tag/cisco-authentication/node.def4
-rw-r--r--templates-cfg/protocols/nhrp/tunnel/node.tag/holding-time/node.def2
-rw-r--r--templates-cfg/protocols/nhrp/tunnel/node.tag/map/node.def7
-rw-r--r--templates-cfg/protocols/nhrp/tunnel/node.tag/map/node.tag/cisco/node.def10
-rw-r--r--templates-cfg/protocols/nhrp/tunnel/node.tag/map/node.tag/nbma-address/node.def13
-rw-r--r--templates-cfg/protocols/nhrp/tunnel/node.tag/map/node.tag/register/node.def10
-rw-r--r--templates-cfg/protocols/nhrp/tunnel/node.tag/multicast/node.def7
-rw-r--r--templates-cfg/protocols/nhrp/tunnel/node.tag/non-caching/node.def10
-rw-r--r--templates-cfg/protocols/nhrp/tunnel/node.tag/redirect/node.def10
-rw-r--r--templates-cfg/protocols/nhrp/tunnel/node.tag/shortcut/node.def9
12 files changed, 96 insertions, 0 deletions
diff --git a/templates-cfg/protocols/nhrp/node.def b/templates-cfg/protocols/nhrp/node.def
new file mode 100644
index 0000000..2ec3906
--- /dev/null
+++ b/templates-cfg/protocols/nhrp/node.def
@@ -0,0 +1,5 @@
+help: NHRP parameters
+
+priority: 740
+
+end: sudo /opt/vyatta/sbin/vyos-update-nhrp.pl --set_nhrp;
diff --git a/templates-cfg/protocols/nhrp/tunnel/node.def b/templates-cfg/protocols/nhrp/tunnel/node.def
new file mode 100644
index 0000000..f7109c5
--- /dev/null
+++ b/templates-cfg/protocols/nhrp/tunnel/node.def
@@ -0,0 +1,9 @@
+tag:
+
+type: txt
+
+help: Tunnel for nhrp [REQUIRED]
+
+allowed: /opt/vyatta/sbin/vyatta-interfaces.pl --show tunnel
+
+val_help: <tun> ; Tunnel for nhrp
diff --git a/templates-cfg/protocols/nhrp/tunnel/node.tag/cisco-authentication/node.def b/templates-cfg/protocols/nhrp/tunnel/node.tag/cisco-authentication/node.def
new file mode 100644
index 0000000..50ec251
--- /dev/null
+++ b/templates-cfg/protocols/nhrp/tunnel/node.tag/cisco-authentication/node.def
@@ -0,0 +1,4 @@
+type: txt
+help: Pass phrase for cisco authentication
+default: ""
+
diff --git a/templates-cfg/protocols/nhrp/tunnel/node.tag/holding-time/node.def b/templates-cfg/protocols/nhrp/tunnel/node.tag/holding-time/node.def
new file mode 100644
index 0000000..c1fcd2a
--- /dev/null
+++ b/templates-cfg/protocols/nhrp/tunnel/node.tag/holding-time/node.def
@@ -0,0 +1,2 @@
+type: u32
+help: Holding time
diff --git a/templates-cfg/protocols/nhrp/tunnel/node.tag/map/node.def b/templates-cfg/protocols/nhrp/tunnel/node.tag/map/node.def
new file mode 100644
index 0000000..70234e2
--- /dev/null
+++ b/templates-cfg/protocols/nhrp/tunnel/node.tag/map/node.def
@@ -0,0 +1,7 @@
+type: ipv4net
+help: Set an HUB tunnel address
+
+syntax:expression: exec "/opt/vyatta/sbin/valid_address $VAR(@)"
+
+comp_help:Possible completions:
+ <x.x.x.x/x> Set the IP address and prefix length
diff --git a/templates-cfg/protocols/nhrp/tunnel/node.tag/map/node.tag/cisco/node.def b/templates-cfg/protocols/nhrp/tunnel/node.tag/map/node.tag/cisco/node.def
new file mode 100644
index 0000000..efe98a4
--- /dev/null
+++ b/templates-cfg/protocols/nhrp/tunnel/node.tag/map/node.tag/cisco/node.def
@@ -0,0 +1,10 @@
+#type: txt
+help: If the statically mapped peer is running Cisco IOS, specify this
+#default: "false"
+
+#syntax:expression: $VAR(@) in "true", "false"; \
+# "Must be 'true' or 'false'"
+
+#comp_help: "possible completions:
+# true
+# false (default)
diff --git a/templates-cfg/protocols/nhrp/tunnel/node.tag/map/node.tag/nbma-address/node.def b/templates-cfg/protocols/nhrp/tunnel/node.tag/map/node.tag/nbma-address/node.def
new file mode 100644
index 0000000..7a4420a
--- /dev/null
+++ b/templates-cfg/protocols/nhrp/tunnel/node.tag/map/node.tag/nbma-address/node.def
@@ -0,0 +1,13 @@
+tag:
+type: txt
+help: Set HUB address (nbma-address - external hub address or fqdn)
+
+#syntax:expression: exec "/opt/vyatta/sbin/vyatta-interfaces.pl --valid-addr $VAR(@) --dev $VAR(../@)"; "Invalid IP address/prefix [$VAR(@)] for interface $VAR(../@)"
+
+#create:expression: "sudo /opt/vyatta/sbin/vyatta-interfaces.pl --eth-addr-update $VAR(@) --dev $VAR(../@)"; "Error setting address $VAR(@) on interface $VAR(../@)"
+
+#delete:expression: "sudo /opt/vyatta/sbin/vyatta-interfaces.pl --eth-addr-delete $VAR(@) --dev $VAR(../@)"; "Error deleting address $VAR(@) on interface $VAR(../@)"
+
+comp_help:Possible completions:
+ <x.x.x.x> Set the external HUB address
+ <fqdn> Set the external HUB fqdn
diff --git a/templates-cfg/protocols/nhrp/tunnel/node.tag/map/node.tag/register/node.def b/templates-cfg/protocols/nhrp/tunnel/node.tag/map/node.tag/register/node.def
new file mode 100644
index 0000000..9e192f7
--- /dev/null
+++ b/templates-cfg/protocols/nhrp/tunnel/node.tag/map/node.tag/register/node.def
@@ -0,0 +1,10 @@
+#type: txt
+help: Set mode. Hub or Spoke (registar)
+#default: "true"
+
+#syntax:expression: $VAR(@) in "true", "false"; \
+# "Must be true or false"
+
+#comp_help:
+# true spoke mode (client,default)
+# false hub mode (server)
diff --git a/templates-cfg/protocols/nhrp/tunnel/node.tag/multicast/node.def b/templates-cfg/protocols/nhrp/tunnel/node.tag/multicast/node.def
new file mode 100644
index 0000000..b9d53ea
--- /dev/null
+++ b/templates-cfg/protocols/nhrp/tunnel/node.tag/multicast/node.def
@@ -0,0 +1,7 @@
+type: txt
+help: Set multicast for nhrp
+
+
+comp_help: possible completions:
+ dynamic multicast dynamic
+ nhs multicast nhs ipv4
diff --git a/templates-cfg/protocols/nhrp/tunnel/node.tag/non-caching/node.def b/templates-cfg/protocols/nhrp/tunnel/node.tag/non-caching/node.def
new file mode 100644
index 0000000..70658ef
--- /dev/null
+++ b/templates-cfg/protocols/nhrp/tunnel/node.tag/non-caching/node.def
@@ -0,0 +1,10 @@
+#type: txt
+help: This can be used to reduce memory consumption on big NBMA subnets
+#default: "false"
+
+#syntax:expression: $VAR(@) in "true", "false"; \
+ # "Must be 'true' or 'false'"
+
+#comp_help: "possible completions:
+# true true non-caching
+# false false non-caching (default)
diff --git a/templates-cfg/protocols/nhrp/tunnel/node.tag/redirect/node.def b/templates-cfg/protocols/nhrp/tunnel/node.tag/redirect/node.def
new file mode 100644
index 0000000..e1e680d
--- /dev/null
+++ b/templates-cfg/protocols/nhrp/tunnel/node.tag/redirect/node.def
@@ -0,0 +1,10 @@
+#type: txt
+help: Enable sending of Cisco style NHRP Traffic Indication packets
+#default: "false"
+
+#syntax:expression: $VAR(@) in "true", "false"; \
+# "Must be 'true' or 'false'"
+
+#comp_help: "possible completions:
+# true true Redirect
+# false false Redirect (default)
diff --git a/templates-cfg/protocols/nhrp/tunnel/node.tag/shortcut/node.def b/templates-cfg/protocols/nhrp/tunnel/node.tag/shortcut/node.def
new file mode 100644
index 0000000..0d89364
--- /dev/null
+++ b/templates-cfg/protocols/nhrp/tunnel/node.tag/shortcut/node.def
@@ -0,0 +1,9 @@
+#type: txt
+help: Enable creation of shortcut routes. A received NHRP Traffic Indication will trigger the resolution and establishment of a shortcut route
+#default: "true"
+
+#syntax:expression: $VAR(@) in "true", "false"; \
+# "Must be 'true' or 'false'"
+#comp_help: "possible completions:
+# true true Shortcut-destination
+# false false Shortcut-destination (default)