diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-05-28 14:36:05 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-05-28 14:36:05 -0700 |
commit | a50404c259bcbb424743d80a18bf87319666bce8 (patch) | |
tree | 032e09566f651040179ff4df4389a1268a0a98e0 | |
parent | 6b89f1199a52681443fe71a3577495f375254d32 (diff) | |
download | vyatta-cfg-quagga-a50404c259bcbb424743d80a18bf87319666bce8.tar.gz vyatta-cfg-quagga-a50404c259bcbb424743d80a18bf87319666bce8.zip |
Abort transaction on delete of neighbor in peer group
The new CLI doesn't fail transaction automatically when one command fails.
-rw-r--r-- | templates/protocols/bgp/node.tag/neighbor/node.def | 2 |
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(@)" |