summaryrefslogtreecommitdiff
path: root/interface-templates/ipv6/ripng
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-25 14:15:44 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-25 14:15:44 -0700
commiteedd04171ff3c6017e52830e8e07ec437e1c6663 (patch)
tree2e6be92570d53c1e134c806e3de7e0477b11c017 /interface-templates/ipv6/ripng
parent82b2f6abc7b3b5e3164675c28a27506b39eeb9a7 (diff)
downloadvyatta-cfg-quagga-eedd04171ff3c6017e52830e8e07ec437e1c6663.tar.gz
vyatta-cfg-quagga-eedd04171ff3c6017e52830e8e07ec437e1c6663.zip
Generate interface templates as part of build
Rather than 100's of copies of the same template, use the same process as the firewall module to generate the templates. For this, the are meta-templates in interface-templates directory which get processed and $IFNAME is replaced by the appropriate CLI syntax to refer back to the directory name. Changing a quagga template in most cases can be done by fixing the meta-template.
Diffstat (limited to 'interface-templates/ipv6/ripng')
-rw-r--r--interface-templates/ipv6/ripng/node.def2
-rw-r--r--interface-templates/ipv6/ripng/split-horizon/disable/node.def6
-rw-r--r--interface-templates/ipv6/ripng/split-horizon/node.def1
-rw-r--r--interface-templates/ipv6/ripng/split-horizon/poison-reverse/node.def9
4 files changed, 18 insertions, 0 deletions
diff --git a/interface-templates/ipv6/ripng/node.def b/interface-templates/ipv6/ripng/node.def
new file mode 100644
index 00000000..d59da359
--- /dev/null
+++ b/interface-templates/ipv6/ripng/node.def
@@ -0,0 +1,2 @@
+help: Set Routing Information Protocol (RIPng) for specified interface
+create: sudo /opt/vyatta/sbin/quagga-manager check ripngd
diff --git a/interface-templates/ipv6/ripng/split-horizon/disable/node.def b/interface-templates/ipv6/ripng/split-horizon/disable/node.def
new file mode 100644
index 00000000..817ae8e2
--- /dev/null
+++ b/interface-templates/ipv6/ripng/split-horizon/disable/node.def
@@ -0,0 +1,6 @@
+help: Disable split horizon on specified interface
+create: vyatta-vtysh -c "configure terminal" -c "interface $IFNAME" -c "no ipv6 ripng split-horizon"
+delete: vyatta-vtysh -c "configure terminal" -c "interface $IFNAME" -c "ipv6 ripng split-horizon"
+
+commit:expression: ($VAR(../poison-reverse/) == ""); \
+ "You cannot have 'split-horizon poison-reverse' enabled with 'split-horizon' disabled for $IFNAME"
diff --git a/interface-templates/ipv6/ripng/split-horizon/node.def b/interface-templates/ipv6/ripng/split-horizon/node.def
new file mode 100644
index 00000000..ba39b616
--- /dev/null
+++ b/interface-templates/ipv6/ripng/split-horizon/node.def
@@ -0,0 +1 @@
+help: Set to control split horizon parameters on this interface
diff --git a/interface-templates/ipv6/ripng/split-horizon/poison-reverse/node.def b/interface-templates/ipv6/ripng/split-horizon/poison-reverse/node.def
new file mode 100644
index 00000000..8f17f99e
--- /dev/null
+++ b/interface-templates/ipv6/ripng/split-horizon/poison-reverse/node.def
@@ -0,0 +1,9 @@
+help: Enable poison reverse for split-horizon
+create: vyatta-vtysh -c "configure terminal" -c "interface $IFNAME" \
+ -c "ipv6 ripng split-horizon poisoned-reverse"
+
+delete: vyatta-vtysh -c "configure terminal" -c "interface $IFNAME" \
+ -c "no ipv6 ripng split-horizon" -c "ipv6 ripng split-horizon"
+
+commit:expression: ($VAR(../disable/) == ""); \
+ "You cannot have 'split-horizon poison-reverse' enabled with 'split-horizon' disabled for $IFNAME"