From ce31fd38b3fbe1385d4f4b8fb42c757900b445b6 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 28 May 2009 14:36:05 -0700 Subject: 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) --- templates/protocols/bgp/node.tag/neighbor/node.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(@)" -- cgit v1.2.3