summaryrefslogtreecommitdiff
path: root/interface-templates/ip/rip/split-horizon/poison-reverse/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'interface-templates/ip/rip/split-horizon/poison-reverse/node.def')
-rw-r--r--interface-templates/ip/rip/split-horizon/poison-reverse/node.def9
1 files changed, 9 insertions, 0 deletions
diff --git a/interface-templates/ip/rip/split-horizon/poison-reverse/node.def b/interface-templates/ip/rip/split-horizon/poison-reverse/node.def
new file mode 100644
index 00000000..07cb8944
--- /dev/null
+++ b/interface-templates/ip/rip/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 "ip rip split-horizon poisoned-reverse"
+
+delete:vyatta-vtysh -c "configure terminal" -c "interface $IFNAME" \
+ -c "no ip rip split-horizon" -c "ip rip split-horizon "
+
+commit:expression: ($VAR(../disable/) == ""); \
+ "You cannot have 'split-horizon poison-reverse' enabled with 'split-horizon' disabled for $IFNAME"