From f474b908cebc8d800ac8b39d56931d54acf68f13 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Wed, 25 May 2011 15:00:11 -0700 Subject: alternative fix for bug 6069 --- templates/protocols/bgp/node.def | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/templates/protocols/bgp/node.def b/templates/protocols/bgp/node.def index 01f75f02..39bb583e 100644 --- a/templates/protocols/bgp/node.def +++ b/templates/protocols/bgp/node.def @@ -7,8 +7,6 @@ val_help: u32:1-4294967294; AS number syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 4294967294 ; \ "AS number must be between 1 and 4294967294" -end: - -if [ "$COMMIT_SIBLING_POSITION" != "LAST" ] ; then - /opt/vyatta/sbin/vyatta-bgp.pl --main -fi; +end: if [ -z "$VAR(.)" ] || [ "$COMMIT_ACTION" != DELETE ]; then + /opt/vyatta/sbin/vyatta-bgp.pl --main + fi -- cgit v1.2.3