summaryrefslogtreecommitdiff
path: root/templates/interfaces/ethernet
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2008-04-15 22:09:11 +0000
committerMohit Mehta <mohit.mehta@vyatta.com>2008-04-15 22:09:11 +0000
commitb2fb9963d1b65ac4b32ada1742cd1ba24fa8c739 (patch)
tree7fd1cfc4290e0585c98e2f65ead83a36f850153d /templates/interfaces/ethernet
parentead9e7014c6d3d6c578663dc3656dac7249977bf (diff)
downloadvyatta-cfg-quagga-b2fb9963d1b65ac4b32ada1742cd1ba24fa8c739.tar.gz
vyatta-cfg-quagga-b2fb9963d1b65ac4b32ada1742cd1ba24fa8c739.zip
Fix Bug 2849 "disable-split-horizon" needs to be implemented
-implemented 'split-horizon disable' for all interfaces that allow configuring RIP
Diffstat (limited to 'templates/interfaces/ethernet')
-rw-r--r--templates/interfaces/ethernet/node.tag/pppoe/node.tag/ip/rip/split-horizon/disable/node.def13
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/ip/rip/split-horizon/disable/node.def13
2 files changed, 26 insertions, 0 deletions
diff --git a/templates/interfaces/ethernet/node.tag/pppoe/node.tag/ip/rip/split-horizon/disable/node.def b/templates/interfaces/ethernet/node.tag/pppoe/node.tag/ip/rip/split-horizon/disable/node.def
new file mode 100644
index 00000000..246f1f5c
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/pppoe/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 PPPoE interface $VAR(../../../../@)"
+
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/ip/rip/split-horizon/disable/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/ip/rip/split-horizon/disable/node.def
new file mode 100644
index 00000000..af2f0c0a
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/vif/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 ethernet Virtual InterFace $VAR(../../../../@)"
+