From cea49c020969bc157982c56c3962ad5ae99dbc7f Mon Sep 17 00:00:00 2001 From: Michael Larson Date: Thu, 18 Nov 2010 16:45:04 -0800 Subject: better solution for mendocino--removes patch from larkspur. --- templates/protocols/bgp/node.def | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/protocols/bgp/node.def b/templates/protocols/bgp/node.def index 44319838..bd7916eb 100644 --- a/templates/protocols/bgp/node.def +++ b/templates/protocols/bgp/node.def @@ -8,7 +8,8 @@ syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 4294967294 ; \ "AS number must be between 1 and 4294967294" end: -if [ ! -f "/tmp/protocols-bgp.$PPID" ]; then - touch /tmp/protocols-bgp.$PPID; + +if [ "$COMMIT_SIBLING_POSITION" = "FIRST" ] || \ + [ "$COMMIT_SIBLING_POSITION" = "FIRSTLAST" ] ; then /opt/vyatta/sbin/vyatta-bgp.pl --main fi; \ No newline at end of file -- cgit v1.2.3