From 0127c333b2634ba2833569e7ce546c898312bd99 Mon Sep 17 00:00:00 2001 From: Mohit Mehta Date: Wed, 12 Mar 2008 14:10:12 -0700 Subject: Fix Bug 2849 "disable-split-horizon" needs to be implemented - 'split horizon disable' enabled --- .../ethernet/node.tag/ip/rip/split-horizon/disable/node.def | 12 ++++++++++++ .../node.tag/ip/rip/split-horizon/poison-reverse/node.def | 3 +++ 2 files changed, 15 insertions(+) create mode 100644 templates/interfaces/ethernet/node.tag/ip/rip/split-horizon/disable/node.def (limited to 'templates/interfaces') 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)" + -- cgit v1.2.3