summaryrefslogtreecommitdiff
path: root/templates/protocols
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-05-28 14:36:05 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-07-09 16:50:06 -0700
commitce31fd38b3fbe1385d4f4b8fb42c757900b445b6 (patch)
treee14c5caad3714840e5e6437b1a238d3f5185ebfe /templates/protocols
parentb837d61663fb84d79e979ffe2b2e56646070647c (diff)
downloadvyatta-cfg-quagga-ce31fd38b3fbe1385d4f4b8fb42c757900b445b6.tar.gz
vyatta-cfg-quagga-ce31fd38b3fbe1385d4f4b8fb42c757900b445b6.zip
Abort transaction on delete of neighbor in peer group
The new CLI doesn't fail transaction automatically when one command fails. (cherry picked from commit a50404c259bcbb424743d80a18bf87319666bce8)
Diffstat (limited to 'templates/protocols')
-rw-r--r--templates/protocols/bgp/node.tag/neighbor/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/protocols/bgp/node.tag/neighbor/node.def b/templates/protocols/bgp/node.tag/neighbor/node.def
index c9001078..8e464dba 100644
--- a/templates/protocols/bgp/node.tag/neighbor/node.def
+++ b/templates/protocols/bgp/node.tag/neighbor/node.def
@@ -16,7 +16,7 @@ create: if /opt/vyatta/sbin/vyatta-bgp.pl --check-if-peer-group \
fi;
delete: /opt/vyatta/sbin/vyatta-bgp.pl --check-peer-groups \
- --peergroup $VAR(@) --as $VAR(../@);
+ --peergroup $VAR(@) --as $VAR(../@) || exit 1
vyatta-vtysh -c "configure terminal" \
-c "router bgp $VAR(../@)" \
-c "no neighbor $VAR(@)"