summaryrefslogtreecommitdiff
path: root/templates/interfaces
diff options
context:
space:
mode:
authorMohit Mehta <mohit@vyatta.com>2008-03-12 14:10:12 -0700
committerMohit Mehta <mohit@vyatta.com>2008-03-12 14:10:12 -0700
commit0127c333b2634ba2833569e7ce546c898312bd99 (patch)
tree86db01118a4583bfae5ce89c8e20c6ba7fd582dd /templates/interfaces
parent0797f7cd410ac7a3a5e2f9f28be90d5eb0e31366 (diff)
downloadvyatta-cfg-quagga-0127c333b2634ba2833569e7ce546c898312bd99.tar.gz
vyatta-cfg-quagga-0127c333b2634ba2833569e7ce546c898312bd99.zip
Fix Bug 2849 "disable-split-horizon" needs to be implemented
- 'split horizon disable' enabled
Diffstat (limited to 'templates/interfaces')
-rw-r--r--templates/interfaces/ethernet/node.tag/ip/rip/split-horizon/disable/node.def12
-rw-r--r--templates/interfaces/ethernet/node.tag/ip/rip/split-horizon/poison-reverse/node.def3
2 files changed, 15 insertions, 0 deletions
diff --git a/templates/interfaces/ethernet/node.tag/ip/rip/split-horizon/disable/node.def b/templates/interfaces/ethernet/node.tag/ip/rip/split-horizon/disable/node.def
new file mode 100644
index 00000000..2485b670
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/ip/rip/split-horizon/disable/node.def
@@ -0,0 +1,12 @@
+help: disable split horizon
+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. You may specify either one of the two options for split-horizon. (disable|poison-reverse)"
diff --git a/templates/interfaces/ethernet/node.tag/ip/rip/split-horizon/poison-reverse/node.def b/templates/interfaces/ethernet/node.tag/ip/rip/split-horizon/poison-reverse/node.def
index 9057a4cd..934d711d 100644
--- a/templates/interfaces/ethernet/node.tag/ip/rip/split-horizon/poison-reverse/node.def
+++ b/templates/interfaces/ethernet/node.tag/ip/rip/split-horizon/poison-reverse/node.def
@@ -9,3 +9,6 @@ delete:expression: "${vyatta_sbindir}/vyatta-vtysh.pl \
-c \"interface $VAR(../../../../@) \" \
-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. You may specify either one of the two options for split-horizon. (disable|poison-reverse)"
+