From 64ae8ae1477474ca94c432a6664a73cba220fd36 Mon Sep 17 00:00:00 2001
From: Michael Larson <mike@vyatta.com>
Date: Thu, 18 Nov 2010 16:47:34 -0800
Subject: fix for 6069

---
 templates/protocols/bgp/node.def | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'templates')

diff --git a/templates/protocols/bgp/node.def b/templates/protocols/bgp/node.def
index 3e9e6b51..3f55aab6 100644
--- a/templates/protocols/bgp/node.def
+++ b/templates/protocols/bgp/node.def
@@ -7,4 +7,9 @@ val_help: u32:1-4294967294; AS number
 syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 4294967294 ; \
 		   "AS number must be between 1 and 4294967294"
 
-end: /opt/vyatta/sbin/vyatta-bgp.pl --main
+end: 
+
+if [ "$COMMIT_SIBLING_POSITION" = "FIRST" ] || \
+   [ "$COMMIT_SIBLING_POSITION" = "FIRSTLAST" ] ; then
+    /opt/vyatta/sbin/vyatta-bgp.pl --main
+fi;
-- 
cgit v1.2.3