summaryrefslogtreecommitdiff
path: root/templates/interfaces/loopback
diff options
context:
space:
mode:
Diffstat (limited to 'templates/interfaces/loopback')
-rw-r--r--templates/interfaces/loopback/node.tag/ip/rip/split-horizon/disable/node.def13
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/interfaces/loopback/node.tag/ip/rip/split-horizon/disable/node.def b/templates/interfaces/loopback/node.tag/ip/rip/split-horizon/disable/node.def
new file mode 100644
index 00000000..f8f93cd7
--- /dev/null
+++ b/templates/interfaces/loopback/node.tag/ip/rip/split-horizon/disable/node.def
@@ -0,0 +1,13 @@
+help: Disable split horizon on specified interface
+create:expression: "${vyatta_sbindir}/vyatta-vtysh.pl \
+ -c \"configure terminal \" \
+ -c \"interface $VAR(../../../../@) \" \
+ -c \"no ip rip split-horizon \" "
+
+delete:expression: "${vyatta_sbindir}/vyatta-vtysh.pl \
+ -c \"configure terminal \" \
+ -c \"interface $VAR(../../../../@) \" \
+ -c \"ip rip split-horizon \" "
+
+commit:expression: ($VAR(../poison-reverse/) == ""); "You cannot have 'split-horizon poison-reverse' enabled with 'split-horizon' disabled for loopback interface $VAR(../../../../@)"
+